57
Data Structures and Image Segmentation Luc Brun L.E.R.I., Reims University, France and Walter Kropatsch Vienna Univ. of

Data Structures and Image Segmentation

Embed Size (px)

DESCRIPTION

Data Structures and Image Segmentation. Luc Brun L.E.R.I., Reims University, France and Walter Kropatsch Vienna Univ. of Technology, Austria. Segmentation. Segmentation: Partition of the image into homogeneous connected components. S 1. S 2. S 5. S 4. S 3. Segmentation. Problems - PowerPoint PPT Presentation

Citation preview

Page 1: Data Structures and Image Segmentation

Data Structures and Image Segmentation

Luc BrunL.E.R.I., Reims University, France

and Walter Kropatsch

Vienna Univ. of Technology, Austria

Page 2: Data Structures and Image Segmentation

Segmentation

• Segmentation: Partition of the image into homogeneous connected components

falseSSPadjSS

jinji

trueSPniconnectedisSni

SX

jiji

i

i

n

ii

2

1

,...,1,)4

,...,1)3,...,1)2

)1 S1 S2

S3S4

S5

Page 3: Data Structures and Image Segmentation

Segmentation

• Problems– Huge amount of data– Homogeneity:

• Resolution/Context dependent

• Needs– Massive parallelism

– Hierarchy

Page 4: Data Structures and Image Segmentation

Contents of the talk

• Hierarchical Data Structures

• Combinatorial Maps

• Combinatorial Pyramids

Page 5: Data Structures and Image Segmentation

Regular Pyramids

Page 6: Data Structures and Image Segmentation

Matrix-Pyramids

• Stack of images with progressively reduced resolution

Level 0

Level 1Level 2

2x2/4 Pyramid

Level 3

Page 7: Data Structures and Image Segmentation

M-Pyramids

• M-Pyramid NxN/q (Here 2x2/4)– NxN : Reduction window. Pixels used to

compute father’s value (usually low pass filter)

– q : Reduction factor. Ratio between the size of two successive images.

– Receptive field: set of children in the base level

Page 8: Data Structures and Image Segmentation

M-Pyramids

• NxN/q=1: Non overlapping pyramid without hole (eg. 2x2/4)

• NxN/q<1: Holed Pyramid.

• NxN/q>1: Overlapping pyramid

Page 9: Data Structures and Image Segmentation

Regular Pyramids

• Advantages(Bister)– makes the processes independent of the

resolution….• Drawbacks(Bister) : Rigidity

– Regular Grid– Fixed reduction window– Fixed decimation ratio

Page 10: Data Structures and Image Segmentation

Irregular Pyramids

• Stack of successively reduced graphs

Page 11: Data Structures and Image Segmentation

Irregular Pyramids [Mee89,MMR91,JM92]

• From G=(V,E) to the reduced graph G’=(V’,E’)– Selection of a set of surviving vertices V’V

– Child Parent link Partition of V

– Definition of E’

• Selection of Roots

Page 12: Data Structures and Image Segmentation

Stochastic Pyramids

• V’ : Maximum Independent Set

– maximum of• a random variable

– [Mee89,MMR91]

• a criteria of interest– [JM92]

EvvVvVVv ),'(''' EvvVvv ','', 2

Page 13: Data Structures and Image Segmentation

Stochastic Pyramids

• Child-Parent link :

– maximum of• a random variable

– [Mee89,MMR91]

• a similarity measure– [JM92]

1 5 10 8

6 20 9 6

15 11 3 9

13 7 10 21

EvvVvVVv ),'('''

Page 14: Data Structures and Image Segmentation

Stochastic Pyramids

• Selection of surviving edges E’– Two father are joint if they have adjacent

children

Page 15: Data Structures and Image Segmentation

Stochastic Pyramids

• Selection of Roots:

– Restriction of the decimation process by a class membership function [MMR91]

– contrast measure with legitimate father exceed a threshold [JM92]

Page 16: Data Structures and Image Segmentation

Stochastic Pyramid [MMR91]

• Restriction of the decimation process : Class membership function

otherwizemergemayvvif

vv

E

0,1

),(

1,021

21

Page 17: Data Structures and Image Segmentation

Stochastic Pyramids

• Advantages– Purely local Processes [Mee89]– Each root corresponds to a connected

region[MMR91]• Drawback

– Rough description of the partition

Page 18: Data Structures and Image Segmentation

Formal DefinitionsEdge Contraction

Identify both vertices

Remove the contracted edge

Given an edge to be contracted

Page 19: Data Structures and Image Segmentation

Formal DefinitionDual Graphs

• Two graphs encoding relationships between regions and segments

Page 20: Data Structures and Image Segmentation

Formal DefinitionDual Graphs

• Two graphs encoding relationships between regions and segments

Page 21: Data Structures and Image Segmentation

Dual Graphs

• Advantages (Kropatsch)[Kro96]– Encode features of both vertices and faces

• Drawbacks [BK00]– Requires to store and to update two data

structures• Contraction in G Removal in G• Removal in G Contraction in G

Page 22: Data Structures and Image Segmentation

Decimation parameter

• Given G=(V,E), a decimation parameter (S,N) is defined by (Kropatsch)[WK94]:– a set of surviving vertices SV– a set of non surviving edges NE

• Every non surviving vertex is connected to a surviving one in a unique way:

NsvSsSVv ),(:!

Page 23: Data Structures and Image Segmentation

Example of Decimation: S:N

Page 24: Data Structures and Image Segmentation

Decimation parameters

• Characterisation of non relevant edges(1/2)

d°f = 2

Page 25: Data Structures and Image Segmentation

Decimation parameters

• Characterisation of non relevant edges(2/2)

d°f = 1

Page 26: Data Structures and Image Segmentation

Decimation Parameter

• Dual face contraction– remove all faces with a degree less than 3

Page 27: Data Structures and Image Segmentation

Decimation Parameter

• Edge contraction: Decimation parameter (S,N) – Contractions in G– Removals in G

• Dual face contraction : Dual Decimation parameter– Contractions in G– Removals in G

Page 28: Data Structures and Image Segmentation

Decimation parameter

Characterisation of redundant edges requires the dual graph

Dual graph data structure (G,G)

Page 29: Data Structures and Image Segmentation

Decimation Parameter

• Advantages– Better description of the partition

• Drawbacks– Low decimation Ratio

Page 30: Data Structures and Image Segmentation

Contraction Kernels

Given G=(V,E), a Contraction kernel (S,N) is defined by:– a set of surviving vertices SV– a set of non surviving edges NE

Such that:– (V,N) is a forest of (V,E)– Surviving vertices S are the roots of the trees

Page 31: Data Structures and Image Segmentation

Contraction kernels

• Successive decimation parameters form a contraction kernel

Page 32: Data Structures and Image Segmentation

Example of Contraction Kernel: S:N

, ,

Page 33: Data Structures and Image Segmentation

Example of Contraction kernel

• Removal of redundant edges: Dual contraction kernel

Page 34: Data Structures and Image Segmentation

Hierarchical Data Structures / Combinatorial Maps

• M-Pyramids•Overlapping Pyramids• Stochastic Pyramids• Adaptive Pyramids• Decimation parameter• Contraction kernel

Page 35: Data Structures and Image Segmentation

Combinatorial Maps Definition

• G=(V,E) G=(D,,)– decompose each edge into two half-

edges(darts) :

2

3-3 4

-4

5

-5

-2

6-6

1

-1

bbb 6,...,1,1,...,6 6,65,54,43,32,21,1

- : edge encoding

D ={-6,…,-1,1,…,6}

Page 36: Data Structures and Image Segmentation

Combinatorial Maps Definition

• G=(D,, ) : vertex encoding

)6,2,1)(5,6,4)(5,4,3)(2,3,1(

*(1)=(1,*(1)=(1,3*(1)=(1,3,2)

12

-1

3-3 4

-4

5

-5

-2

6-6

Page 37: Data Structures and Image Segmentation

Combinatorial MapsProperties

• Computation of the dual graph :– G=(D,,) G=(D, = , )

• The order defined on induces an order on

)5,4)(2,3,5,6)(6,4,3,1)(2,1(

*(-1)=(-1,*(-1)=(-1,3*(-1)=(-1,3,4*(-1)=(-1,3,4,6)

1

5-5 -4

-3

-6 6

2

-2

-1

4

3

Page 38: Data Structures and Image Segmentation

Combinatorial MapsProperties

• Computation of the dual graph :– G=(D,,) G=(D, = , )

)5,4)(2,3,5,6)(6,4,3,1)(2,1(

*(-1)=(-1,*(-1)=(-1,3*(-1)=(-1,3,4*(-1)=(-1,3,4,6)

1

-1

2

3-3 4

-4

5

-5-2

6-6

Page 39: Data Structures and Image Segmentation

Combinatorial MapsProperties

• Summary– The darts are ordered around each vertex and

face• The boundary of each face is ordered • The set of regions which surround an other one is

ordered– The dual graph may be implicitly encoded– Combinatorial maps may be extended to higher

dimensions (Lienhardt)[Lie89]

Page 40: Data Structures and Image Segmentation

Combinatorial Maps/Combinatorial Pyramids

• Combinatorial Maps•Computation of Dual Graphs•Combinatorial Maps properties•Discrete Maps

[Bru99]http://www.univ-st-etienne.fr/iupvis/color/Ecole-Ete/Brun.ppt

Page 41: Data Structures and Image Segmentation

Removal operation

• G=(D,, )– dD such that d is not a bridge

• G’=G\ *(d)=(D’, ’, )

dddd

ddddDd

1

1

11

''

''','

d -d

d1

d d 1

d

Page 42: Data Structures and Image Segmentation

Removal Operation

• Example-1

3-3 4

-4

5

-5

-2

6-6

12

-1

3-3 4

-4

-2

6-6

12

456'354'

'''6,4'

ddDd

d=5

Page 43: Data Structures and Image Segmentation

Contraction operations

• G=(D,, )– dD such that d is not a self-loop

• G’=G/*(d)=(D’, ’, )

dddd

ddddDd

1

1

11

''

''','

d -d

d1

d d 1

d

d d 1

d d1

Page 44: Data Structures and Image Segmentation

Contraction operations

• Preservation of the orientation

1

2

3

4

d

c

b

a

1

2

3

4

d

c

b

a

Page 45: Data Structures and Image Segmentation

Basic operationsImportant Property

-1

3-3 4

-4

-2

6-6

12

-4

-3

-6 6

2

-2

-1

4

3

-1

3-3

4

-4

5

-5

-2

6-6

12

d=5

d=5

removal

contraction

• The dual graph is implicitly updated

1

5-5 -4

-3

-6 6

2

-2

-1

4

3

Page 46: Data Structures and Image Segmentation

Contraction Kernel

• Given G=(D,, ), KD is a contraction kernel iff:– K is a forest of G

• Symmetric set of darts ((K)=K)• Each connected component is a tree

– Some surviving darts must remain• SD=D-K

Page 47: Data Structures and Image Segmentation

Contraction Kernel

• Example1 2 3

4 5 6

7 8 9

10 11 12

13 14 15 16

17 18 19 20

21 22 23 24

K=

Page 48: Data Structures and Image Segmentation

Contraction Kernel

• Example1 2 3

4 5 6

7 8 9

10 11 12

13 14 15 16

17 18 19 20

21 22 23 24

K= 10,21,17,13,1*

Page 49: Data Structures and Image Segmentation

Contraction Kernel

• How to compute the contracted combinatorial map ?– What is the value of ’(-2) ?1 2

413 14 15

-2-1 2

4

13

1415

-2

13122' 2 12

Page 50: Data Structures and Image Segmentation

Contraction Kernel

• How to compute the contracted combinatorial map ?– What is the value of ’(-2) ?1 2

4

13 14 15

-2-1

-13

17

7

2

414

15

-217

7

171322' 3

Page 51: Data Structures and Image Segmentation

Contraction Kernel

• Connecting Walk– Given G=(D,, ) , KD and SD=D-K– If d SD, CW(d) is the minimal sequence of non

surviving darts between d and a surviving one.

• The connecting walks connect the surviving darts.

SDdNIpMinnwithddddCW

SDd p

n

*

1...)(

Page 52: Data Structures and Image Segmentation

Contraction Kernel

• Connecting Walk1 2 3

4 5 6

7 8 9

10 11 12

13 14 15 16

17 18 19 20

21 22 23 24

-2-1

CW(-2)=-2.-1.13.17.21.10

Page 53: Data Structures and Image Segmentation

Contraction Kernel

• CW(-2)=-2,-1,13,17,21,10

1 2 3

4 5 6

7 8 9

10 11 12

13 14 15 16

17 18 19 20

21 22 23 24

-2-1

2

3

5 6

8 9

11 12

15 16

19 20

23 24

-2

18

14

22

7

4

112' -11

-11

Page 54: Data Structures and Image Segmentation

Contraction Kernel

• Construction of the contracted combinatorial map.– For each d in SD

• compute d’: last dart of CW(-d)’(-d)=(d’)’(d)=’(-d) = (d’)

3

11

2

5 6

8 9

12

15 16

19 20

23 24

-2

18

14

22

7

4

Page 55: Data Structures and Image Segmentation

Extensions(1/2)

• Dual contraction kernel– Replace by

• Successive Contraction kernels with a same type– Concatenation of connecting walks

Page 56: Data Structures and Image Segmentation

Extensions(2/2)

• Successive contraction kernels with different types– From connecting walks to Connecting Dart

Sequences • Label Pyramids:

– for each dart encode• Its maximum level in the pyramid (life time)• How its disappear (contracted or removed)

Page 57: Data Structures and Image Segmentation

Conclusion

• Graphs encode efficiently topological features. Combinatorial maps:– Encode the orientation – Provide an implicit encoding of the dual– May be generalised to higher dimension

• Irregular Pyramids overcome the limitations of their regular ancestors

Combinatorial Pyramids