convert RGB to YCbCr
Show older comments
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)
5 Comments
Anton Semechko
on 7 Jul 2012
try this example:
RGB = imread('board.tif');
YCBCR = rgb2ycbcr(RGB);
do you still get only one channel?
Anton Semechko
on 7 Jul 2012
Y=YCBCR(:,:,1);
Cb=YCBCR(:,:,2);
Cr=YCBCR(:,:,3);
Aseel H
on 7 Jul 2012
Aseel H
on 8 Jul 2012
Accepted Answer
More Answers (0)
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!