Color
In color images, we have many different methods to store the underlying information. The most common method, the one that also provides the easiest computational structures for creating algorithms, is the RGB color space. In this method, an image representation contains at least three layers. For each pixel, we assess the combined information of the amounts of red, green, and blue necessary to achieve the desired color and intensity at the corresponding location. The first layer indicates the intensities of underlying reds. The second and third layers indicate, respectively, the intensities of greens and blues:
In [12]: from skimage.data import coffee In [13]: coffee().shape Out[13]: (400, 600, 3) In [14]: coffee() Out[14]: array([[[ 21, 13, 8], [ 21, 13, 9], [ 20, 11, 8], ..., [228, 182, 138], [231, 185, 142], [228, 184, 140]], ..., [[197, 141, 100], [195, 137, 99], [193, 138, 98], ...