Image Processing Toolbox    
hsv2rgb

Convert hue-saturation-value (HSV) values to RGB color space

Syntax

Description

rgbmap = hsv2rgb(hsvmap) converts the HSV values in hsvmap to RGB color space. hsvmap is an m-by-3 matrix that contains hue, saturation, and value components as its three columns, and rgbmap is returned as an m-by-3 matrix that represents the same set of colors as red, green, and blue values. Both rgbmap and hsvmap contain values in the range 0 to 1.0.

RGB = hsv2rgb(HSV) 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.

Class Support

The input array to hsv2rgb must be of class double. The output array is of class double.

Remarks

hsv2rgb is a function in MATLAB.

See Also

rgb2hsv, rgbplot

colormap in the MATLAB Function Reference


 histeq idct2