Opening (image processing)

from Wikipedia, the free encyclopedia

Opening (in German also opening or opening) is a morphological basic operation in digital image processing . The opening serves u. a. the suppression of local disturbances through bright pixels or the filtering out of small structures. The dual operation to opening is closing .

Formal definition

A complete association is given . An operator on is an (algebraic) opening if the following applies to all :

  • ; ie the operator is anti-extensive (the result is "smaller" than the original)
  • ; ie the order structure of the association is retained by the operation.
  • ; ie the operator is idempotent (repeated use does not change the result any more).

Open in binary image morphology

In the case of binary image morphology, the association is given by the power set association of all image points. A binary image is thus understood as a point set. The first two of the above properties can then be formulated as follows:

  • Opening no additional pixels is set, but at most points are removed.
  • If an image contains an image as a subset, the following applies: after opening, the result of also contains the result of . Note that they do not have to be real subsets. This means, among other things, that two different images can be mapped onto the same image by opening them. Opening is therefore generally irreversible (information is completely deleted).

This definition is very broad; In practice, various procedures have been established, which are briefly outlined below.

Opening by means of a structuring element

Opening a binary image with a circle as a structuring element.

A special case is opening using a structuring element. It is defined as follows:


It is therefore a matter of executing an erosion and a dilatation one after the other, each with the same structuring element. The erosion erases all structures that are smaller than the structuring element. The subsequent dilation reverses the erosion for the remainder.

The definition becomes clearer if it is described as


where represents the element moved by . So opening an image with a structuring element is the union of all shifted versions of that are completely contained in.

Open by size

When opening with size, all connected structures that contain fewer pixels than a certain threshold value are deleted. This operator also satisfies the formal definition of opening.

Open using the reconstruction filter

The conditional dilation of with under the condition is defined to

.

So you dilate with and then "cut" off all points that are not in . If one chooses the unit environment (i.e. the neighboring pixels of a point) as the structuring element , one speaks of geodetic dilation

.

The nth geodetic dilation is defined as

.

So you gradually add all the neighboring pixels that are in the immediate vicinity of the image and check whether they are also in . If you repeat this process as often as you like, you will eventually reach the point where nothing changes anymore. This is known as reconstructing from the marker

.

If the marker was obtained from the image by opening it by means of a structuring element , this is referred to as opening by reconstruction

.

example

The following figure shows the results of the different procedures. The original image is shown in (a), which was opened for size in (b). If you open it with a circle as a structuring element (shown in yellow), you get the result (c). The lower left structure is completely deleted because the circle does not "fit in". Finally, the image (d) is the reconstruction of (a) from (c), i.e. a reconstruction opening with the circle element.
Open total.gif

Open in the gray value morphology

In the case of gray value morphology, the association is the set of all functions . Formally, you need the values ​​-∞ and + ∞ for the definition (to get a complete lattice). In practice, however, only the case of a discrete, finite domain of definition and value is important.

The general properties of opening are then shown as follows:

  • ; (no image point receives a value that is higher than the original, i.e. the image does not become brighter at any point)
  • ; (If an image is not lighter than a second image at any point , the opened image is also not lighter than at any point ).

Analogous to binary image morphology, there are also various established methods here.

Opening by means of a structuring element

The definition is analogous to the binary image morphology.


The view is (almost) analogous to that in the case of binary image morphology. The structures into which the structuring element fits completely are also retained here. However, the image is interpreted here as a mountain range above a plane (the gray values ​​determine the height, the image coordinates the point in the plane). The structuring element scans the mountains from below.

Mostly “flat” structuring elements are used as structuring elements, ie the value of the element is 0 in the area of ​​the structure to be displayed and otherwise -∞.

Open using the reconstruction filter

Opening with a reconstruction filter is defined analogously to the binary image morphology. The flat unit environment is generally used as a structuring element for the representation of the unit environment.

See also

literature

  • Image Processing and Mathematical Morphology . Jean Serra. Academic Press, London, 1982
  • Image Processing and Mathematical Morphology, Part II: Theoretical Advances . Jean Serra. Academic Press, London, 1988
  • Methods of digital image signal processing . Piero Zamperoni, Vieweg Verlag, 1989
  • Granulometries in gray value morphology . Martin Pfeiffer. Shaker Verlag Aachen, 1999. ISBN 3-8265-4784-5