Docsity

Gray-value Morphology and Other Morphological Operators: A Comprehensive Guide, Thesis of Digital Image Processing

Toggle sidebar
bg1
52
Chapter 3
Gray – value Morphology and other Morphological operators
CONTENTS
3.1 Gray – value Morphological
Processing
3.2 Other operators
3.3 Applications of
Morphological Operators
3.4 Vincent‟s decomposition
Theorem
3.5 Mathematical Morphology
and Boolean
Convolution
3.6 References
3.1 Gray-value Morphological processing
Grayscale morphology is a multidimensional generalization of the binary
operations. Binary morphology is defined in terms of set-inclusion of
pixel sets. So is the grayscale case, but the pixel sets are of higher
dimension.
3.1.1 Set Inclusion in Grayscale Images
For morphological operations on gray level images sets like EN is using.
The first (N-1) coordinates conventionally form the spatial domain and
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Gray-value Morphology and Other Morphological Operators: A Comprehensive Guide and more Thesis Digital Image Processing in PDF only on Docsity!

Chapter 3 Gray – value Morphology and other Morphological operators CONTENTS 3.1 Gray – value Morphological Processing 3.2 Other operators 3.3 Applications of Morphological Operators 3.4 Vincent‟s decomposition Theorem 3.5 Mathematical Morphology and Boolean Convolution 3.6 References

3.1 Gray-value Morphological processing

Grayscale morphology is a multidimensional generalization of the binary operations. Binary morphology is defined in terms of set-inclusion of pixel sets. So is the grayscale case, but the pixel sets are of higher dimension. 3.1.1 Set Inclusion in Grayscale Images

For morphological operations on gray level images sets like EN^ is using. The first (N-1) coordinates conventionally form the spatial domain and

the last coordinate is for the surface. For gray level images N=3, the first two coordinates of an element in a set are the (x, y) in the image and the third is the gray level. Concepts such as top or top-surface of a set and the shadow (umbra) of a surface are used in the definitions of the operations.

Let A be EN. The domain of A is defined as:

D = { x EN-1^ | there is a y E, ( x ,y) A}

The top or top-surface of A is a function T[A] : D - > E: is defined as

T[A] ( x ) = Max { y | ( x , y) A } In grayscale morphology, set inclusion depends on the implicit 3D structure of a 2D image. 3.1.2 Example:

3.1.3 Grayscale Structuring Elements A grayscale structuring element is a small image that delineates a volume at each pixel [p, I(p)] throughout the image volume 3.1.4 Definition : Gray-level dilation , DG (*), is given by: [2]

Dilation -

3.2.4 Effects of Grayscale Dilation

a) Generally brighten the image b) Bright regions surrounded by dark regions grow in size, and dark regions surrounded by bright regions shrink in size.

3.2.5 Erosion using symmetric structuring elements : Erosion -

3.2.6 Effects of Grayscale Erosion

a) Generally darken the image b) Bright regions surrounded by dark regions shrink in size, and dark regions surrounded by bright regions grow in size.

3.2.7 Definition: Opening -

3.2.8 Definition: Closing -

3.2.9 Example

  • The adjunction opening [2] and closing create a simpler function than the original. They smooth in a nonlinear way.
  • The opening (closing) removes positive (negative) peaks that are thinner than the structuring element.

The opening (closing) remains below (above) the original function.

(^0020406080)

10

20

30

40

50

60

Sample

Level Original

Closing

Opening Structuringelement

The remarkable conclusion is that the maximum filter and the minimum filter , are gray-level dilation and gray-level erosion for the specific structuring element given by the shape of the filter window with the gray value "0" inside the window. Examples of these operations on a simple one-dimensional signal are shown in Figure.

Example:

3.2.13Definition: Black hat

The black hat is the difference between the closing of an image and the image itself. This highlights the narrow black regions in the image.

Example:

3.3 Applications of morphological operations

Erosion and dilation can be used in a variety of ways, in parallel and series, to give other transformations including thickening, thinning, skeletonization and many others.

The morphological filter can be used to eliminate `salt and pepper' noise. Salt and pepper noise is random, uniformly distributed

small noisy elements often found corrupting real images. It will appear as black dots or small blobs on a white background, and white dots or small blobs on the black object. The background noise is eliminated at the erosion stage, under the assumption that all noise components are physically smaller than the structuring element B. Erosion on its own will increase the size of the noise components on the object. However, these are eliminated at the closing operation.

3.3.1 The boundary of a set A , denoted , can be obtained by first eroding A with B , where B is a suitable structuring element, and then performing the set difference between A and its erosion. That is

Typically, B would be a matrix of 1s.

3.3.2. Region filling algorithm:

Region filling [1], [2], [3] can be accomplished iteratively using dilations, complementation, and intersections.

Step 1: Let A be an image containing a subset whose elements are 8- connected [1] boundary points of a region.

Step 2 : Let p be a point inside the boundary.

Step 3 : The objective is to fill the entire region with 1s. Assume that all non-boundary points are labeled 0, assign 1 to p ,

Step 3 :

If Xk = Xk -1 the algorithm has converged and let Y = Xk.

3.3.4 Definition : Thinning and Thickening operators are defined as follows:

Thinnig:

Example:

3.3.5 Definition :

An important step in representing the structural shape of a planar region is to reduce it to a graph. This is very commonly used in robot path planning. This reduction is most commonly achieved by reducing the region to its skeleton.

The skeleton [1],[2] of a region is defined by the medial axis transformation MAT. The MAT of a region R with border B is defined as follows: for each point p in R , find its closest neighbour in B. If p has more than one such closest neighbour, then p belongs to the medial axis

(or skeleton) of R. Closest depends on the metric used. Figure shows some examples with the usual Euclidean metric.

Figure: The skeletons of three simple regions

The skeleton of a set can be expressed in terms of erosions and openings.

Thus, it can be shown that

where

3.3.6 Reconstruction using Skelton:

B is a structuring element, indicates k successive erosions of A , and K is the last iterative step before A erodes to an empty set.

Thus A can be reconstructed from its skeleton subsets Sk ( A ) using the equation

3.4.5 Theorem:

Vincent's theorem, [1]when applied to an image consisting of discrete pixels, states that for a bounded, symmetric structuring element B that contains no holes and contains its own center, :

where A is the contour of the object. That is, A is the set of pixels that have a background pixel as a neighbor.

3.4.6 Implication of the theorem:

The implication of this theorem is that it is not necessary to process all the pixels in an object in order to compute a dilation or (using eq. ) an erosion but have to process the boundary pixels. This also holds for all operations that can be derived from dilations and erosions.

3.5 Boolean Convolution

3.5.1 Definition:

An arbitrary binary image object (or structuring element) A can be represented as: [1]

where and * are the Boolean operations OR and AND , a [ j , k ] is a characteristic function that takes on the Boolean values "1" and "0" as follows:

and d[ m , n ] is a Boolean version of the Dirac delta function that takes on the Boolean values "1" and "0" as follows:

3.5.2 Definition:

Dilation for binary images can therefore be written as:

which, because Boolean OR and AND are commutative, can also be written as

4 Morphological Image Operators, H.J.A.M Heijmans, Academic Press, Boston 1994.

5 Image Analysis and Mathematical Morphology ,Volume 1,J.Serra,Academic Press,London,1982.

6 Morphological Image Analysis,P.Soille,Springer,Berlin,1999.

7 A representation theory for morphological image and signal processing, Maragos.P, IEEE Transactions on Pattern Analysis and Machine Intelligence 11(1989), 586-599.