【Image Mathematical Morphology Processing】Open and Close Operation and Application

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

Open calculation formula
Set A, B, if the above formula is satisfied, then image B is called to open image A.
Open operation diagram

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.
Open operation processing effect

Closed operation

definition

Closed calculation formula
Set A, B, if it satisfies the above formula, it is said that image B performs a closed operation on image A.
Closed operation diagram

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.
Close arithmetic processing effect

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.
Hit and miss transformation formula
Hitting and not hitting transformation diagram
W.By Xyq

Guess you like

Origin blog.csdn.net/Carry_qing/article/details/114260197