From: Mike on
Hi

I'd like to show a RGB image (tif) with some pixels that fall within
some range.
These pixels are preferred to be shown with a special color.
How to do this?


Thank you.

Mike
From: Thomas Britton on
Mike <sulfateion(a)gmail.com> wrote in message <ce360b91-0b5f-4c0b-821f-76f07e6ab248(a)u3g2000prl.googlegroups.com>...
> Hi
>
> I'd like to show a RGB image (tif) with some pixels that fall within
> some range.
> These pixels are preferred to be shown with a special color.
> How to do this?
>
>
> Thank you.
>
> Mike

You could do something like this:

Load the image (imread)
Threshold the image (logical indexing)
Display the thresholded image (imshow)
Or display the original image with an alphamap based off your thesholding (it's in the imagesc/imshow commands).

Ben
From: ImageAnalyst on
Mike, I'm not sure you meant what you said, but if you did, here are
two web sites that display RGB images with certain colors in them:
http://labs.ideeinc.com/multicolr/
http://color.slightlyblue.com/
Just pick a color(s) and it will return lots of photos from Flickr.com
that have that/those color(s) in them. Very fun!

Now, on the chance that you actually meant something different and
want to segment out certain colors in your image, you might find this
simple script useful for segmenting colors in RGB space:

http://www.mathworks.com/matlabcentral/fileexchange/26420-simplecolordetection

It's not a robust color classification method, it's just something
quick and simple to help beginners, but it may work well for certain
types of images (well separated, stable color classes). It finds red
objects but you can modify it to find other colored objects instead.