Difference between revisions of "Function:Max"
From CUVI Wiki
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Computes the maximum of image pixel values. Each channel is processed individually. | Computes the maximum of image pixel values. Each channel is processed individually. | ||
===Function=== | ====Function==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus max(const CuviImage& src, | CuviStatus max(const CuviImage& src, | ||
Line 11: | Line 11: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
===Parameters=== | ===Parameters=== | ||
Revision as of 18:29, 19 October 2022
Computes the maximum of image pixel values. Each channel is processed individually.
Function
|
Parameters
Name | Type | Description |
---|---|---|
src | const CuviImage& | Input Image |
maxValue | CuviScalar& | Maximum pixel value(s) in the image |
stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
Input | Output |
---|---|
8uC1 | CuviScalar |
8uC3 | CuviScalar |
16uC1 | CuviScalar |
16uC3 | CuviScalar |
32fC1 | CuviScalar |
32fC3 | CuviScalar |
Sample
Error creating thumbnail: Unable to save thumbnail to destination
|
Example
|