RGB image to convert, specified as an
m-by-n-by-3 numeric array. The
third dimension of RGB defines the red, green, and blue
intensity of each pixel, respectively.
Data Types: single | double | uint8 | uint16
rgbmap — RGB colormap c-by-3 numeric matrix
RGB colormap, specified as a c-by-3 numeric matrix with
values in the range [0, 1]. Each row of rgbmap is a
three-element RGB triplet that specifies the red, green, and blue components
of a single color of the colormap.
HSV image, returned as an
m-by-n-by-3 numeric array with values
in the range [0, 1]. The third dimension of HSV defines
the hue, saturation, and value for each pixel, respectively, as described in
the table.
Attribute
Description
Hue
Value from 0 to
1 that corresponds to the color’s
position on a color wheel. As hue increases from
0 to 1, the
color transitions from red to orange, yellow, green,
cyan, blue, magenta, and finally back to red.
Saturation
Amount of hue or departure from neutral.
0 indicates a neutral shade,
whereas 1 indicates maximum
saturation.
Value
Maximum value among the red, green, and blue
components of a specific color.
If RGB is of type
single, then HSV is
of type single.
Otherwise, HSV is of type
double.
Data Types: double | single
hsvmap — HSV colormap c-by-3 numeric matrix
HSV colormap, returned as a c-by-3 numeric matrix with
values in the range [0, 1]. Each row of hsvmap is a
three-element HSV triplet that specifies the hue, saturation, and value
components of a single color of the colormap.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.