Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

working on one channel at a color space

Asked by eman on 30 Nov 2012

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

0 Comments

eman

Products

No products are associated with this question.

1 Answer

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

1 Comment

eman on 1 Dec 2012

Thank you

Walter Roberson

Contact us