finding the value of the min and max pixel
arrays, colors, image, numpy, python
Solution
You can access each channel with the slices as follows:
# red
image[..., 0].min()
image[..., 0].max()
# green
image[..., 1].min()
image[..., 1].max()
# blue
image[..., 2].min()
image[..., 2].max()
Problem
I computed the smallest and largest pixel values for pixel in a grayscale image as follows: ``` smallest = numpy.amin(image) biggest = numpy.amax(image) ``` but this will only works in grayscale. How can I do the same for a color image (RGB)?