Method: Vips::Image#dilate

Defined in:
lib/vips8/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

[View source]

1191
1192
1193
# File 'lib/vips8/image.rb', line 1191

def dilate(mask)
    morph mask, :dilate
end