lib/vips/image.rb
# Join a set of images bandwise.
#
# @param other [Image, Array<Image>, Real, Array<Real>] bands to append
# @return [Image] many band image
Join a set of images bandwise.
Join a set of images bandwise .
def bandjoin other
            unless other.is_a? Array
                other = [other]
            end
            not_all_real = !other.all?{|x| x.is_a? Numeric}
            if not_all_real
                Vips::Image.bandjoin([self] + other)
            else
                bandjoin_const other
            end
        end
def bandjoin other unless other . is_a? Array other = [ other ] end not_all_real = ! other . all? { | x | x . is_a? Numeric } if not_all_real Vips :: Image . bandjoin ( [ self ] + other ) else bandjoin_const other end end
Join a set of images bandwise.
Join a set of images bandwise .
# if other is just Numeric, we can use bandjoin_const
many band image
many band image
Image
other
bands to append
bands to append