Method: Vips::Image#maxpos

Defined in:
lib/vips8/image.rb

#maxposReal

Return the coordinates of the image maximum.

Returns:

  • (Real, Real, Real)

    maximum value, x coordinate of maximum, y coordinate of maximum

[View source]

995
996
997
998
999
1000
# File 'lib/vips8/image.rb', line 995

def maxpos
    v, opts = max :x => true, :y => true
    x = opts['x']
    y = opts['y']
    return v, x, y
end