Computes the maximum of image pixel values
Function
CuviStatus max(const CuviImage& src,
Cuvi64f* maxValue,
const CuviStream& stream = CuviStream());
|
Parameters
| Name
|
Type
|
Description
|
| src
|
const CuviImage&
|
Input Image
|
| maxValue
|
Cuvi64f*
|
Maximum pixel value in the image
|
| stream
|
const CuviStream&
|
GPU stream ID for execution
|
Image Type Support
| Input
|
Output
|
| 8uC1
|
Cuvi64f single value
|
| 8uC3
|
Cuvi64f three values
|
Sample
Example
CuviImage gimg = cuvi::io::loadImage(path);
Cuvi64f* max = new Cuvi64f[gimg.channels()];
//Returns maximum pixel value
cuvi::imageStatistics::max(gimg, max);
|