Closing (morphology)

Last updated
The closing of the dark-blue shape (union of two squares) by a disk, resulting in the union of the dark-blue shape and the light-blue areas. Closing.png
The closing of the dark-blue shape (union of two squares) by a disk, resulting in the union of the dark-blue shape and the light-blue areas.

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,

Contents

where and denote the dilation and erosion, respectively.

In image processing, closing is, together with opening, the basic workhorse of morphological noise removal. Opening removes small objects, while closing removes small holes.

Example

Perform Dilation ( ):

Suppose A is the following 11 x 11 matrix and B is the following 3 x 3 matrix:

    0 0 0 0 0 0 0 0 0 0 0     0 1 1 1 1 0 0 1 1 1 0        0 1 1 1 1 0 0 1 1 1 0       0 1 1 1 1 1 1 1 1 1 0     0 1 1 1 1 0 0 0 1 1 0              1 1 1     0 1 1 1 1 0 0 0 1 1 0              1 1 1     0 1 0 0 1 0 0 0 1 1 0              1 1 1     0 1 0 0 1 1 1 1 1 1 0            0 1 1 1 1 1 1 1 0 0 0        0 1 1 1 1 1 1 1 0 0 0        0 0 0 0 0 0 0 0 0 0 0

For each pixel in A that has a value of 1, superimpose B, with the center of B aligned with the corresponding pixel in A.

Each pixel of every superimposed B is included in the dilation of A by B.

The dilation of A by B is given by this 11 x 11 matrix.

is given by :

    1 1 1 1 1 1 1 1 1 1 1     1 1 1 1 1 1 1 1 1 1 1        1 1 1 1 1 1 1 1 1 1 1       1 1 1 1 1 1 1 1 1 1 1     1 1 1 1 1 1 0 1 1 1 1     1 1 1 1 1 1 1 1 1 1 1     1 1 1 1 1 1 1 1 1 1 1     1 1 1 1 1 1 1 1 1 1 1            1 1 1 1 1 1 1 1 1 1 1        1 1 1 1 1 1 1 1 1 1 1   

Now, Perform Erosion on the result: ()

is the following 11 x 11 matrix and B is the following 3 x 3 matrix:

    1 1 1 1 1 1 1 1 1 1 1     1 1 1 1 1 1 1 1 1 1 1        1 1 1 1 1 1 1 1 1 1 1       1 1 1 1 1 1 1 1 1 1 1     1 1 1 1 1 1 1 1 1 1 1              1 1 1     1 1 1 1 1 1 0 1 1 1 1              1 1 1     1 1 1 1 1 1 1 1 1 1 1              1 1 1     1 1 1 1 1 1 1 1 1 1 1            1 1 1 1 1 1 1 1 1 1 1        1 1 1 1 1 1 1 1 1 1 1        1 1 1 1 1 1 1 1 1 1 1

Assuming that the origin B is at its center, for each pixel in superimpose the origin of B, if B is completely contained by A the pixel is retained, else deleted.

Therefore the Erosion of by B is given by this 11 x 11 matrix.

() is given by:

    0 0 0 0 0 0 0 0 0 0 0     0 1 1 1 1 1 1 1 1 1 0     0 1 1 1 1 1 1 1 1 1 0     0 1 1 1 1 1 1 1 1 1 0     0 1 1 1 1 0 0 0 1 1 0     0 1 1 1 1 0 0 0 1 1 0      0 1 1 1 1 0 0 0 1 1 0     0 1 1 1 1 1 1 1 1 1 0      0 1 1 1 1 1 1 1 1 1 0      0 1 1 1 1 1 1 1 1 1 0     0 0 0 0 0 0 0 0 0 0 0

Therefore Closing Operation fills small holes and smoothes the object by filling narrow gaps.

Properties

See also

Bibliography

Related Research Articles

Digital image processing is the use of a digital computer to process digital images through an algorithm. As a subcategory or field of digital signal processing, digital image processing has many advantages over analog image processing. It allows a much wider range of algorithms to be applied to the input data and can avoid problems such as the build-up of noise and distortion during processing. Since images are defined over two dimensions digital image processing may be modeled in the form of multidimensional systems. The generation and development of digital image processing are mainly affected by three factors: first, the development of computers; second, the development of mathematics ; third, the demand for a wide range of applications in environment, agriculture, military, industry and medical science has increased.

<span class="mw-page-title-main">Symmetric difference</span> Elements in exactly one of two sets

In mathematics, the symmetric difference of two sets, also known as the disjunctive union and set sum, is the set of elements which are in either of the sets, but not in their intersection. For example, the symmetric difference of the sets and is .

<span class="mw-page-title-main">Mathematical morphology</span>

Mathematical morphology (MM) is a theory and technique for the analysis and processing of geometrical structures, based on set theory, lattice theory, topology, and random functions. MM is most commonly applied to digital images, but it can be employed as well on graphs, surface meshes, solids, and many other spatial structures.

<span class="mw-page-title-main">Image (mathematics)</span> Set of the values of a function

In mathematics, for a function , the image of an input value is the single output value produced by when passed . The preimage of an output value is the set of input values that produce .

In mathematics, an invariant subspace of a linear mapping T : VV i.e. from some vector space V to itself, is a subspace W of V that is preserved by T. More generally, an invariant subspace for a collection of linear mappings is a subspace preserved by each mapping individually.

<span class="mw-page-title-main">Erosion (morphology)</span> Basic operation in mathematical morphology

Erosion is one of two fundamental operations in morphological image processing from which all other morphological operations are based. It was originally defined for binary images, later being extended to grayscale images, and subsequently to complete lattices. The erosion operation usually uses a structuring element for probing and reducing the shapes contained in the input image.

Dilation is one of the basic operations in mathematical morphology. Originally developed for binary images, it has been expanded first to grayscale images, and then to complete lattices. The dilation operation usually uses a structuring element for probing and expanding the shapes contained in the input image.

<span class="mw-page-title-main">Opening (morphology)</span>

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

In mathematics, specifically in operator theory, each linear operator on an inner product space defines a Hermitian adjoint operator on that space according to the rule

In mathematical morphology, a structuring element is a shape, used to probe or interact with a given image, with the purpose of drawing conclusions on how this shape fits or misses the shapes in the image. It is typically used in morphological operations, such as dilation, erosion, opening, and closing, as well as the hit-or-miss transform.

The pruning algorithm is a technique used in digital image processing based on mathematical morphology. It is used as a complement to the skeleton and thinning algorithms to remove unwanted parasitic components (spurs). In this case 'parasitic' components refer to branches of a line which are not key to the overall shape of the line and should be removed. These components can often be created by edge detection algorithms or digitization. Common uses for pruning include automatic recognition of hand-printed characters. Often inconsistency in letter writing creates unwanted spurs that need to be eliminated for better characterization.

In the mathematics of binary relations, the composition of relations is the forming of a new binary relation R; S from two given binary relations R and S. In the calculus of relations, the composition of relations is called relative multiplication, and its result is called a relative product. Function composition is the special case of composition of relations where all relations involved are functions.

In mathematical morphology, hit-or-miss transform is an operation that detects a given configuration in a binary image, using the morphological erosion operator and a pair of disjoint structuring elements. The result of the hit-or-miss transform is the set of positions where the first structuring element fits in the foreground of the input image, and the second structuring element misses it completely.

In digital image processing, morphological skeleton is a skeleton representation of a shape or binary image, computed by means of morphological operators.

In mathematical morphology and digital image processing, a morphological gradient is the difference between the dilation and the erosion of a given image. It is an image where each pixel value indicates the contrast intensity in the close neighborhood of that pixel. It is useful for edge detection and segmentation applications.

In mathematical morphology and digital image processing, a top-hat transform is an operation that extracts small elements and details from given images. There exist two types of top-hat transform: the white top-hat transform is defined as the difference between the input image and its opening by some structuring element, while the black top-hat transform is defined dually as the difference between the closing and the input image. Top-hat transforms are used for various image processing tasks, such as feature extraction, background equalization, image enhancement, and others.

<span class="mw-page-title-main">Granulometry (morphology)</span>

In mathematical morphology, granulometry is an approach to compute a size distribution of grains in binary images, using a series of morphological opening operations. It was introduced by Georges Matheron in the 1960s, and is the basis for the characterization of the concept of size in mathematical morphology.

<span class="mw-page-title-main">Gyrovector space</span> Mathematical space used to study hyperbolic geometry

A gyrovector space is a mathematical concept proposed by Abraham A. Ungar for studying hyperbolic geometry in analogy to the way vector spaces are used in Euclidean geometry. Ungar introduced the concept of gyrovectors that have addition based on gyrogroups instead of vectors which have addition based on groups. Ungar developed his concept as a tool for the formulation of special relativity as an alternative to the use of Lorentz transformations to represent compositions of velocities. This is achieved by introducing "gyro operators"; two 3d velocity vectors are used to construct an operator, which acts on another 3d velocity.

<span class="mw-page-title-main">Stokes' theorem</span> Theorem in vector calculus

Stokes' theorem, also known as the Kelvin–Stokes theorem after Lord Kelvin and George Stokes, the fundamental theorem for curls or simply the curl theorem, is a theorem in vector calculus on . Given a vector field, the theorem relates the integral of the curl of the vector field over some surface, to the line integral of the vector field around the boundary of the surface. The classical theorem of Stokes can be stated in one sentence: The line integral of a vector field over a loop is equal to the surface integral of its curl over the enclosed surface. It is illustrated in the figure, where the direction of positive circulation of the bounding contour ∂Σ, and the direction n of positive flux through the surface Σ, are related by a right-hand-rule. For the right hand the fingers circulate along ∂Σ and the thumb is directed along n.

In functional analysis and related areas of mathematics, a complete topological vector space is a topological vector space (TVS) with the property that whenever points get progressively closer to each other, then there exists some point towards which they all get closer. The notion of "points that get progressively closer" is made rigorous by Cauchy nets or Cauchy filters, which are generalizations of Cauchy sequences, while "point towards which they all get closer" means that this Cauchy net or filter converges to The notion of completeness for TVSs uses the theory of uniform spaces as a framework to generalize the notion of completeness for metric spaces. But unlike metric-completeness, TVS-completeness does not depend on any metric and is defined for all TVSs, including those that are not metrizable or Hausdorff.