Convert HSV colormap to RGB colormap
M = hsv2rgb(H)
rgb_image = hsv2rgb(hsv_image)
M = hsv2rgb(H) converts
a hue-saturation-value (HSV) colormap to a red-green-blue (RGB) colormap.
an m-by-3 matrix, where m is
the number of colors in the colormap. The columns of
hue, saturation, and value, respectively.
an m-by-3 matrix. Its columns are intensities
of red, green, and blue, respectively.
rgb_image = hsv2rgb(hsv_image) converts
the HSV image to the equivalent RGB image. HSV is an m-by-n-by-3
image array whose three planes contain the hue, saturation, and value
components for the image. RGB is returned as an m-by-n-by-3
image array whose three planes contain the red, green, and blue components
for the image.
H(:,1) varies from 0 to 1, the resulting
color varies from red through yellow, green, cyan, blue, and magenta,
and returns to red. When
H(:,2) is 0, the colors
are unsaturated (i.e., shades of gray). When
1, the colors are fully saturated (i.e., they contain no white component).
H(:,3) varies from 0 to 1, the brightness increases.
hsv colormap uses
a linear ramp from 0 to 1, and