| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Image Processing Toolbox |
| Contents | Index |
| Learn more about Image Processing Toolbox |
rgbmap = ntsc2rgb(yiqmap)
RGB = ntsc2rgb(YIQ)
rgbmap = ntsc2rgb(yiqmap) converts the m-by-3 NTSC (television) color values in yiqmap to RGB color space. If yiqmap is m-by-3 and contains the NTSC luminance (Y) and chrominance (I and Q) color components as columns, then rgbmap is an m-by-3 matrix that contains the red, green, and blue values equivalent to those colors. Both rgbmap and yiqmap contain intensities in the range 0 to 1.0. The intensity 0 corresponds to the absence of the component, while the intensity 1.0 corresponds to full saturation of the component.
RGB = ntsc2rgb(YIQ) converts the NTSC image YIQ to the equivalent truecolor image RGB.
ntsc2rgb computes the RGB values from the NTSC components using

The input image or colormap must be of class double. The output is of class double.
Convert RGB image to NTSC and back.
RGB = imread('board.tif');
NTSC = rgb2ntsc(RGB);
RGB2 = ntsc2rgb(NTSC);rgb2ntsc, rgb2ind, ind2rgb, ind2gray
For a full list of the toolbox color space conversion functions, see Color Space Conversions.
![]() | normxcorr2 | ordfilt2 | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |