dilate

Description

Dilates an image by using a specific structuring element.

Signature

cv2.dilate(src, kernel[, dst[, anchor[, iterations[, borderType[, borderValue]]]]]) → dst

Parameters

Explanation

The 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_{(x',y'): \text{ kernel}(x',y') \neq 0} src(x+x',y+y')$$ The function supports the in-place mode. Dilation can be applied several (iterations) times. In case of multi-channel images, each channel is processed independently.

Notes


References

Created with OpenCV 4.4.0