Name

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

Calling Sequence

RGB = ntsc2rgb(YIQ)

Parameters

YIQ
A NTSC image (hypermat). The dimension of NTSC should be M x N x 3, the type should be double and the element value range should be [0,1].
RGB
Output image, which has the same size as NTSC and type of double.

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.sf.net

See Also

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