Difference between revisions of "Function:Rgb2ycbcr"

From CUVI Wiki
(Created page with "__NOTOC__ Converts input RGB image to YCbCr color space. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus rgb2ycbcr(const CuviImage& src, ...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
Converts input RGB image to YCbCr color space.
Converts input RGB image to YCbCr color space.
===Function===
====Function====
{|
{|
|style="font-size:150%;"|
|style="font-size:100%;"|
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
CuviStatus rgb2ycbcr(const CuviImage& src,
CuviStatus rgb2ycbcr(const CuviImage& src,
Line 11: Line 11:
|}
|}


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


 
====Image Type Support====
 
{|
===Image Type Support===
|style="font-size:75%;"|
 
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 51: Line 50:
| 32fC3
| 32fC3
| 32fC3
| 32fC3
|}
|}
|}


===Sample===
====Example====
 
 
 
===Example===
{|
{|
|style="font-size:150%;"|
|style="font-size:100%;"|
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">



Latest revision as of 21:12, 18 October 2022

Converts input RGB image to YCbCr color space.

Function

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

Parameters

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

Image Type Support

Input Output
8uC3 8uC3
16uC3 16uC3
32fC3 32fC3

Example

CuviImage input = cuvi::io::loadImage(path,CUVI_LOAD_IMAGE_COLOR), output;

//Convert input RGB image to YCbCr
cuvi::colorOperations::rgb2ycbcr(input , output);