Re: problem with 'imshow'



Dave Robinson wrote:


Ken Davis wrote:


"amelie" <amelie.quinet@xxxxxxxxxxxxxx> wrote in message
news:ef2a6d9.-1@xxxxxxxxxxxxxxxxxxx
Dear all,

I've got an image 480*640*3. I don't understand why, when I
write
:
imshow(image(:,:,1)) or
imshow(image(:,:,2)) or
imshow(image(:,:,3))
the images I observe are the same (color).

I want to observe red,blue and green components.

I tried with different images, and it's always the same
result.

Is it normal ?

Regards
Amélie

Red = MyImage(:,:,1)
Green = MyImage(:,:,2)

will produce two single plane images, which whilst Red will contain
the red information, & Green will contain the green information, if
you display either of these planes using imshow(Red) or
imshow(Green)
will both generate a greyscale image.

If you want them to display different colours then generate an
empty
buffer, the same size as your images

Buffer = zeros(rows,columns);

Now form the following

New_Red = cat(2,Red,Buffer,Buffer);
New_Green = cat(2,Buffer,Green,Buffer);
New_Blue = cat(2,Buffer,Buffer,Blue);

Hope that helps

Dave Robinson

Thanks !!
.



Relevant Pages

  • Re: Learning to see
    ... so the ability of a person to "see" things trough the lenses is not a major factor in what can be observed (as several people can look at the resulting images on the computer). ... Setting up things such as kholer illumination is important, even on a straight bright-field scope. ... Add in imaging systems like DIC or phase contrast, and you now add another 5-6 levers & dials which must be properly tuned for good images. ... Over the years I've learned how to set up my experiments to optimize what it is I'm trying to observe. ...
    (sci.techniques.microscopy)
  • Re: Text rendering in FX3
    ... observe, here is an image of the page using FF *2*, which I DL'd from ... Based upon the above bug reports, it looks like the problem is going ... images, although I can't remember any right now. ...
    (Fedora)
  • Re: RAW images...
    ... images since you raised it and so far I haven't observed it once ... at a compression rate that gives a file size about the same as ... Your inability to observe the effects does not make it a ... If, for example, that is originally done on 8 pixel ...
    (rec.photo.digital)
  • Re: RAW images...
    ... images since you raised it and so far I haven't observed it once ... at a compression rate that gives a file size about the same as ... Your inability to observe the effects does not make it a ... it is NOT an issue that is restricted to JPEG ...
    (rec.photo.digital)
  • Re: chemtrails /unwashed satellite images
    ... satellite images i am very interested in learning about subject of ... Not quite sure what chem-trails are or how to observe them on sat images. ...
    (uk.sci.weather)