SIVP Toolbox
Last update : August, 2006

ntsc2rgb - Convert a NTSC image to the equivalent RGB image.

Calling Sequence

RGB = ntsc2rgb(YIQ)

Parameters

Description

ntsc2rgb convert a NTSC image to the equivalent RGB image using:

R = Y + 0.956*I + 0.621*Q
G = Y - 0.272*I - 0.647*Q
B = Y - 1.105*I - 1.702*Q

Supported classe: DOUBLE.

Examples


    RGB = imread('lena.png');
    YIQ = rgb2ntsc(RGB);
    RGB = ntsc2rgb(YIQ);
    imshow(RGB);

Authors

Shiqi Yu <shiqi.yu[at]gmail.com>
Ricardo Fabbri <ricardofabbri[at]users.sf.net>

Availability

The latest version of SIVP can be found at

http://sivp.sourceforge.net

See Also

rgb2gray,  mat2gray,  rgb2hsv,  hsv2rgb,  rgb2ycbcr,  ycbcr2rgb,  rgb2ntsc,