National Instruments NI PXI PCI-1411 Wireless Office Headset User Manual


 
Appendix A Introduction to Color
© National Instruments Corporation A-3 NI PXI/PCI-1411 User Manual
Hue, Saturation, Luminance, and Intensity Planes
The 8-bit hue, saturation, luminance, and intensity planes can also be
returned individually if you want to analyze the image.
Luminance, Intensity, Hue, or Saturation are defined using the Red, Green,
and Blue values in the following formulas:
Luminance = 0.299 × Red + 0.587 × Green + 0.114 × Blue
Intensity = (Red + Green + Blue) / 3
Hue = arctangent (Y, X)
where
Y = (Green – Blue) / and
X = (2 × Red – Green – Blue) /
Saturation =
32-Bit HSL and HSI
You can also pack the three 8-bit Hue, Saturation, and Luminance planes
(HSL) or the three Hue, Saturation, and Intensity planes (HSI) in one array
of 32-bit integers, which is equivalent to the 32-bit RGB representation.
2
6
255 1
3 Min R G B,,()×
RGB++
------------------------------------------
⎝⎠
⎛⎞
×