|
|
| Line 69: |
Line 69: |
| |} | | |} |
|
| |
|
| ===Example=== | | ====Example==== |
| {| | | {| |
| |style="font-size:150%;"| | | |style="font-size:100%;"| |
| <syntaxhighlight lang="cpp"> | | <syntaxhighlight lang="cpp"> |
|
| |
|
Latest revision as of 10:30, 19 October 2022
Computes the maximum of image pixel values. Each channel is processed individually.
Function
CuviStatus max(const CuviImage& src,
CuviScalar& maxValue,
const CuviStream& stream = CuviStream());
|
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
Example
CuviImage gimg = cuvi::io::loadImage(path);
CuviScalar maxValues;
//Returns maximum pixel value
cuvi::imageStatistics::max(gimg, maxValues);
|