ycbcr2rgb() - Image Processing
rgbmap = ycbcr2rgb(ycbcrmap) converts
the YCbCr values in the colormap ycbcrmap to the
RGB color space. If ycbcrmap is M-by-3
and contains the YCbCr luminance (Y) and chrominance
(Cb and Cr) color values
as columns, rgbmap is returned as an M-by-3
matrix that contains the red, green, and blue values equivalent to
those colors. gpuarrayRGBmap = ycbcr2rgb(gpuarrayYcbcrmap) performs
the conversion on a GPU. The input image, gpuarrayYcbcrmap,
is a gpuArray containing a YCbCr colormap. The output is a gpuArray
containing an RGB colormap. This syntax requires the Parallel Computing Toolbox™. RGB = ycbcr2rgb(Ycbcr) converts
the YCbCr image Ycbcr to the equivalent truecolor
image RGB.gpuarrayRGB = ycbcr2rgb(gpuarrayYcbcr) performs
the conversion on a GPU. The input image, gpuarrayYcbcr,
is a gpuArray containing a YCbCr image. The output is a gpuArray containing
an RGB image. This syntax requires the Parallel Computing Toolbox. Code Generation support:
Yes.MATLAB Function Block support:
Yes.
Syntax
rgbmap = ycbcr2rgb(ycbcrmap)gpuarrayRGBmap = ycbcr2rgb(gpuarrayYcbcrmap)RGB = ycbcr2rgb(Ycbcr)gpuarrayRGB = ycbcr2rgb(gpuarrayYcbcr)
Example
rgb = imread('board.tif');
ycbcr = rgb2ycbcr(rgb);
rgb2 = ycbcr2rgb(ycbcr);
Output / Return Value
Limitations
Alternatives / See Also
Reference