MATLAB Answers


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


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



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

on 1 Dec 2012

Thank you

Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!