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, ...") |
|||
| Line 5: | Line 5: | ||
|style="font-size:150%;"| | |style="font-size:150%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus rgb2yuv(CuviImage | CuviStatus rgb2yuv(const CuviImage& src, | ||
CuviImage | CuviImage& dst, | ||
CuviStream | const CuviStream& stream = CuviStream()); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
| 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 | ||
| Line 64: | Line 64: | ||
<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> | ||
|} | |} | ||
Revision as of 08:09, 19 April 2013
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
|

