Difference between revisions of "Function:CountInRange"
From CUVI Wiki
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Counts the number of pixels within the given intensity range | Counts the number of pixels within the given intensity range | ||
===Function=== | ====Function==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus countInRange(const CuviImage& src, | CuviStatus countInRange(const CuviImage& src, | ||
| Line 12: | Line 12: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
====Parameters==== | |||
{| | |||
|style="font-size:75%;"| | |||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
| Line 39: | Line 41: | ||
| const CuviStream& | | const CuviStream& | ||
| GPU stream ID for execution | | GPU stream ID for execution | ||
|} | |||
|} | |} | ||
===Image Type Support=== | ====Image Type Support==== | ||
{| | |||
|style="font-size:75%;"| | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| Line 60: | Line 63: | ||
| 32fC3 | | 32fC3 | ||
| CuviScalar | | CuviScalar | ||
|} | |||
|} | |} | ||
===Sample=== | ====Sample==== | ||
{| | {| | ||
|- | |- | ||
| Line 69: | Line 73: | ||
===Example=== | ====Example==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviImage | CuviImage gimg = cuvi::io::loadImage(path); | ||
CuviScalar count; | CuviScalar count; | ||
Latest revision as of 10:29, 19 October 2022
Counts the number of pixels within the given intensity range
Function
|
Parameters
|
Image Type Support
|
Sample
Example
|