cv.dilate - MATLAB File Help |
Dilates an image by using a specific structuring element
dst = cv.dilate(src)
dst = cv.dilate(src, 'OptionName',optionValue, ...)
uint8
, uint16
, int16
, single
or double
.src
.ones(3)
. Kernel can be created
using cv.getStructuringElementintmin(class(img))
for integer
types and realmin(class(img))
for floating-point types). See
cv.morphologyDefaultBorderValueThe function dilates the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the maximum is taken:
dst(x,y) = max_{(xp,yp): Element(xp,yp)!=0} src(x+xp, y+yp)
Dilation can be applied several (Iterations
) times. In case of
multi-channel images, each channel is processed independently.