Article Directory
Preface
In the previous article, two basic operations of morphological processing were introduced: expansion operation and erosion operation. The opening and closing operations here are based on these two operations.
(Detailed explanation of expansion and corrosion calculation: https://blog.csdn.net/Carry_qing/article/details/114233895 )
Generally speaking, the open operation is to corrode and then expand, and the closed operation is the opposite, which will be explained in detail below.
Open operation
definition
Set A, B, if the above formula is satisfied, then image B is called to open image A.
Application note
The open operation can be used to eliminate small objects and separate objects in delicate areas. It can also be used to smooth the boundaries of large objects while ensuring that their area is not significantly changed.
Closed operation
definition
Set A, B, if it satisfies the above formula, it is said that image B performs a closed operation on image A.
Application note
The closed operation is used to fill small holes in the object, connect adjacent objects, and smooth the boundary while not changing the area of the object significantly.
Morphology processing application
The common processing using morphology is to identify the shape of an object and extract the edge of the image. Among them, recognizing the shape of an object involves a classic processing operation: hit and miss transformation.
Hit miss transform
The hit and miss transformation is a basic tool for shape detection. He first consists of two structural elements (denoted as E and F respectively), forming a structural element pair B=(E,F) (the intersection of E,F is not empty). Then use this structural element B to detect the inside and outside of the image separately to determine the shape of the object. The formula is as follows.
W.By Xyq