Difference between revisions of "Function:ColorPick"
From CUVI Wiki
(Created page with "__NOTOC__ Segments input color image by selecting a specified color. Rest of the image is converted to grayscale. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight ...") |
|||
| Line 64: | Line 64: | ||
//Creating GPU images | //Creating GPU images | ||
CuviImage | CuviImage input = cuvi:io::loadImage(path), output; | ||
//Select blue color from the image. | //Select blue color from the image. | ||
cuvi:: | cuvi::colorOperations::colorPick(input,output,CUVI_COLOR_BLUE); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Revision as of 05:49, 16 June 2014
Segments input color image by selecting a specified color. Rest of the image is converted to grayscale.
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| dst | CuviImage& | Destination Image |
| color | CuviColor | The color to select from the image |
| threshold | Cuvi32f | The threshold for color selection |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC3 | 8uC3 |
Sample
Example
|