Color theory: contents
Four parts, from the basics of color perception to the structure of an image file. The topics can be read in order, but each one also stands on its own.
Topics shown in gray are in preparation.
Colors and models
What color is, how the eye sees it and how color space models describe it.
- Introduction: light, color, model
- Selected historical facts
- Model of the eye
- RGB model
- CMY and CMYK models
- Device-dependent models
- Color mixing
- Color measures
- Brightness
- Intensity
- Saturation
- Luminance
- Lightness
- HLS and HSI models
- CIE XYZ model
- CIE 1931 white points
- Television models YUV and YIQ
- CIE derivatives: LUV and LAB
- HSV and HSB models
- Notes on the models
Conversions between models
Formulas and algorithms for converting colors between models, with worked examples.
- RGB, CMY and CMYK
- Hue angle to RGB
- Helper functions
- RGB to hue angle
- HLS and RGB
- HSI and RGB
- HSV, HSB and RGB
- CIE XYZ and RGB
Elements of image description
How an image file describes a picture: pixel aspect, palette, color depth, gamma, transparency, compression.
- Introduction
- Pixel aspect ratio
- Color palette
- Color resolution
- Gamma correction and color management
- Color transparency
- Interlacing
- LZW algorithm
- LZW compression
- LZW decompression
The GIF format step by step
The structure of a GIF file byte by byte: header, blocks, extensions and LZW compression.
- Introduction
- General structure
- Header
- Logical screen descriptor
- Image block ($2C)
- Extension blocks ($21)
- Plain text extension ($01)
- Graphic control extension ($F9)
- Comment extension ($FE)
- Application extension ($FF)
- Block order
- LZW algorithm in GIF
- LZW compression in GIF
- LZW decompression in GIF