Method: Vips::Image#minpos

Defined in:
lib/vips8/image.rb

#minposReal

Return the coordinates of the image minimum.

Returns:

  • (Real, Real, Real)

    minimum value, x coordinate of minimum, y coordinate of minimum

[View source]

1006
1007
1008
1009
1010
1011
# File 'lib/vips8/image.rb', line 1006

def minpos
    v, opts = min :x => true, :y => true
    x = opts['x']
    y = opts['y']
    return v, x, y
end