<< rgb2lab Image Types and Color Space Conversions rgb2ycbcr >>

IPCV - Image Processing and Computer Vision Toolbox for Scilab >> Image Types and Color Space Conversions > rgb2ntsc

rgb2ntsc

Convert a RGB image to the equivalent NTSC image YIQ.

Syntax

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:

Y = 0.299*R + 0.587*G + 0.114*B

I = 0.596*R - 0.274*G - 0.322*B

Q = 0.212*R - 0.523*G - 0.311*B

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(fullpath(getIPCVpath() + "/images/baboon.png"));
YIQ = rgb2ntsc(RGB);
RGB = ntsc2rgb(YIQ);
imshow(RGB);

See also

Authors


Report an issue
<< rgb2lab Image Types and Color Space Conversions rgb2ycbcr >>