Difference between revisions of "Function:ChannelSplit"
From CUVI Wiki
| Line 4: | Line 4: | ||
===Function=== | ===Function=== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus channelSplit(const CuviImage& src, | CuviStatus channelSplit(const CuviImage& src, | ||
| Line 13: | Line 13: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
===Parameters=== | ===Parameters=== | ||
Revision as of 12:44, 18 October 2022
Splits a three channel image into R, G and B channels
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | 3-channel input Image |
| red | CuviImage& | Output red channel image |
| green | CuviImage& | Output green channel image |
| blue | CuviImage& | Output blue channel image |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC3 | 8uC1 x 3 |
| 16uC3 | 16uC1 x 3 |
| 32fC3 | 32fC1 x 3 |
Sample
Example
|



