Convert RGB colormap to HSV colormap
Syntax
cmap = rgb2hsv(M)
Description
cmap = rgb2hsv(M)
converts a RGB colormap, M, to a HSV colormap, cmap. Both colormaps are m-by-3 matrices. The elements of both colormaps are in the range 0 to 1.
The columns of the input matrix, M, represent intensities of red, green, and blue, respectively. The columns of the output matrix, cmap, represent hue, saturation, and value, respectively.
See Also
brighten, colormap, hsv2rgb,rgbplot
[ Previous | Help Desk | Next ]