Вы находитесь на странице: 1из 149

Mathematical Morphology

Isabelle Bloch
http://www.tsi.enst.fr/bloch

ecommunications

Ecole Nationale Superieure


des Tel
- CNRS UMR 5141 LTCI
Paris - France

Mathematical Morphology p.1/84

A few references

J. Serra, Image Analysis and Mathematical Morphology, Academic Press,


New-York, 1982.

J. Serra (Ed.), Image Analysis and Mathematical Morphology, Part II: Theoretical
Advances, Academic Press, London, 1988.

P. Soille, Morphological Image Analysis, Springer-Verlag, Berlin, 1999.

Mathematical Morphology p.2/84

Shape or spatial relations?

Mathematical Morphology p.3/84

Simplifying and selecting relevant information...

Mathematical Morphology p.4/84

Introduction

Origin: study of porous media


Principle: study of objects (images) based on:

grey levels, colors


neighborhood information

Mathematical bases:
set theory

shape, geometry, topology

topology
geometry
algebra (lattice theory)
probabilities, random closed sets
functions

Main characteristics:
non linear
non invertible
strong properties

associated algorithms

Mathematical Morphology p.5/84

Tools for

filtering
segmentation
measures (distances, granulometry, integral geometry, topology, stochastic
processes...)
texture analysis
shape recognition
scene interpretation
...

Applications in numerous domains

Mathematical Morphology p.6/84

Example

Mathematical Morphology p.7/84

Example

Mathematical Morphology p.7/84

Four fundamental principles

1. Compatibility with translations


2. Compatibility with scaling
3. Local knowledge
4. Continuity (semi-continuity)

Mathematical Morphology p.8/84

Structuring element

shape
size
origin (not necessarily in B)
examples:

Continuous:

Digital:

Mathematical Morphology p.9/84

Binary dilation

Minkowski addition:
X Y = {x + y / x X, y Y }

Binary dilation:
D(X, B)

=
=

= {x + y / x X, y B}
(or = X B)
X B
[
x = {x Rn / Bx X 6= }
B
xX

Mathematical Morphology p.10/84

Binary dilation

Minkowski addition:
X Y = {x + y / x X, y Y }

Binary dilation:
D(X, B)

=
=

= {x + y / x X, y B}
(or = X B)
X B
[
x = {x Rn / Bx X 6= }
B
xX

Properties of dilation:

extensive (X D(X, B)) if O B;


increasing (X Y D(X, B) D(Y, B));
B B 0 D(X, B) D(X, B 0 );
commutes with union, not with intersection:
D(X Y, B) = D(X, B) D(Y, B),

D(X Y, B) D(X, B) D(Y, B);

iterativity property: D[D(X, B), B 0 ] = D(X, B B 0 ).

Mathematical Morphology p.10/84

Example of dilation

Mathematical Morphology p.11/84

Binary erosion

E(X, B)

{x Rn / Bx X}

{x / y B, x + y X} = X B.

Mathematical Morphology p.12/84

Binary erosion

E(X, B)

{x Rn / Bx X}

{x / y B, x + y X} = X B.

Properties of erosion:

duality of erosion and dilation with respect to complementation:


E(X, B) = [D(X C , B)]C

C)
(or E(X, B) = [D(X C , B)]

anti-extensive (E(X, B) X) if O B;
increasing (X Y E(X, B) E(Y, B));
B B 0 E(X, B 0 ) E(X, B);
commutes with intersection, not with union:
E[(X Y ), B] = E(X, B) E(Y, B),

E[(X Y ), B] E(X, B) E(Y, B);

iterativity property: E[E(X, B), B 0 ] = E(X, B B 0 ).


D[E(X, B), B 0 ] E[D(X, B 0 ), B].

Mathematical Morphology p.12/84

Example of erosion

Mathematical Morphology p.13/84

Links with distances

Mathematical Morphology p.14/84

Links with distances

Mathematical Morphology p.14/84

Binary opening

XB = D[E(X, B), B]

(or D[E(X, B), B])

Mathematical Morphology p.15/84

Binary opening

XB = D[E(X, B), B]

(or D[E(X, B), B])

Properties of opening:

anti-extensive (X XB );
increasing (X Y XB YB );
idempotent ((XB )B = XB ).

Morphological filter

B B 0 XB 0 XB ;
(Xn )n0 = (Xn0 )n = Xmax(n,n0 ) .

Mathematical Morphology p.15/84

Example of opening

Mathematical Morphology p.16/84

Binary closing

X B = E[D(X, B), B]

(or E[D(X, B), B])

Mathematical Morphology p.17/84

Binary closing

X B = E[D(X, B), B]

(or E[D(X, B), B])

Properties of closing:

extensive (X X B );
increasing (X Y X B Y B );
idempotent ((X B )B = X B ).

Morphological filter
0

B B0 X B X B ;

(X n )n = (X n )n = X max(n,n ) ;

X B = [(X C )B ]C .

Mathematical Morphology p.17/84

Example of closing

Mathematical Morphology p.18/84

Digital case

choice of the digital grid (both for the image and the structuring element)
translations on the grid
same properties

Mathematical Morphology p.19/84

From sets to functions

subgraph of a function on Rn = subset of Rn+1


cuts of a function = sets
f = {x|f (x) }
D(f , B) = [D(f, B)]

functional equivalents of set operations:

sup /

inf /

Mathematical Morphology p.20/84

Dilation of a function
by a flat structuring element
x Rn , D(f, B)(x) = sup{f (y) / y Bx }

Mathematical Morphology p.21/84

Dilation of a function
by a flat structuring element
x Rn , D(f, B)(x) = sup{f (y) / y Bx }

Properties of functional dilation:

extensivity if O B;
increasingness;
D(f g, B) = D(f, B) D(g, B);
D(f g, B) D(f, B) D(g, B);
iterativity property.

It holds:
D(f , B) = [D(f, B)]

Mathematical Morphology p.21/84

Example of functional dilation

Mathematical Morphology p.22/84

Erosion of a function

x Rn , E(f, B)(x) = inf{f (y) / y Bx }

Mathematical Morphology p.23/84

Erosion of a function

x Rn , E(f, B)(x) = inf{f (y) / y Bx }

Properties of functional erosion:

functional dilation and erosion are dual operators;


anti-extensivity if O B;
increasingness;
E(f g, B) E(f, B) E(g, B);
E(f g, B) = E(f, B) E(g, B);
iterativity property.

Mathematical Morphology p.23/84

Example of functional erosion

Mathematical Morphology p.24/84

Functional opening

fB = D[E(f, B), B]

Mathematical Morphology p.25/84

Functional opening

fB = D[E(f, B), B]

Properties of functional opening:

anti-extensive;
increasing;
idempotent.

morphological filter

Mathematical Morphology p.25/84

Example of functional opening

Mathematical Morphology p.26/84

Functional closing

f B = E[D(f, B), B]

Mathematical Morphology p.27/84

Functional closing

f B = E[D(f, B), B]

Properties of functional closing:

extensive;
increasing;
idempotent.

morphological filter

duality between opening and closing

Mathematical Morphology p.27/84

Example of functional closing

Mathematical Morphology p.28/84

Structuring functions

Dilation:
D(f, g)(x) = sup{f (y) + g(y x)}
y

Erosion:
E(f, g)(x) = inf {f (y) g(y x)}
y

Flat structuring element:

g(x) =

on a compact B
elsewhere

Mathematical Morphology p.29/84

Some applications of erosion and dilation

Mathematical Morphology p.30/84

Some applications of erosion and dilation


Contrast enhancement

Mathematical Morphology p.30/84

Some applications of erosion and dilation


Contrast enhancement: ES 15, = = 0.2, = = 0.3, = = 0.5

Mathematical Morphology p.30/84

Some applications of erosion and dilation


Contrast enhancement: ES 30, = = 0.2, = = 0.3, = = 0.5

Mathematical Morphology p.30/84

Some applications of erosion and dilation


Morphological gradient:

DB (x) EB (x)

Mathematical Morphology p.30/84

Some applications of erosion and dilation


Ultimate erosion:
EU (X) = n {E(X, Bn ) \ R[E(X, Bn+1 ); E(X, Bn )]}

E(X, Bn ): erosion of X by a structuring element of size n


R[Y ; Z]: connected components of Z having a non-empty intersection with Y

= set of regional maxima of the distance function d(x, X C ).

Mathematical Morphology p.30/84

An application of opening:
top-hat transform
f fB

Mathematical Morphology p.31/84

An application of opening:
top-hat transform
f fB

Mathematical Morphology p.31/84

An application of opening:
top-hat transform
f fB

Mathematical Morphology p.31/84

Granulometry

X A, > 0, (X) X ( anti-extensive);

> 0, > 0, = = max(,) .

(X, Y ) A2 , > 0, X Y (X) (Y ) ( increasing);


X A, > 0, > 0 (X) (X) ( decreasing with respect
to the parameter);

Mathematical Morphology p.32/84

Granulometry

X A, > 0, (X) X ( anti-extensive);

> 0, > 0, = = max(,) .

(X, Y ) A2 , > 0, X Y (X) (Y ) ( increasing);


X A, > 0, > 0 (X) (X) ( decreasing with respect
to the parameter);

( ) is a granulometry iff is an opening for each and the class of subsets A which
are invariant under is included in the class of subsets which are invariant under for

Mathematical Morphology p.32/84

Granulometry

X A, > 0, (X) X ( anti-extensive);

> 0, > 0, = = max(,) .

(X, Y ) A2 , > 0, X Y (X) (Y ) ( increasing);


X A, > 0, > 0 (X) (X) ( decreasing with respect
to the parameter);

( ) is a granulometry iff is an opening for each and the class of subsets A which
are invariant under is included in the class of subsets which are invariant under for

Mathematical Morphology p.32/84

Vectorial functions (e.g. color images)

Main difficulty: choice of an ordering


component-wise max (or min): no good properties

Dilation
componentwise
maximum

Mathematical Morphology p.33/84

Choice of the structuring element

depends on what one wants suppress / keep


shape
size

Example: opening by disks or segments?

Mathematical Morphology p.34/84

Choice of the structuring element

depends on what one wants suppress / keep


shape
size

Example: opening by disks or segments?

Mathematical Morphology p.34/84

Choice of the structuring element

depends on what one wants suppress / keep


shape
size

Example: opening by disks or segments?

Mathematical Morphology p.34/84

Choice of the structuring element

depends on what one wants suppress / keep


shape
size

Example: opening by disks or segments?

Rq: a union of openings is an opening

Mathematical Morphology p.34/84

Surfacic opening

(f ) =

{Bi (f ), Bi connected and S(Bi ) = }

Mathematical Morphology p.35/84

Surfacic opening

(f ) =

{Bi (f ), Bi connected and S(Bi ) = }

Mathematical Morphology p.35/84













(f ) =

Surfacic opening

{Bi (f ), Bi connected and S(Bi ) = }

Mathematical Morphology p.35/84

Mathematical fundaments of mathematical


morphology

Set theory

hit-or-miss topology (Fells topology)


myopic topology
Hausdorff distance

Lattice theory

structuring element

Topology

relations (, , ...)

adjunctions
algebraic operations

Probability theory

P (A K 6= )
random closed sets

Mathematical Morphology p.36/84

Hit-or-miss topology

topology on closed subsets


generated by F K and FG (K compact and G open):
F K = {F F , F K = }
FG = {F F , F G 6= }

convergence in F : (Fn )nN converges towards F F if:


(

G G, G F 6= , N, n N, G Fn 6=
K K, K F = , N 0 , n N 0 , K Fn =

Mathematical Morphology p.37/84

Hit-or-miss topology

topology on closed subsets


generated by F K and FG (K compact and G open):
F K = {F F , F K = }
FG = {F F , F G 6= }

convergence in F : (Fn )nN converges towards F F if:


(

G G, G F 6= , N, n N, G Fn 6=
K K, K F = , N 0 , n N 0 , K Fn =

Union is continuous from F F in F but intersection is not

semi-continuity

Mathematical Morphology p.37/84

Semi-continuity

f :F

f upper semi-continuous (u.s.c.) if and (n )nN converging towards


:
limf (n ) f ()

f lower semi-continuous (l.s.c.) if:


limf (n ) f ()

lim/lim = / of adherence points


f continuous iff f l.s.c. and u.s.c.
Intersection is u.s.c.

Mathematical Morphology p.38/84

Properties of morphological operations

the dilation of a closed set by a compact set is continuous

(F, K) 7 F K u.s.c.

the dilation of a compact set by a compact set is continuous


(F, K) 7 E(F, K) u.s.c.
(K 0 , K) 7 E(K 0 , K) u.s.c.
(F, K) 7 FK u.s.c.
0 u.s.c.
(K 0 , K) 7 KK

(K 0 , K) 7 K 0K u.s.c.

Mathematical Morphology p.39/84

Myopic topology

generated by:
F
= {K K, K F = , K G 6= }
KG

(F F , G G)

finer than the topology induced on K by the hit-or-miss topology


equivalent on K \ to the topology induced by the Hausdorff distance
(K, K 0 ) = max{ sup d(x, K 0 ), sup d(x0 , K)}
xK

x0 K 0

Rq: (K, K 0 ) = inf{, K D(K 0 , B ), K 0 D(K, B )}

Mathematical Morphology p.40/84

Algebraic framework: complete lattices

Lattice: (T , ) ( ordering) such that (x, y) T , x y and x y


Complete lattice: every family of elements (finite or not) has a smallest upper
bound and a largest lower bound
contains a smallest element 0 and a largest element I:
0=

T =

et I =

T =

Examples of complete lattices:

(P(E), ): complete lattice, Boolean (complemented and distributive):


x, xC , x xC = 0 and x xC = I
x (y z) = (x y) (x z) and x (y z) = (x y) (x z)

(F (Rd ), )
functions of Rn in R for the ordering :
f g x Rn , f (x) g(x)

partitions

Mathematical Morphology p.41/84

Semi-continuity of functions

u.s.c. :
t > f (x), V (x), y V (x), t > f (y)
(V (x) neighborhood of x in Rn )

l.s.c. :
t < f (x), V (x), y V (x), t < f (y)

a function is u.s.c. iff its sub-graph is closed


topology on the space of u.s.c. functions = topology induced by the hit-or-miss
topology on F (Rn R)
the set of u.s.c. functions of Rn in R is a complete lattice for :
f g SG(f ) SG(g)

Mathematical Morphology p.42/84

Algebraic dilation and erosion

complete lattice (T , )
Algebraic dilation:
(xi ) T , (i xi ) = i (xi )
Algebraic erosion:
(xi ) T , (i xi ) = i (xi )
Properties:

(0) = 0 (in P(E), 0 = )


(I) = I (in P(E), I = E)
increasing
increasing
in P(Rn ), (X) = xX ({x})

Mathematical Morphology p.43/84

Adjunctions

(, ) adjunction on (T , ):
(x, y), (x) y x (y)
Properties:

(0) = 0 and (I) = I

increasing = algebraic erosion iff such that (, ) is an adjunction


V
= algebraic dilation and (x) = {y T , (y) x}

(, ) adjunction = algebraic erosion and = algebraic dilation


increasing = algebraic dilation iff such that (, ) is an adjunction
W
= algebraic erosion and (x) = {y T , (y) x}
Id
Id
=
=
= and =

Mathematical Morphology p.44/84

Links with morphological operators

On the lattice of the subsets of Rn or Zn , with inclusion:


(X) = xX ({x})

+ invariance under translation B, (X) = D(X, B)


Same result on the lattice of functions.
Similar results for erosion.

Mathematical Morphology p.45/84

Algebraic opening and closing

Algebraic opening: increasing, idempotent and anti-extensive

1 and 2 closings equivalence between:


1. 2 1
2. 1 2 = 2 1 = 1
3. Inv(1 ) Inv(2 )

Algebraic closing: increasing, idempotent and extensive


Examples: = and = with (, ) = adjunction
Invariance domain: Inv() = {x T , (x) = x}
W
opening (x) = {y Inv(), y x}
V
closing (x) = {y Inv(), x y}
W
(i ) openings i i opening
V
(i ) closings i i closing
1 and 2 openings equivalence between:
1. 1 2
2. 1 2 = 2 1 = 1
3. Inv(1 ) Inv(2 )

Mathematical Morphology p.46/84

Algebraic filter theory

Filter = increasing and idempotent operator


Examples

W
openings and i i (anti-extensive filters)
V
closings and i i (extensive filters)

Theorem on filter composition and such that :


, , and are filters
Inv() = Inv() and Inv() = Inv()
is the smallest filter which is largest than

Mathematical Morphology p.47/84

Example: alternate sequential filters

openings i and closings i such that:


i j j i Id i j

Theorem on filter composition mi = i i , ni = i i , ri = i i i and


si = i i i are filters

Alternate sequential filters:

Mi

mi mi1 ...m2 m1

Ni

ni ni1 ...n2 n1

Ri

ri ri1 ...r2 r1

Si

si si1 ...s2 s1

Property: i j Mj Mi = Mj , Nj Ni = Nj , ...

Mathematical Morphology p.48/84

Morphological alternate sequential filters

(...(((fB1 )B1 )B2 )B2 )...Bn )Bn

Mathematical Morphology p.49/84

Morphological alternate sequential filters

(...(((fB1 )B1 )B2 )B2 )...Bn )Bn

Mathematical Morphology p.49/84

Morphological alternate sequential filters

(...(((fB1 )B1 )B2 )B2 )...Bn )Bn

Mathematical Morphology p.49/84

Auto-dual filters

Operators which are independent of the local contrast, acting similarly on bright
and dark areas.

Example: morphological center


M edian[f (x), 1 (f )(x), 2 (f )(x)]

More generally, for operators {1 , 2 , ...n }: (Id i i ) i i


For instance 1 (f ) = (f ) = (f B )B , 2 = (f ) = (fB )B

Mathematical Morphology p.50/84

Auto-dual filters

Operators which are independent of the local contrast, acting similarly on bright
and dark areas.

Example: morphological center


M edian[f (x), 1 (f )(x), 2 (f )(x)]

More generally, for operators {1 , 2 , ...n }: (Id i i ) i i


For instance 1 (f ) = (f ) = (f B )B , 2 = (f ) = (fB )B

O
F

centre
O
F

Mathematical Morphology p.50/84

Morphological center: numerical example

Closing

Opening

Mathematical Morphology p.51/84

Morphological center: numerical example

Closing then opening

Opening then closing

Mathematical Morphology p.51/84

Morphological center: numerical example

morphological center

Closing then opening

Opening then closing

Mathematical Morphology p.51/84

Hit-or-Miss Transformation
Structuring element: T = (T1 , T2 ), with T1 T2 =

HMT:
X T = E(X, T1 ) E(X C , T2 )

Mathematical Morphology p.52/84

Hit-or-Miss Transformation
Structuring element: T = (T1 , T2 ), with T1 T2 =

HMT:
X T = E(X, T1 ) E(X C , T2 )
Thinning (if O T1 ):
X T =X \X T
Thickening (if O T2 ):
X T =X X T

For T 0 = (T2 , T1 ):
X T = (X C T 0 )C

Mathematical Morphology p.52/84

HMT: examples

Mathematical Morphology p.53/84

HMT: examples

Mathematical Morphology p.53/84

Skeleton: requirements

compact representation of objects


thin lines
included and centered in the object
homotopic to the object
good representation of the geometry
invertible (reconstruction of the initial object)

Mathematical Morphology p.54/84

Skeleton: continuous case


A: open set
s (A) = set of centers of maximal balls of A of radius
Skeleton:
r(A) =

s (A)

>0

Characterization:
s (A) =

[E(A, B ) \ [E(A, B )]B ]

>0

r(A) =

[ \

[E(A, B ) \ [E(A, B )]B ]

>0 >0

Reconstruction:
A=

D(s , B )

>0

Mathematical Morphology p.55/84

Properties of the continuous skeleton

s (E0 (A)) = s+0 (A) r(E0 (A)) = >0 s (A)


no general formula for the skeleton of the dilation, opening or closing of a set
A 7 r(A) is l.s.c. from G in F
A connected r(A) connected
the skeleton is thin: its interior is empty

Mathematical Morphology p.56/84

Skeleton: digital case

Direct transposition of the continuous case:


S(X) =

[E(X, Bn ) \ E(X, Bn )B ]

nN

Properties:

centers of digital maximal balls


reconstuction
but poor connectivity properties

Mathematical Morphology p.57/84

Skeleton: digital case

Direct transposition of the continuous case:


S(X) =

[E(X, Bn ) \ E(X, Bn )B ]

nN

Properties:

centers of digital maximal balls


reconstuction
but poor connectivity properties

Skeleton from homotopic thinning


1
.

1
1

.
0

Properties:

perfect topology
no reconstruction

Mathematical Morphology p.57/84

Centers of maximal ball vs thinning

Mathematical Morphology p.58/84

Centers of maximal ball vs thinning

Mathematical Morphology p.58/84

Centers of maximal ball vs thinning

Mathematical Morphology p.58/84

Centers of maximal ball vs thinning

Mathematical Morphology p.58/84

Centers of maximal ball vs thinning

Mathematical Morphology p.58/84

Application in brain imaging


(PhD of Jean-Franois Mangin)

Mathematical Morphology p.59/84

Application in brain imaging


(PhD of Jean-Franois Mangin)

Mathematical Morphology p.59/84

Application in brain imaging


(PhD of Jean-Franois Mangin)

Mathematical Morphology p.59/84

Application in brain imaging


(PhD of Jean-Franois Mangin)

Mathematical Morphology p.59/84

Application in brain imaging


(PhD of Jean-Franois Mangin)

Mathematical Morphology p.59/84

Application in brain imaging


(PhD of Jean-Franois Mangin)

Mathematical Morphology p.59/84

Application in brain imaging


(PhD of Jean-Franois Mangin)

Mathematical Morphology p.59/84

Geodesic operators
d (x,y)
X

Geodesic distance, conditional to X: dX

X
d(x,y)

if X is closed, there exits a geodesic arc


for any pair of points of X

unique if X is simply connected

X convex dX = d

Geodesic ball: BX (x, r) = {y X / dX (x, y) r}


Rq: BX (x, r) B(x, r)
Geodesic dilation:
DX (Y, Br ) = {x Rn / BX (x, r) Y 6= } = {x Rn / dX (x, Y ) r}
Geodesic erosion:
EX (Y, Br ) = {x Rn / BX (x, r) Y } = X \ DX (X \ Y, Br )
Geodesic opening and closing: by composition

Mathematical Morphology p.60/84

Properties and reconstruction

Properties:

similar as in the Euclidean case


DX (Y, Br ) D(Y, Br )
DX (Y, Br ) =
n=1 [(Y

r
B)
n

X]n

Digital case:
DX (Y, Br ) = [D(Y, B1 ) X]r

Reconstruction:

[D(Y, B1 ) X] = DX
(Y )

= connected components of X which intersect Y

Mathematical Morphology p.61/84

Binary reconstruction: example

Mathematical Morphology p.62/84

Binary reconstruction: example

Mathematical Morphology p.62/84

Binary reconstruction: example

Mathematical Morphology p.62/84

Geodesic operators on functions


X1 X2 and Y1 Y2 DX1 (Y1 , Br ) DX2 (Y1 , Br ) DX2 (Y2 , Br )
Extension to functions, for f g, cut by cut:
[Dg (f, Br )] = Dg (f , Br )
(with f = {x, f (x) })
Digital case:
Dg (f, Br ) = [D(f, B1 ) g]r
Eg (f, Br ) = [E(f, B1 ) g]r
Numerical reconstruction of f (marker function) in g:

by dilation Dg (f, B ) = Dg (f ): opening

by erosion Eg (f, B ): closing


opening by reconstruction: Df (fB ) (flat areas whose contours are some
contours of the original image compression)

Mathematical Morphology p.63/84

Numerical reconstruction: example

Mathematical Morphology p.64/84

Numerical reconstruction: example

Mathematical Morphology p.64/84

Numerical reconstruction: example

Mathematical Morphology p.64/84

Numerical reconstruction: example

Mathematical Morphology p.64/84

Opening by reconstruction: examples

Mathematical Morphology p.65/84

Opening by reconstruction: examples

Union of openings by segments of length 20 and reconstruction

Mathematical Morphology p.65/84

Application to alternate sequential filters

Mathematical Morphology p.66/84

Application to alternate sequential filters

ASF with an hexagon (maximal size = 1)

Mathematical Morphology p.66/84

Application to alternate sequential filters

ASF with an hexagon (maximal size = 3)

Mathematical Morphology p.66/84

Application to alternate sequential filters

ASF with an hexagon (maximal size = 5)

Mathematical Morphology p.66/84

Application to alternate sequential filters

ASF with an hexagon (maximal size = 9)

Mathematical Morphology p.66/84

Application to alternate sequential filters

ASF with segments (maximal size = 1)

Mathematical Morphology p.66/84

Application to alternate sequential filters

ASF with segments (maximal size = 3)

Mathematical Morphology p.66/84

Application to alternate sequential filters

ASF with segments (maximal size = 5)

Mathematical Morphology p.66/84

Application to alternate sequential filters

ASF with segments (maximal size = 9)

Mathematical Morphology p.66/84

Regional maxima

X regional maximum of f if
x X, f (x) = et X = CC(f )
Computation of regional maxima:
f Df (f 1)
h-maxima (grey level dynamics):
f Df (f h)
robust maxima

Mathematical Morphology p.67/84

Regional maxima: example

Mathematical Morphology p.68/84

Robust maxima: example

Mathematical Morphology p.69/84

Skeleton by influence zones

X=

Xi

Influence zone of Xi in X C :
ZI(Xi ) = {x X C / d(x, Xi ) < d(x, X \ Xi )}
Skeleton by influence zones:
Skiz(X) = (

ZI(Xi ))C

= generalized Vorono diagram


Properties:

Skiz(X) Skel(X C )
Skiz is not necessarily connected (even if X C is)

Mathematical Morphology p.70/84

Skeleton by influence zones: examples

Mathematical Morphology p.71/84

Skeleton by influence zones: examples

Mathematical Morphology p.71/84

Skeleton and skeleton by influence zones

Skiz(X) r(X C )

Mathematical Morphology p.72/84

Skeleton and skeleton by influence zones

Skiz(X) r(X C )

Mathematical Morphology p.72/84

Geodesic skeleton by influence zones

Y = i Yi
Geodesic influence zone of Yi conditionally to X :
ZIX (Yi ) = {x X, dX (x, Yi ) < dX (x, Y \ Yi )}
Geodesic skeleton by influence zones:
SKIZX (Y ) = X \

ZIX (Yi )

SKIZ(Y)
SKIZ X (Y)
Y1

Y1
Y2

Y2
X

Mathematical Morphology p.73/84

Cortex segmentation
(PhD of Arnaud Cachia)

Mathematical Morphology p.74/84

Cortex segmentation
(PhD of Arnaud Cachia)

Mathematical Morphology p.74/84

Watersheds

catchment basins

watersheds

minimum

minimum

Mathematical Morphology p.75/84

Watersheds: definition
Steepest descent:
Desc(x) = max{

f (x) f (y)
, y V (x)}
d(x, y)

Ramp of a path = (x0 , ...xn ):

Tf () =

n
X

d(xi1 , xi )Cost(xi1 , xi )

i=1

with

Desc(x)
Cost(x, y) =
Desc(y)

(Desc(x) + Desc(y))/2

if f (x) > f (y)


if f (y) > f (x)
if f (y) = f (x)

Mathematical Morphology p.76/84

Watersheds: definition
Topographic distance
Tf (x, y) = inf{Tf (), = (x0 = x, x1 , ..., xn = y)}
(equals 0 on a plateau)
Catchment basin associated to the regional minimum Mi :
BV (Mi ) = {x, j 6= i, Tf (x, Mi ) < Tf (x, Mj )}
Watersheds:
LP E(f ) = [i BV (Mi )]C

Mathematical Morphology p.76/84

Approach by immersion

Mathematical Morphology p.77/84

Construction of the watersheds


f such that f (x) [hmin , hmax ], f h = {x, f (x) h}

Xhmin

f hmin

Xh+1

M inRegh+1 (f ) ZIf h+1 (Xh )

BV

Xhmax

LP E(f )

XhCmax

Mathematical Morphology p.78/84

Illustration of the algorithm

Mathematical Morphology p.79/84

Illustration of the algorithm

Mathematical Morphology p.79/84

Illustration of the algorithm

Mathematical Morphology p.79/84

Illustration of the algorithm

Mathematical Morphology p.79/84

Watersheds and oversegmentation

Mathematical Morphology p.80/84

Watersheds and oversegmentation

Mathematical Morphology p.80/84

Geodesic erosion
in order to impose markers

Mathematical Morphology p.81/84

Watersheds constraint by markers


f : function on which watersheds should be applied
g: marker function (selects regional minima)
Reconstruction: Ef g (g, B ) (only the selected minima)

Mathematical Morphology p.82/84

Separation of connected binary objects

Mathematical Morphology p.83/84

And much more...

Mathematical Morphology p.84/84

Вам также может понравиться