3
Mathematical Notions

3.1. Summary of the chapter

This chapter only covers the mathematical notions needed to understand the book content. For a comprehensive presentation of the algebraic foundations of Morphology, see chapter 2 written by Christian Ronse and Jean Serra in an excellent book on Mathematical Morphology [NAJ 13]

This chapter introduces the mathematical notions that are necessary for understanding the content of this book. These notions are not at all difficult; they belong to the algebraic theory of lattices and may not be familiar to some readers. They also constitute the algebraic basis of mathematical morphology, in particular the Galois adjunction from which erosions, dilations, openings and closings are derived. In conclusion, it sets the stage for the mathematical developments to follow.

3.2. Complete lattices

Given a set E, we define Ƥ (E) as the set of all its subsets: Ƥ (E) = {A|AE}.

The classical operators of set theory ∪ and ∩ apply to Ƥ (E). The inclusion ⊂ relation between sets defines an order relation on Ƥ (E).

3.2.1. Partial order and partially ordered sets

A partial order relation is a binary relation, written ≤ over a set E satisfying the following axioms. For a, b, cE:

reflexivity: a ≤ a;

antisymmetry: if a ≤ b and b ≤ a, then a = b;

transitivity: if a ≤ b and b ≤ c, then a ≤ c.

For a, bE, if ab or ba, then a and b are comparable. Otherwise, they are incomparable. A partial order under which every pair of elements is comparable is called a total order. For instance, the set of integers constitutes a totally ordered set, as any pair of integers is comparable.

A set E with a partial order is called a partially ordered set or poset

3.2.2. Upper and lower bounds

For AƤ (E), an element xE is an upper bound of A if a ≤ x, for each element a in A.

For AƤ (E), an element xE is a lower bound of A if xa, for each element a in A.

REMARK 3.1.– An upper bound (respectively lower bound) of a subset A of Ƥ (E) does not necessarily belong to A.

3.2.3. Complete lattices

If the set Ā or upper bounds of A possesses a smallest element belonging to E, this element is called the least upper bound or supremum of A. We write ∨ A.

Similarly, if the set image or lower bounds of A possesses a greatest element belonging to E, this element is called the greatest lower bound or infimum of A. We write ∧ A.

DEFINITION 3.1.– A partially ordered set E is called a complete lattice if every subset A of E has a supremum and an infimum in E.

Taking A = E shows that every complete lattice E has a greatest element or maximum and a least element or minimum. We write ω for the maximum and o for the minimum.

REMARK 3.2.– The set Ā or upper bounds of A is never empty as it contains at least ω and the supremum of A. Similarly, the set image of lower bounds is never empty as it contains at least o and the infimum of A.

LEMMA 3.1.– A subset A does not necessarily possess a greatest element belonging to A. However, if this is the case and a ∈ A is this greatest element, then a is also the supremum of A.

PROOF.– a is itself an upper bound of A as a ≤ a. Being the greatest element of A, it is necessarily the supremum of A.

3.2.4. Dyadic relations on a complete lattice

As each element A of Ƥ (E) possesses an infimum ∧A and a supremum ∨A, we define for A, BƤ (E) : AB = ∨ (AB) and AB = ∧ (AB).

For a, bE: ab = ∨ (a, b) and ab = ∧(a, b), where (a, b) is the subset of E containing a and b.

We remark that A, B, AB, (a, b) are the elements of Ƥ (E), whereas AB = ∨ (AB), AB = ∧ (AB), ab = ∨ (a, b) and ab = ∧ (a, b) are the elements of E.

3.2.4.1. Properties

LEMMA 3.2.– For A, BƤ (E) : AB = ∨ (AB) = ∨ (∨A, ∨B) = (∨A) ∨ (∨B) and AB = ∧(AB) = ∧(∧A, ∧B) = (∧A) ∧ (∧B), where (∨A), (∨B), (∧A), (∧B) ∈ E.

PROOF.– Let us show that ∨ (AB) = ∨(∨A, ∨B) = (∨A) ∨ (∨B)

  1. 1) AAB ⇒ ∪ ∨A < ∨ (AB). Similarly, ∨B < ∨ (AB).
    ∨ (AB) is an upper bound of ∨A and ∨B, which is larger than or equal to their least upper bound ∨(∨A, ∨B) : ∨(AB) > ∨ (∨A, ∨B).
  2. 2) ∨(∨A, ∨B) is the least upper bound of ∨A and ∨B, which is also an upper bound of A and B : it is larger than or equal to the least upper bound of AB : ∨ (AB) < ∪ (∨A, ∨B).
  3. 3) By antisymmetry, we deduce from both inequalities: ∨ (AB) = ∨ (∨A, ∨B).

3.3. Operators between complete lattices

3.3.1. Definition of an operator

For the sake of generality, we consider two complete lattices with distinct elements and order relations:

  • – a lattice V with an order relation written as≺, associated with an infimum ⋏ and a supremum ⋎;
  • – a lattice W with an order relation written as <, associated with an infimum ∧ and a supremum ∨.

We now define operators between the lattices. They are mappings associating with each element of a lattice an element of the other lattice:

  • – an operator α : VW associates with each xV the element α(x) ∈ W;
  • – an operator β : WV associates with each sW the element β(s) ∈ V.

These operators can be concatenated:

  • – the operator αβ associates with sW the element αβ(s) ∈ W;
  • – the operator βα associates with tV the element βα(t) ∈ V.

3.3.2. Properties of the operators

An operator α : VW increases if: x, yV: xyα(x) < α(y).

An operator α : VW increases if: x, yV: xyα(x) > α(y).

For operators for which the source and destination belong to the same lattice, we also define the following properties:

an operator ζ : VV is idempotent if ζζ = ζ;

an operator ζ : VV is anti-extensive if ζ(x) ≺ x;

an operator ζ : VV is extensive if xζ(x);

an operator ζ : VV is an involution if ζζ = identity = IdV.

A decreasing involution C : VV is called complementation.

3.3.3. Erosion and dilation

Two operators α and β commute if αβ = βα.

An operator α : VW commutes with the supremum if for x, yV : α(xy) = α(x) ∨ α(y).

An operator α : VW commutes with the infimum if for x, yV : α(xy) = α(x) ∧ α(y).

An increasing operator that commutes with the supremum is called a dilation.

A decreasing operator that commutes with the infimum is called an erosion.

3.3.4. Opening and closing

An increasing, idempotent and anti-extensive operator is called an opening.

An increasing, idempotent and extensive operator is called a closing.

3.4. The adjunction: a cornerstone of mathematical morphology

3.4.1. Adjoint erosions and dilations

DEFINITION 3.2.– The operators α : V ↦ W and β : W ↦ V form an adjunction if for υV, ωW : α(υ) < ωυβ(ω).

THEOREM 3.1.– If (α, β) form an adjunction, then α is a dilation and β is an erosion.

PROOF.– We suppose that (α, β) form an adjunction. Then, given sV and (ti)iI a family of elements of W : sβ⋏ (ti)iIαs < ⋏ (ti)iI ⇔ ∀iI : αs < ti ⇔ ∀iI : sβtis ≺ ⋏ (βti)iI.

As ≺ is reflexive, we have sβ⋏ (ti)iI. Replacing s by ⋏(βti)iI in the preceding equivalences and reading from right to left: ⋏ (βti)iIβ⋏(ti)iI.

Similarly, replacing s by β⋏(ti)iI and reading from left to right: β⋏(ti)iI ≺ ⋏(βti)iI.

As ≺ is antisymmetric, we obtain: ⋏ (βti)iI = β⋏(ti)iI.

3.4.2. Increasingness

LEMMA 3.3.– If (α, β) form an adjunction, they are increasing operators

For u, vW, u < υ : β(u) = β(uv) = β(u) ⋏ β(v) ≺ β(v). For s, tV, st : α(t) = α(st) = α(s) ∨ α(t) > α(s).

3.4.3. Unicity

If both β1 and β2 are adjunct operators of the same operator α, then β1 = β2. Indeed, for s, tV : sβ1tαs < tsβ2t. Replacing s by β1t in the left inequality, we obtain: β1tβ1tβ1tβ2t. Replacing s by β2t in the right inequality, we obtain: β2tβ1tβ2tβ2t. Thus, by antisymmetry of ≺: β2t = β1t.

3.4.4. Composition

If (α1, β1) and (α2, β2) form two adjunctions:

α1, β2 : VW and α2, β1 : WV

then (α1α2, β2β1 : WW) forms an adjunction.

Indeed, for υ, ωW : υ, ωW : α1α2υ < ωα2υ < β1ω ⇒ υ < β2 β1ω.

3.4.5. Dual operators

We consider two complementation operators, i.e. decreasing involutions on V and W :

To each operator α : VW corresponds the dual operator: CWαCV : VW.

Similarly, to β : WV corresponds the dual operator: CV βCW : WV.

If (α, β) form an adjunction, then (CvβCw, CwαCv) also form an adjunction, where the operator CvβCw : WV is the dilation and the operator CwαCv is the erosion.

3.5. Openings and closings

3.5.1. Definitions

THEOREM 3.2.– If α : V ↦ W and β : W ↦ V form an adjunction, then the operator γ = αβ : W ↦ W is an opening and φ = βα : V ↦ V is a closing.

Let us show that the operator βα is indeed a closing, i.e. an increasing, extensive and idempotent operator. Similarly, the operator αβ is an increasing, anti-extensive and idempotent operator.

PROOF.– a) Product of two increasing operators, showing that βα is an extensive operator. Moreover, αβυυβυ < βυ shows that αβ is an anti-extensive operator.

b) αβ being anti-extensive: αβυυαβαυ < αυ and βα being extensive υβαυαυ < αβαυ. By antisymmetry, we obtain: αυ = αβαυ. Applying β on both sides yields βαυ = βαβαυ, which shows that the closing is idempotent. The idempotence of the opening may be proved similarly and derives from the fact that βω = βαβω.

3.5.2. Elements with the same erosion or the same dilation

The preceding proof has established that αυ = αβαυ and βω = βαβω.

If sW verifies αβω < s < w, then by applying β on both sides of these inequalities: βαβω < βs < βω and since βω = βαβω, we obtain by anti-symmetry

βs = βω.

In fact, αβω is the smallest element of W that produces the same erosion as w:

Indeed: ⋀ {s | βω = βs} = ⋀ {s | βω < βs} = ⋀ {s | αβω < s} = αβω.

This shows that the erosion has no inverse element, since all elements verifying αβω < s < w produce the same erosion, with αβω being the smallest element of the family. This family has in general no greatest element.

Similarly, we show that βαυ is the largest element of V producing the same dilation as V : αυ = αβαυ.

3.5.3. The invariants of an opening or a closing

An element t is an invariant of an operator ψ if ψt = t. We denote the family of invariants of ψ by Inv (ψ).

We now study the family of invariants Inv(γ) ⊂ W and Inv(φ) ⊂ V of γ and φ.

LEMMA 3.4.– The family Inv(γ) of invariants of the opening γ is closed by the supremum ⋎. The family Inv(φ) of invariants of the closing φ is closed by the infimum ∧.

PROOF.– Consider two elements u, υV that are invariant by the opening γ: γ(u) = u and γ(υ) = υ. Then, γ(u ⋎ υ) < uυ = γ(u)⋎γ(υ) by anti-extensivity. Moreover, γ(u ⋎ υ) < u ⋎ υ = γ(u)⋎γ(υ) as γ is increasing.

For uV : αu ∈ Inv(γ) as αu = αβαu = (αβ)αu. Similarly, for υW : βυ ∈ Inv(φ) as βυ = βαβυ = (βα)βv.

3.6. Complete lattices of functions

3.6.1. Definitions

We now consider a complete lattice Ƭ provided with a total order relation <. If Ɗ is an arbitrary set, we define Fun (Ɗ, Ƭ), the family of functions defined on the domain Ɗ and taking their value in Ƭ. A function f ∈ Fun(Ɗ, Ƭ) maps each element pƊ onto an element f(p) ∈ Ƭ.

The complete order relation < of Ƭ induces on Fun (Ɗ, Ƭ) the structure of a complete lattice with an induced order relation ≺:

If f and g are two functions of Fun(Ɗ, Ƭ), we define f ≺ g (order relation in Fun(Ɗ, Ƭ)) ⇔

pƊ: f(p) < g(p) (order relation in Ƭ).

In contrast to the order relation <, the order relation ≺ is not a total order, as not all the functions of Fun(Ɗ, Ƭ) are comparable.

3.6.2. Infimum and supremum

For a family of functions (fi)iI of Fun(Ɗ, Ƭ) and s ∈ Ɗ:

the infimum is defined by image and the supremum by image.