Difference between revisions of "Function:Rgb2Lab"

From CUVI Wiki
(Created page with "__NOTOC__ Converts input RGB image to CIE Lab color space. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus rgb2Lab(const CuviImage& src, ...")
 
Line 1: Line 1:
__NOTOC__
__NOTOC__
Converts input RGB image to CIE Lab color space.
Converts input RGB image to CIE Lab color space.
===Function===
====Function====
{|
{|
|style="font-size:150%;"|
|style="font-size:100%;"|
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
CuviStatus rgb2Lab(const CuviImage& src,
CuviStatus rgb2Lab(const CuviImage& src,
Line 10: Line 10:
</syntaxhighlight>
</syntaxhighlight>
|}
|}


===Parameters===
===Parameters===

Revision as of 21:11, 18 October 2022

Converts input RGB image to CIE Lab color space.

Function

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

Parameters

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