<< rgb2hsv SIVP - Scilab Image and Video Processing Toolbox rgb2ycbcr >>

SIVP - Scilab Image and Video Processing Toolbox >> SIVP - Scilab Image and Video Processing Toolbox > rgb2ntsc

rgb2ntsc

Convert a RGB image to the equivalent NTSC image YIQ.

Calling Sequence

YIQ = rgb2ntsc(RGB)

Parameters

RGB
A RGB image (hypermat), the dimension of RGB should be M x N x 3.
YIQ
Output image, which has the same size as RGB and type of double.

Description

rgb2ntsc convert a RGB image to the equivalent NTSC image YIQ using:

Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE. If RGB is not a double image, it will be converted to double image first in the procedure.

Examples

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

Authors

Availability

The latest version of SIVP can be found at

http://sivp.sf.net

See Also

<< rgb2hsv SIVP - Scilab Image and Video Processing Toolbox rgb2ycbcr >>