- Source: Dilation (morphology)
Dilation (usually represented by ⊕) 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.
Binary dilation
In binary morphology, dilation is a shift-invariant (translation invariant) operator, equivalent to Minkowski addition.
A binary image is viewed in mathematical morphology as a subset of a Euclidean space Rd or the integer grid Zd, for some dimension d. Let E be a Euclidean space or an integer grid, A a binary image in E, and B a structuring element regarded as a subset of Rd.
The dilation of A by B is defined by
A
⊕
B
=
⋃
b
∈
B
A
b
,
{\displaystyle A\oplus B=\bigcup _{b\in B}A_{b},}
where Ab is the translation of A by b.
Dilation is commutative, also given by
A
⊕
B
=
B
⊕
A
=
⋃
a
∈
A
B
a
{\displaystyle A\oplus B=B\oplus A=\bigcup _{a\in A}B_{a}}
.
If B has a center on the origin, then the dilation of A by B can be understood as the locus of the points covered by B when the center of B moves inside A. The dilation of a square of size 10, centered at the origin, by a disk of radius 2, also centered at the origin, is a square of side 14, with rounded corners, centered at the origin. The radius of the rounded corners is 2.
The dilation can also be obtained by
A
⊕
B
=
{
z
∈
E
∣
(
B
s
)
z
∩
A
≠
∅
}
{\displaystyle A\oplus B=\{z\in E\mid (B^{s})_{z}\cap A\neq \varnothing \}}
, where Bs denotes the symmetric of B, that is,
B
s
=
{
x
∈
E
∣
−
x
∈
B
}
{\displaystyle B^{s}=\{x\in E\mid -x\in B\}}
.
= Example
=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 1 1 1 1 1 0 1 1 1
0 1 1 0 0 0 1 1 1 1 0 1 1 1
0 1 1 0 0 0 1 1 1 1 0 1 1 1
0 1 1 0 0 0 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.
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 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 0 0
1 1 1 1 1 1 1 1 1 0 0
= Properties of binary dilation
=Here are some properties of the binary dilation operator
It is translation invariant.
It is increasing, that is, if
A
⊆
C
{\displaystyle A\subseteq C}
, then
A
⊕
B
⊆
C
⊕
B
{\displaystyle A\oplus B\subseteq C\oplus B}
.
It is commutative.
If the origin of E belongs to the structuring element B, then it is extensive, i.e.,
A
⊆
A
⊕
B
{\displaystyle A\subseteq A\oplus B}
.
It is associative, i.e.,
(
A
⊕
B
)
⊕
C
=
A
⊕
(
B
⊕
C
)
{\displaystyle (A\oplus B)\oplus C=A\oplus (B\oplus C)}
.
It is distributive over set union
Grayscale dilation
In grayscale morphology, images are functions mapping a Euclidean space or grid E into
R
∪
{
∞
,
−
∞
}
{\displaystyle \mathbb {R} \cup \{\infty ,-\infty \}}
, where
R
{\displaystyle \mathbb {R} }
is the set of reals,
∞
{\displaystyle \infty }
is an element greater than any real number, and
−
∞
{\displaystyle -\infty }
is an element less than any real number.
Grayscale structuring elements are also functions of the same format, called "structuring functions".
Denoting an image by f(x) and the structuring function by b(x), the grayscale dilation of f by b is given by
(
f
⊕
b
)
(
x
)
=
sup
y
∈
E
[
f
(
y
)
+
b
(
x
−
y
)
]
,
{\displaystyle (f\oplus b)(x)=\sup _{y\in E}[f(y)+b(x-y)],}
where "sup" denotes the supremum.
= Flat structuring functions
=It is common to use flat structuring elements in morphological applications. Flat structuring functions are functions b(x) in the form
b
(
x
)
=
{
0
,
x
∈
B
,
−
∞
,
otherwise
,
{\displaystyle b(x)=\left\{{\begin{array}{ll}0,&x\in B,\\-\infty ,&{\text{otherwise}},\end{array}}\right.}
where
B
⊆
E
{\displaystyle B\subseteq E}
.
In this case, the dilation is greatly simplified, and given by
(
f
⊕
b
)
(
x
)
=
sup
y
∈
E
[
f
(
y
)
+
b
(
x
−
y
)
]
=
sup
z
∈
E
[
f
(
x
−
z
)
+
b
(
z
)
]
=
sup
z
∈
B
[
f
(
x
−
z
)
]
.
{\displaystyle (f\oplus b)(x)=\sup _{y\in E}[f(y)+b(x-y)]=\sup _{z\in E}[f(x-z)+b(z)]=\sup _{z\in B}[f(x-z)].}
(Suppose x = (px, qx), z = (pz, qz), then x − z = (px − pz, qx − qz).)
In the bounded, discrete case (E is a grid and B is bounded), the supremum operator can be replaced by the maximum. Thus, dilation is a particular case of order statistics filters, returning the maximum value within a moving window (the symmetric of the structuring function support B).
Dilation on complete lattices
Complete lattices are partially ordered sets, where every subset has an infimum and a supremum. In particular, it contains a least element and a greatest element (also denoted "universe").
Let
(
L
,
≤
)
{\displaystyle (L,\leq )}
be a complete lattice, with infimum and supremum symbolized by
∧
{\displaystyle \wedge }
and
∨
{\displaystyle \vee }
, respectively. Its universe and least element are symbolized by U and
∅
{\displaystyle \varnothing }
, respectively. Moreover, let
{
X
i
}
{\displaystyle \{X_{i}\}}
be a collection of elements from L.
A dilation is any operator
δ
:
L
→
L
{\displaystyle \delta :L\rightarrow L}
that distributes over the supremum, and preserves the least element. That is, the following are true:
⋁
i
δ
(
X
i
)
=
δ
(
⋁
i
X
i
)
,
{\displaystyle \bigvee _{i}\delta (X_{i})=\delta \left(\bigvee _{i}X_{i}\right),}
δ
(
∅
)
=
∅
.
{\displaystyle \delta (\varnothing )=\varnothing .}
See also
Buffer (GIS)
Closing (morphology)
Erosion (morphology)
Mathematical morphology
Opening (morphology)
Minkowski addition
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)
Kata Kunci Pencarian:
- Ikan zebra
- Abdul Qadeer Khan
- Dilation (morphology)
- Mathematical morphology
- Closing (morphology)
- Dilation
- Opening (morphology)
- Erosion (morphology)
- Circled plus
- Morphological gradient
- Perivascular space
- Floral morphology