Difference between revisions of "Function:Threshold"
From CUVI Wiki
(Created page with "__NOTOC__ Clamps image pixel values between specified thresholds. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus threshold(const CuviImage...") |
|||
| Line 68: | Line 68: | ||
CuviScalar maxThresh(100,200,150); | CuviScalar maxThresh(100,200,150); | ||
// | //Apply threshold on image pixel values | ||
cuvi::dataExchange::threshold(gimg,gout,minThresh, maxThresh); | cuvi::dataExchange::threshold(gimg,gout,minThresh, maxThresh); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Latest revision as of 05:50, 16 June 2014
Clamps image pixel values between specified thresholds.
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| dst | CuviImage& | Destination Image |
| minThresh | const CuviScalar& | Minimum value of threshold |
| maxThresh | const CuviScalar& | Maximum value of threshold |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8u | 8u |
| 16u | 16u |
Example
|