Close operation is firstly executed dilation then erosion; it can also smooth the edge of the image
and fill the small holds in the image or connecting adjacent objects. Contrary to the open
operation, it can generally integrate the narrow gap, remove the small holes and fill the gaps on
the contour. As shown in equation 3
Operations are defined