Method: Vips::Image#extract_band

Defined in:
lib/vips8/methods.rb

#extract_band(band, opts = {}) ⇒ Vips::Image

Extract band from an image.

Parameters:

  • band (Integer)

    Band to extract

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

    Set of options

Options Hash (opts):

  • :n (Integer)

    Number of bands to extract

Returns:

[View source]

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