ImageDev

Color Transforms

This group contains algorithms dedicated to be applied on, or to produce, color images.
When gray level images are not sufficient to solve an image processing problem, chromaticity characteristics such as hue and saturation might help: color processing allows processing and analyzing the three components of a true color image at the same time.

Color images are commonly represented by the RGB, HSL, or YIQ formats. An RGB image is composed of three components: the red, green, and blue channels.

RGB

Although the RGB basis is good for acquisition and display of color images, it is not always relevant to explain the perception of colors.

HSL

An HSL image is composed of components expressing the hue, saturation, and luminance.

YIQ

The YIQ format is largely used in broadcasting. The advantage of YIQ images is that the brightness component Y can be used alone by monochrome receivers, while still spanning the color space with the chromatic components I and Q.
In YIQ, the rgb, or rg chromaticity, space is obtained by normalizing the RGB components so that $r+g+b=1$. It removes intensity information, making it easier to localize an area based on chromaticity or saturation information.

Color Functions

Most of the functions that work on gray level images will work on color images. The process is performed three times, once on each component.
Be aware that YIQ images are floating point images.