|
|
| Line 50: |
Line 50: |
| |} | | |} |
|
| |
|
| ===Sample=== | | ====Sample==== |
| {|
| | [[File:YUV_RGB_In.jpg|none|frame|YUV Image]] |
| |-
| | <br/> |
| |[[File:YUV_RGB_In.jpg|frame|YUV Image]]
| | [[File:YUV_RGB_Out.jpg|none|frame|RGB Image]] |
| |[[File:YUV_RGB_Out.jpg|frame|RGB Image]]
| | <br/> |
| |}
| |
| | |
| | |
|
| |
|
| ===Example=== | | ===Example=== |
Revision as of 13:15, 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
YUV Image
RGB Image
Example
CuviImage input = cuvi::io::loadImage(path), output;
//Convert YUV image to RGB
cuvi::colorOperations::yuv2rgb(input,output);
|