Method
VipsImagemax
Declaration [src]
int
vips_max (
VipsImage* in,
double* out,
...
)
Description [src]
Optional arguments
x
: horizontal position of maximumy
: vertical position of maximumsize
: number of maxima to findout_array
: return array of maximum valuesx_array
: corresponding horizontal positionsy_array
: corresponding vertical positions
This operation finds the maximum value in an image.
By default it finds the single largest value. If size
is set >1, it will
find the size
largest values. It will stop searching early if has found
enough values.
Equal values will be sorted by y then x.
It operates on all
bands of the input image: use vips_stats()
if you need to find an
maximum for each band.
For complex images, this operation finds the maximum modulus.
You can read out the position of the maximum with x
and y
. You can read
out arrays of the values and positions of the top size
maxima with
out_array
, x_array
and y_array
. These values are returned sorted from
largest to smallest.
If there are more than size
maxima, the maxima returned will be a random
selection of the maxima in the image.
See also
This method is not directly available to language bindings.