Method: Vips::Image#bandsplit

Defined in:
lib/vips/image.rb

#bandsplitArray<Image>

Split an n-band image into n separate images.

Returns:

  • (Array<Image>)

    Array of n one-band images



1304
1305
1306
# File 'lib/vips/image.rb', line 1304

def bandsplit
  (0...bands).map { |i| extract_band i }
end