Convert RGB color values to YCbCr color space
converts the RGB color space values in ycbcrmap
= rgb2ycbcr(rgbmap
)rgbmap
to the YCbCr
color space. ycbcrmap
is a c-by-3 matrix
that contains the YCbCr luminance (Y) and chrominance
(Cb and Cr) color values as
columns. Each row in ycbcrmap
represents the equivalent color
to the corresponding row in rgbmap
.
You optionally can perform the conversion
[1] Poynton, C. A.A Technical Introduction to Digital Video, John Wiley & Sons, Inc., 1996, p. 175.
[2] Rec. ITU-R BT.601-5, Studio Encoding Parameters of Digital Television for Standard 4:3 and Wide-screen 16:9 Aspect Ratios, (1982-1986-1990-1992-1994-1995), Section 3.5.