<< fspecial SIVP - Scilab Image and Video Processing Toolbox im2bw >>

SIVP - Scilab Image and Video Processing Toolbox >> SIVP - Scilab Image and Video Processing Toolbox > hsv2rgb

hsv2rgb

Convert a HSV image to the equivalent RGB image.

Calling Sequence

RGB = hsv2rgb(HSV)

Parameters

HSV
A HSV image (hypermat). The dimension of HSV should be M x N x 3, the type should be double and the element value range should be [0,1].
RGB
Output image, which has the same size as HSV and type of double.

Description

hsv2rgb convert a HSV image to the equivalent RGB image. The relationship between RGB and HSV described as follows:

Supported classe: DOUBLE.

Examples

RGB = imread('lena.png');
HSV = rgb2hsv(RGB);
RGB = hsv2rgb(HSV);
imshow(RGB);

Authors

Availability

The latest version of SIVP can be found at

http://sivp.sf.net

See Also

<< fspecial SIVP - Scilab Image and Video Processing Toolbox im2bw >>