Difference between revisions of "Function:YUV2RGB"

From CUVI Wiki
Line 34: Line 34:
|}
|}


===Image Type Support===
====Image Type Support====
 
{|
|style="font-size:75%;"|
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 46: Line 47:
| 16uC3
| 16uC3
| 16uC3
| 16uC3
|}
|}
|}



Revision as of 21:14, 18 October 2022

Convert YUV color model to an RGB image

Function

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

Parameters

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

Image Type Support

Input Output
8uC3 8uC3
16uC3 16uC3

Sample

Error creating thumbnail: Unable to save thumbnail to destination
YUV Image
Error creating thumbnail: Unable to save thumbnail to destination
RGB Image


Example

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

//Convert YUV image to RGB
cuvi::colorOperations::yuv2rgb(input,output);