Specifications
Intel
®
Image Processing Library Reference Manual
9-12
9
RGB2HSV
Converts RGB images
to the HSV color model.
void iplRGB2HSV(IplImage*
rgbImage
, IplImage*
hsvImage
);
rgbImage
ThesourceRGBimage.
hsvImage
The resultant HSV image.
Discussion
The function converts the RGB image
rgbImage
to the HSV image
hsvImage
. The function checks that the input image is an RGB image. The
channel sequence and color model of the output image are set to HSV.
HSV2RGB
Converts HSV images
to the RGB color model.
void iplHSV2RGB(IplImage*
hsvImage
, IplImage*
rgbImage
);
hsvImage
The source HSV image.
rgbImage
The resultant RGB image.
Discussion
The function converts the HSV image
hsvImage
to the RGB image
rgbImage
. The function checks that the input image is an HSV image and
that the output image is RGB.