showing image color planes in color

4 vues (au cours des 30 derniers jours)
Philip
Philip le 23 Fév 2011
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!

Réponse acceptée

Saneem Ahmed
Saneem Ahmed le 23 Fév 2011
just do as code given below
imx=im;
imx(:,:,2)=0;
imx(:,:,3)=0;
imshow(imx);
  1 commentaire
Philip
Philip le 23 Fév 2011
That's great, thanks so much!! It seems so simple now...

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by