Difference between revisions of "Function:RGB2YUV"
From CUVI Wiki
(Created page with "__NOTOC__ Convert RGB image to YUV color model ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus rgb2yuv(CuviImage* srcImage, ...") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Convert RGB image to YUV color model | Convert RGB image to YUV color model | ||
===Function=== | ====Function==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus rgb2yuv(CuviImage | CuviStatus rgb2yuv(const CuviImage& src, | ||
CuviImage | CuviImage& dst, | ||
CuviStream | const CuviStream& stream = CuviStream()); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
====Parameters==== | |||
===Parameters=== | {| | ||
|style="font-size:75%;"| | |||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
Line 20: | Line 20: | ||
! Description | ! Description | ||
|- | |- | ||
| | | src | ||
| CuviImage | | const CuviImage& | ||
| Input RGB image | | Input RGB image | ||
|- | |- | ||
| | | dst | ||
| CuviImage | | CuviImage& | ||
| Output YUV image | | Output YUV image | ||
|- | |- | ||
| stream | | stream | ||
| 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 49: | Line 48: | ||
| 16uC3 | | 16uC3 | ||
|} | |} | ||
|} | |} | ||
====Sample==== | |||
[[File:YUV_RGB_Out.jpg|none|frame|RGB Image]] | |||
<br/> | |||
[[File:YUV_RGB_In.jpg|none|frame|YUV Image]] | |||
<br/> | |||
====Example==== | |||
===Example=== | |||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviImage | CuviImage gimg = cuvi::io::loadImage(path,CUVI_LOAD_IMAGE_COLOR), gout; | ||
//function call | //function call | ||
cuvi::colorOperations:: | cuvi::colorOperations::rgb2yuv(gimg,gout); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} |
Latest revision as of 21:13, 18 October 2022
Convert RGB image to YUV color model
Function
|
Parameters
|
Image Type Support
|
Sample
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Example
|