FUNCTION REFERENCE
rgb2ycbcr
Convert RGB to BT.601 studio-range YCbCr.
Convert RGB to BT.601 studio-range YCbCr.
Syntax
Y = rgb2ycbcr(RGB)Accepts P-by-3 colormaps or M-by-N-by-3 images. Preserves double, single, uint8 or uint16 class and shape. For uint8, luma ranges from 16 to 235 and chroma from 16 to 240; floating results divide these values by 255, and uint16 multiplies them by 257.
Example
rgb2ycbcr(uint8([0 0 0;255 255 255]))Differences from MATLAB: None for supported forms.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.