Difference between revisions of "Function:RGB2YUV"
From CUVI Wiki
| 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(const CuviImage& src, | CuviStatus rgb2yuv(const CuviImage& src, | ||
| Line 10: | Line 10: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
===Parameters=== | ===Parameters=== | ||
Revision as of 13:12, 18 October 2022
Convert RGB image to YUV color model
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input RGB image |
| dst | CuviImage& | Output YUV image |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC3 | 8uC3 |
| 16uC3 | 16uC3 |
Sample
Example
|

