PANDORE Version 6 GREYC-IMAGE

prgb2yiq



Converts RGB color image to YIQ color image.



Synopsis

prgb2yiq [-m mask] [im_in|-] [im_out|-]

Description

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

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

   prgb2yiq a.pan b.pan

See also

Color

C++ prototype

Errc PRGB2YIQ( const Imc2duc &im_in, imc2dsf &im_out );

Version française

Changement d'espace couleur de RVB vers YIQ.


Author: Olivier Lezoray