Difference between revisions of "Function:Rgb2hsv"

From CUVI Wiki
Line 11: Line 11:
|}
|}


===Parameters===
====Parameters====
 
{|
|style="font-size:75%;"|
{|class="wikitable"
{|class="wikitable"
|-
|-
Line 30: Line 31:
| const CuviStream&
| const CuviStream&
| GPU stream ID for execution
| GPU stream ID for execution
|}
|}
 
|}
 


===Image Type Support===
===Image Type Support===

Revision as of 21:10, 18 October 2022

Converts input RGB image to HSV color space.

Function

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

Parameters

Name Type Description
src const CuviImage& Input RGB image
dst CuviImage& Output HSV 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 RGB image to HSV
cuvi::colorOperations::rgb2hsv(input , output);