dilate_countour¶
- formatreader.dilate_countour(img, n_iter=1, circle_size=3)¶
Dilates the image to capture the external contour afterwards.
- Parameters:
img (Numpy array) – A 2D binarized image.
n_iter (int) – Number of erosion/dilation operations to be performed.
circle_size (int) – Size of the structuring element to perform the dilation operation.
- Returns:
The smoothed version of the input image.
- Return type:
Numpy array