From: Tebe Iqbal on
AOA!

When ever i try to display an hsv image converted from rgb to HSV through rgb2hsv the color of the picture no more remain as the orignal. i m trying to change the colormap but no effect?

Thanks
Regards.
From: Ashish Uthama on
On Fri, 09 Apr 2010 13:52:22 -0300, Tebe Iqbal <bintayiqbal(a)yahoo.com>
wrote:

> AOA!
>
> When ever i try to display an hsv image converted from rgb to HSV
> through rgb2hsv the color of the picture no more remain as the orignal.
> i m trying to change the colormap but no effect?
>
> Thanks
> Regards.

Most monitors display color using RGB components. Once you convert your
RGB image into the HSV space, displaying the converted values on an RGB
monitor will obviously not 'remain as the original'.

(Analogous to this: if you have the X,Y coordinates of a line in Cartesian
coordinates, and you convert them to (r,theta) or polar coordinate system.
You cant expect to plot the (r,theta) values on a Cartesian coordinate
system and still expect to see a straight line)

I do not understand what you mean by a colormap in this context. Colormaps
are usually defined for indexed images. If you are looking to convert an
RGB image to an indexed image with a colormap, have a look at RGB2IND