working on one channel at a color space

1 view (last 30 days)
Hi ; I have converted RGB image to YCbCr color space using
myImage=rgb2ycbcr(myImage);
this has three channel Y,Cb and Cr i need to work just at Y channel ,How can I do that? may you help me Thanks in advance

Accepted Answer

Walter Roberson
Walter Roberson on 30 Nov 2012
myImageycbcr = rgb2ycbcr(myImage);
myImagey = myImageycbcr(:,:,1);

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!