Function:Hsv2rgb

From CUVI Wiki
Jump to: navigation, search

Converts input HSV image to RGB color space.

Function

CuviStatus hsv2rgb(const CuviImage& src,
                   CuviImage& dst,
                   const CuviStream& stream = CuviStream());


Parameters

Name Type Description
src const CuviImage& Input HSV image
dst CuviImage& Output RGB image
stream const CuviStream& GPU stream ID for execution


Image Type Support

Input Output
8uC3 8uC3
32fC3 32fC3

Sample

Example

CuviImage input = cuvi::io::loadImage(path,CUVI_LOAD_IMAGE_COLOR), output;
 
//Convert input HSV image to RGB
cuvi::colorOperations::hsv2rgb(input , output);