Method: Vips::Image#percent

Defined in:
lib/vips8/methods.rb

#percent(percent, opts = {}) ⇒ Integer

Find threshold for percent of pixels.

Parameters:

  • percent (Float)

    Percent of pixels

  • opts (Hash) (defaults to: {})

    Set of options

Returns:

  • (Integer)

    Threshold above which lie percent of pixels

[View source]

# File 'lib/vips8/methods.rb', line 1480