showing image color planes in color

조회 수: 1 (최근 30일)
Philip
Philip 2011년 2월 23일
Hi all,
Does anyone know of a way to display the color planes of an image individually, and in colour? I am extracting each bit plane individually using r = img(:,:,1) and so on, but on imshow they appear gray. This is of course somewhat logical, but I would really like to display them for their appropriate scales. i.e. for the red colour plane, the intensity range is 0 (black) to 255 (red). Is this possible?
Thanks for all your help!

채택된 답변

Saneem Ahmed
Saneem Ahmed 2011년 2월 23일
just do as code given below
imx=im;
imx(:,:,2)=0;
imx(:,:,3)=0;
imshow(imx);
  댓글 수: 1
Philip
Philip 2011년 2월 23일
That's great, thanks so much!! It seems so simple now...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by