Convert a HSV image to the equivalent RGB image.
RGB = hsv2rgb(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].
Output image, which has the same size and type as HSV.
hsv2rgb convert a HSV image to the equivalent RGB image.
Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.
RGB = imread(fullpath(getIPCVpath() + "/images/baboon.png")); HSV = rgb2hsv(RGB); RGB = hsv2rgb(HSV); imshow(RGB); | ![]() | ![]() |