Convert a NTSC image to the equivalent RGB image.
RGB = ntsc2rgb(YIQ)
NTSC
should be
M x N x 3
, the type should be double and the element value range should be [0,1].NTSC
and type of double.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.
RGB = imread(fullpath(getSIVPpath() + "/images/lena.png")); YIQ = rgb2ntsc(RGB); RGB = ntsc2rgb(YIQ); imshow(RGB); | ![]() | ![]() |
http://sivp.sf.net