Difference between revisions of "Function:GetChannel"
From CUVI Wiki
(Created page with "__NOTOC__ Extracts the specified channel from a multichannel image. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus getChannel(const CuviIm...") |
|||
| Line 29: | Line 29: | ||
| channel | | channel | ||
| Cuvi32s | | Cuvi32s | ||
| Channel number to | | Channel number from 0 to (src.channels() - 1) | ||
|- | |- | ||
| stream | | stream | ||
Latest revision as of 11:11, 13 June 2014
Extracts the specified channel from a multichannel image.
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| dst | CuviImage& | Destination Image |
| channel | Cuvi32s | Channel number from 0 to (src.channels() - 1) |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC3 | 8uC1 |
| 8uC4 | 8uC1 |
| 16uC3 | 16uC1 |
| 16uC4 | 16uC1 |
| 32fC3 | 32fC1 |
| 32fC4 | 32fC1 |
Example
|