打开和关闭是数字图像处理中用于恢复侵蚀图像的双重操作。开孔一般用于最大限度地还原或恢复原始图像。闭合通常用于使失真图像的轮廓更加平滑,并融合回狭窄的中断和细长的海湾。 Closing 也用于去除所获得图像的小孔。
Opening和Closing的组合通常用于在将图像用于数字分析之前清除分割图像中的伪影。
Opening 和 Closing 之间的一些区别是:
S.No. | Opening | Closing |
---|---|---|
1. | Opening is a process in which first erosion operation is performed and then dilation operation is performed. | Closing is a process in which first dilation operation is performed and then erosion operation is performed. |
2. | Opening operation performed on X & Y is the union of all translations of Y that fit entirely within X. | Closing operation performed on X & Y is the complement of the union of all translations of Y that do not fit entirely within X. |
3. | It eliminates the thin protrusions of the obtained image. | It eliminates the small holes from the obtained image. |
4. | Opening operation performed on X & Y is represented by (AoB). | Closing operation performed on X & Y is represented by (A.B) |
5. | Opening is used for removing internal noise of the obtained image. | Closing is used for smoothening of contour and fusing of narrow breaks. |
开口表示为:
Properties of Opening are:
1. XoY is a subset (subimage of X)
2. If X is a subset of Z then XoY is a subset of ZoY
3.(XoY)oY = XoY
关闭表示为:
Properties of Closing are:
1. X is a subset subimage of X.Y
2. (X.Y).Y = X.Y