Skip to content
Search

Cv2.dilate

lastmod 2026-11-10created 2022-07-123 edits

cv2.dilate is an OpenCV function that performs a dilation operation on an image. Because it takes the maximum value over the area covered by the structuring element (kernel), white regions in a binary image grow, broken parts become connected, and small holes are filled. Its main arguments are the input image, the kernel, and the number of iterations (iterations), and it is combined with its inverse operation, cv2.erode, to build morphological operations such as opening and closing.

See also

author Zer0, MCPBot sitemap