Difference between revisions of "Function:Max"
From CUVI Wiki
(Created page with "__NOTOC__ Computes the maximum of image pixel values ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus max(CuviImage* image, C...") |
|||
Line 25: | Line 25: | ||
| maxValue | | maxValue | ||
| Cuvi64f* | | Cuvi64f* | ||
| | | Maximum pixel value in the image | ||
|- | |- | ||
| stream | | stream | ||
Line 68: | Line 68: | ||
//Returns | //Returns maximum pixel value | ||
cuvi::arithmeticLogical::max(gimg, &max); | cuvi::arithmeticLogical::max(gimg, &max); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} |
Revision as of 14:57, 8 May 2012
Computes the maximum of image pixel values
Function
|
Parameters
Name | Type | Description |
---|---|---|
image | CuviImage* | Input Image |
maxValue | Cuvi64f* | Maximum pixel value in the image |
stream | CuviStream* | GPU stream ID for execution |
Image Type Support
Input | Output |
---|---|
8uC1 | Cuvi64f single value |
8uC3 | Cuvi64f three values |
Sample
Error creating thumbnail: Unable to save thumbnail to destination
|
Example
|