Skip to main content

Dilation

Enlarges the size of foreground objects by iteratively expanding their boundaries.

🖞ïļ Image options and parameters of dilate method
🎭 Mask options and parameters of dilate method

Dilation is a fundamental morphological operation in image processing that is used to expand the size of foreground objects (regions of interest) within an image while preserving their shape and structure. It involves moving a structuring element over the image and replacing each pixel with the maximum value of the pixels covered by the structuring element. Dilation is commonly used for tasks like noise reduction, object enlargement, and feature enhancement.

placeholderplaceholder
Ran in 0.00Ξs (Infinity ops/s)

Kinds of images compatible with algorithm​

Image propertyWhat it meansPossible values
bitDepthnumber of bits per channel[1,8,16]
componentsnumber of components[1]
alphais alpha channel allowedfalse

Parameters and default values​

info

Parameters and options for Images and Masks are the same.

  • options

Options​

PropertyRequiredDefault value
iterationsno1
kernelno[[1, 1, 1],[1, 1, 1],[1, 1, 1]]
info

The method is also available for Masks.