Difference between revisions of "Function:YUV2RGB"
From CUVI Wiki
(Created page with "__NOTOC__ Convert YUV color model to an RGB image ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus yuv2rgb(CuviImage* srcImage, ...") |
|||
Line 5: | Line 5: | ||
|style="font-size:150%;"| | |style="font-size:150%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus yuv2rgb(CuviImage | CuviStatus yuv2rgb(const CuviImage& src, | ||
CuviImage | CuviImage& dst, | ||
CuviStream | const CuviStream& stream = CuviStream()); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Line 20: | Line 20: | ||
! Description | ! Description | ||
|- | |- | ||
| | | src | ||
| CuviImage | | const CuviImage& | ||
| Input YUV image | | Input YUV image | ||
|- | |- | ||
| | | dst | ||
| CuviImage | | CuviImage& | ||
| Output RGB image | | Output RGB image | ||
|- | |- | ||
| stream | | stream | ||
| CuviStream | | const CuviStream& | ||
| GPU stream ID for execution | | GPU stream ID for execution | ||
Line 64: | Line 64: | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviImage | CuviImage input = cuvi::io::loadImage(path), output; | ||
// | //Convert YUV image to RGB | ||
cuvi::colorOperations::yuv2rgb(input,output); | |||
cuvi::colorOperations:: | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} |
Revision as of 14:38, 16 June 2014
Convert YUV color model to an RGB image
Function
|
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 |
Error creating thumbnail: Unable to save thumbnail to destination |
Example
|