Jump to content

Opening (morphology)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Yobot (talk | contribs) at 08:25, 29 August 2017 (→‎References: Removed invisible unicode characters + other fixes (Task 55), replaced: → (2) using AWB (12151)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The opening of the dark-blue square by a disk, resulting in the light-blue square with round corners.

In mathematical morphology, opening is the dilation of the erosion of a set A by a structuring element B:

where and denote erosion and dilation, respectively.

Together with closing, the opening serves in computer vision and image processing as a basic workhorse of morphological noise removal. Opening removes small objects from the foreground (usually taken as the bright pixels) of an image, placing them in the background, while closing removes small holes in the foreground, changing small islands of background into foreground. These techniques can also be used to find specific shapes in an image. Opening can be used to find things into which a specific structuring element can fit (edges, corners, ...).

One can think of B sweeping around the inside of the boundary of A, so that it does not extend beyond the boundary, and shaping the A boundary around the boundary of the element.

Properties

  • Opening is idempotent, that is, .
  • Opening is increasing, that is, if , then .
  • Opening is anti-extensive, i.e., .
  • Opening is translation invariant.
  • Opening and closing satisfy the duality , where denotes closing.

Opening by reconstruction

In morphological opening , erosion operation removes objects that are smaller than structuring element B and dilation operation restores the shape of remaining objects. However, restoring accuracy in dilation operation highly depends on the type of structuring element and the shape of restoring objects. The opening by reconstruction method is able to restore the objects completely after erosion applied. It is defined as the reconstruction by geodesic dilation of erosions of by with respect to  :

[1]

where denotes a marker image and is a mask image in morphological reconstruction by dilation. [1] denotes geodesic dilation with iterator until stability such that [1] Since [1] the marker image is limited the growth region by mask image, the dilation operation on marker image will not expand beyond mask image so that the marker image is subset of mask image [1]

The images below present a simple opening-by-reconstruction example which extracts the vertical strokes from an input text image. Since the original image is converted from grayscale to binary image, it has few distortions in some characters so that same characters might have different vertical lengths. In this case, the structuring element is an 8-pixel vertical line which is applied in erosion operation in order to find objects of interest. Moreover, morphological reconstruction by dilation, [1] iterates times until resulting image converge.

Original image for opening by reconstruction
Marker image
Result of opening by reconstruction

See also

Bibliography

  • Image Analysis and Mathematical Morphology by Jean Serra, ISBN 0-12-637240-3 (1982)
  • Image Analysis and Mathematical Morphology, Volume 2: Theoretical Advances by Jean Serra, ISBN 0-12-637241-1 (1988)
  • An Introduction to Morphological Image Processing by Edward R. Dougherty, ISBN 0-8194-0845-X (1992)

External links

References

  1. ^ a b c d e f 1954-, Woods, Richard E. (Richard Eugene),. Digital image processing. ISBN 9789332570320. OCLC 979415531. {{cite book}}: |last= has numeric name (help)CS1 maint: extra punctuation (link) CS1 maint: multiple names: authors list (link)
  • Digital Image Processing (Third Edition) by Rafael C. Gonzalez and Richard E. Woods, ISBN 978-93-325-7032-0(2008)