Closing (morphology)
In mathematical morphology, the closing of a set (binary image) A by a structuring element B is the erosion of the dilation of that set, A ∙ B = ( A ⊕ B ) ⊖ B , {\displaystyle A\bullet B=(A\oplus B)\ominus B,\,} where ⊕ {\displaystyle \oplus } and ⊖ {\displaystyle \ominus } denote the dilation and erosion, respectively. In image processing, closing is, together with opening, the basic workhorse of morphological noise removal.