A digital color image is stored as a multi-channel structure, one image per attribute.
Channels
- RGB
Maintains the intensity of red, green and blue in separate channels. - Luminance and chrominance
Separates brightness (luminance) from color (chrominance) into separate channels.
- Discarding gives a monochrome image directly
- The human visual system is more sensitive to luminance than color, so YCrCb formats often allocate bits in a 4:2:2 ratio
- Widely used for its inherent compression capability
Emission and absorption colors
- Emission based
Determined by what light should be emitted to produce a color. Absence of light is black, presence of all components is white. - Absorption based
Determined by what ink should be applied so that light reflected from the substrate produces a color. Ink subtracts colors from white.
RGB is emission based. CMYK is absorption based.
True color images
RGB uses 24 bits per pixel, or 3 bytes. CMYK needs 4 bytes per pixel.
Palette based representation
Storing a table of the colors actually used, then storing pointers into that table, is more storage-efficient than native RGB.
- Palette length determines how many distinct colors can be used at once, out of the full
- Bits per pixel in image memory depend on the palette table length
- The palette table is usually stored with the image, allowing a custom color set per image