Difference between revisions of "Function:CountInRange"
From CUVI Wiki
| Line 75: | Line 75: | ||
CuviImage | CuviImage gimg = cuvi::io::loadImage(path); | ||
CuviScalar count; | CuviScalar count; | ||
Revision as of 12:51, 13 June 2014
Counts the number of pixels within the given intensity range
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| count | CuviScalar& | Computed number of pixels within the given intensity range. |
| rangeMin | const CuviScalar& | Lower limit of the intensity range |
| rangeMax | const CuviScalar& | Upper limit of the intensity range |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | CuviScalar |
| 8uC3 | CuviScalar |
| 32fC1 | CuviScalar |
| 32fC3 | CuviScalar |
Sample
Example
|