Thursday 1 February 2024

Color spaces in image processing

Color space is a mathematical representation used to define various colors in such a way that, these can be understood by computers, video or image processing devices, libraries etc.,

 

Following are the some popular color spaces.

 

a. RGB (Red, Green, Blue) : This color space represents thencolors by mixing different intensities of red, green, and blue light. For example

         1. (255, 0, 0) : represent Red color

         2. (0, 255, 0) : represent Green color

         3. (0, 0, 255) : represent Blue color

         4. (0, 0, 0) : represent balck color

         5. (255, 255, 255) : represent white color etc.,

 

b. HSV (Hue, Saturation, Value): Hue represents the dominant color wavelength. Saturation measures the intensity or vividness of the color. Value represents the brightness of the color. HSV is designed to represent colors in a way that aligns more with how humans perceive color.

 

c. BGR (Blue, Green, Red) : This color space represents thencolors by mixing different intensities of blue, green, and red light. For example

         1. (255, 0, 0) : represent Blue color

         2. (0, 255, 0) : represent Green color

         3. (0, 0, 255) : represent Red color

         4. (0, 0, 0) : represent balck color

         5. (255, 255, 255) : represent white color etc.,

 

d. CMY(K) (Cyan, Magenta, Yellow, Key/Black): It represents colors by specifying the amounts of cyan, magenta, yellow, and optionally black inks needed to reproduce a color.

Previous                                                    Next                                                    Home

No comments:

Post a Comment