Difference between revisions of "Function:CountInRange"
From CUVI Wiki
| Line 5: | Line 5: | ||
|style="font-size:150%;"| | |style="font-size:150%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus countInRange(const CuviImage& | CuviStatus countInRange(const CuviImage& src, | ||
Cuvi32u* count, | Cuvi32u* count, | ||
const Cuvi32f rangeMin, | const Cuvi32f rangeMin, | ||
| Line 20: | Line 20: | ||
! Description | ! Description | ||
|- | |- | ||
| | | src | ||
| const CuviImage& | | const CuviImage& | ||
| Input Image | | Input Image | ||
Revision as of 11:13, 18 April 2013
Counts the number of pixels within the given intensity range
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| count | Cuvi32u* | Computed number of pixels within the given intensity range. Returns an array of 3 values in case of 3-channel image |
| rangeMin | const Cuvi32f | Lower limit of the intensity range |
| rangeMax | const Cuvi32f | Upper limit of the intensity range |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | Cuvi32u single value |
| 8uC3 | Cuvi32u three values |
Sample
Example
|