Difference between revisions of "Function:ChannelSplit"
From CUVI Wiki
(Created page with "__NOTOC__ Splits a three channel image into R, G and B channels ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus channelSplit(CuviImage* sr...") |
|||
| Line 84: | Line 84: | ||
//Split into R, G and B channels | //Split into R, G and B channels | ||
CuviStatus st = cuvi:: | CuviStatus st = cuvi::colorOperations::channelSplit(gimg,gr,gg,gb); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Revision as of 08:50, 26 April 2012
Splits a three channel image into R, G and B channels
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | CuviImage* | 3-channel input Image |
| dstRed | CuviImage* | Output red channel image |
| dstGreen | CuviImage* | Output green channel image |
| dstBlue | CuviImage* | Output blue channel image |
| stream | CuviStream* | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC3 | 8uC1 x 3 |
| 16uC3 | 16uC1 x 3 |
Sample
Example
|



