Method: Vips::Image#labelregions

Defined in:
lib/vips8/methods.rb

#labelregions(opts = {}) ⇒ Vips::Image, Hash<Symbol => Object>

Label regions in an image.

Parameters:

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

    Set of options

Options Hash (opts):

  • :segments (Integer)

    Output -- Number of discrete contigious regions

Returns:

  • (Vips::Image, Hash<Symbol => Object>)

    Mask of region labels, Hash of optional output items

[View source]

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