I need to get three channel(three matrix)= Y, Cb, Cr from convert color imag to ycbcr but: the follow function
RGB = imread(colorimage) ycbcr = rgb2ycbcr(RGB)
give alone one channel(luminance)
No products are associated with this question.
Does the information in the Help help you:
YCBCR = rgb2ycbcr(RGB) converts the truecolor image RGB to the equivalent image in the YCbCr color space. RGB must be a M-by-N-by-3 array.
If the input is uint8, YCBCR is uint8, where Y is in the range [16 235], and Cb and Cr are in the range [16 240]. If the input is a double, Y is in the range [16/255 235/255] and Cb and Cr are in the range [16/255 240/255]. If the input is uint16, Y is in the range [4112 60395] and Cb and Cr are in the range [4112 61680].
5 Comments
Direct link to this comment:
http://www.mathworks.es/matlabcentral/answers/42979#comment_88262
try this example:
RGB = imread('board.tif'); YCBCR = rgb2ycbcr(RGB);do you still get only one channel?
Direct link to this comment:
http://www.mathworks.es/matlabcentral/answers/42979#comment_88263
I need to sperate channels, Y = [], Cb = [], Cr = [],
Direct link to this comment:
http://www.mathworks.es/matlabcentral/answers/42979#comment_88265
Direct link to this comment:
http://www.mathworks.es/matlabcentral/answers/42979#comment_88266
thanks, Anton
Direct link to this comment:
http://www.mathworks.es/matlabcentral/answers/42979#comment_88379
can you tell me, how convert RGB to YCbCr integer to integer rgb2ycbcr() give float values.