Convert a RGB image to the equivalent YCbCr image.
YCC = rgb2ycbcr(RGB)
RGB
should be M x N x 3
.RGB
and type of double.rgb2ycbcr
convert a RGB image to the equivalent HSV image using:
Y = 0.299*R + 0.587*G + 0.114*B
Cb = (B-Y)*0.564 + 0.5
Cr = (R-Y)*0.713 + 0.5
Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.
If RGB
is not a double image, it will be converted to double image first
in the procedure.
http://sivp.sf.net