<< mat2gray Image Types and Color Space Conversions rgb2gray >>

IPCV >> Image Types and Color Space Conversions > ntsc2rgb

ntsc2rgb

Convert a NTSC image to the equivalent RGB image.

Syntax

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

See also

Authors


Report an issue
<< mat2gray Image Types and Color Space Conversions rgb2gray >>