Method: Vips::Image#bandsplit

Defined in:
lib/vips8/image.rb

#bandsplitArray<Image>

Split an n-band image into n separate images.

Returns:

  • (Array<Image>)

    Array of n one-band images

[View source]

975
976
977
# File 'lib/vips8/image.rb', line 975

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