Professional Documents
Culture Documents
Lecture7 Morphological Image Processing
Lecture7 Morphological Image Processing
Lecture 7
Morphological Image Processing
Morphological Image Processing
• The word morphology commonly denotes a branch of biology that
deals with the form and structure of animals and plants.
• We use the same word here in the context of mathematical
morphology as a tool for extracting image components that are useful
in the representation and description of region shape, such as
boundaries, skeletons, and the convex hull.
• We are interested also in morphological techniques for pre- or
postprocessing, such as morphological filtering, thinning, and pruning.
A . B=(A⊕B)⊖B
Opening
Closing
Opening
Closing
The Hit-or-Miss Transformation
• The morphological hit-or-miss transform is a basic tool for shape
detection
• This concept is introduced with the aid of Fig. 9.12, which shows a set
consisting of three shapes (subsets), denoted C, D and E
• The shading in Figs. 9.12(a) through (c) indicates the original sets,
whereas the shading in Figs. 9.12(d) and (e) indicates the result of
morphological operations.
• The objective is to find the location of one of the shapes, say,D.
Boundary Extraction
• The boundary of a set A
denoted by β(A) can be
obtained by first eroding A by
B and then performing the set
difference between A and its
erosion. Where B is suitable
structuring element.
β(A) = A - (A ⊖
B)
Boundary Extraction
Hole Filling
• A hole may be defined as a background region surrounded by a
connected border of foreground pixels.
• To develop an algorithm based on dilation, complementation, and
intersection for filling holes in an image.
• Let A denote a set whose elements are 8-connected boundaries, each
boundary enclosing a background region (i.e., a hole).
• Given a point in each hole, the objective is to fill all the holes with 1s.
Hole Filling
• We begin by forming an array, X0 , of 0s (the same size as the array
containing A), except at the locations in corresponding to the given
point in each hole, which we set to 1.
• Then, the following procedure fills all the holes with 1s