March 2019
Intermediate to advanced
532 pages
13h 2m
English
The main effect of a dilation operation on a binary image is to gradually expand the boundary regions of the foreground object. This means the areas of the foreground object will become larger while holes within those regions shrink. The details of operation are shown in the following code:
dilation = cv2.dilate(image, kernel, iterations=1)