<< hsv2rgb Image Types and Color Space Conversions im2bw >>

IPCV >> Image Types and Color Space Conversions > hsv2rgb2

hsv2rgb2

Convert a HSV image to the equivalent RGB image.

Syntax

RGB = hsv2rgb2(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 and type as HSV.

Description

hsv2rgb convert a HSV image to the equivalent RGB image.

Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

Examples

RGB = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
HSV = rgb2hsv(RGB);
RGB = hsv2rgb2(HSV);
imshow(RGB);

See also

Authors


Report an issue
<< hsv2rgb Image Types and Color Space Conversions im2bw >>