PANDORE Version 6 | GREYC-IMAGE |
prgb2yiq converts color image from the color space RGB (Red, Green, Blue) to the color space YIQ.
YIQ is formerly used in the NTSC television standard. The Y component represents the luma information, and is the only component used by black-and-white television receivers. I and Q represent the chrominance information. In YUV, the U and V components can be thought of as X and Y coordinates within the colorspace.
The conversion uses the linear transformation:
Y = 0.299Red + 0.587Green + 0.114Blue I = 0.595716Red - 0.274453Green - 0.321263Blue Q = 0.211456Red - 0.522591Green + 0.311135Blue
Returns SUCCESS or FAILURE.
prgb2yiq a.pan b.pan
Changement d'espace couleur de RVB vers YIQ.
Author: Olivier Lezoray