Method: Vips::Image#dilate

Defined in:
lib/vips/image.rb

#dilate(mask) ⇒ Image

Dilate with a structuring element.

The structuring element must be an array with 0 for black, 255 for white and 128 for don't care.

Parameters:

  • mask (Image, Array<Real>, Array<Array<Real>>)

    structuring element

Returns:

  • (Image)

    dilated image



1589
1590
1591
# File 'lib/vips/image.rb', line 1589

def dilate mask
  morph mask, :dilate
end