• Aucun résultat trouvé

Canonical triangulation of a

N/A
N/A
Protected

Academic year: 2022

Partager "Canonical triangulation of a"

Copied!
72
0
0

Texte intégral

(1)

Canonical triangulation of a

graph, with a coding application

COMAL - august 2005

Luca Castelli Aleardi

(joint work with Olivier Devillers)

Projet Geometrica LIX

INRIA Sophia-Antipolis Ecole Polytechnique

(2)

Motivation

Combinatorial information describing incidence relations

Which information?

Connectivity

(3)

Motivation

Geometry information (vertex coordinates)

Which information?

Connectivity

Geometry

(4)

Motivation

Usual mesh representation

v1 v2

v3 v4

v1: 0.5389 0.7634 1.3456 v2: x2 y2 z2

v3: x3 y3 z3

v4: x4 y4 z4 . . .

. . .

VRML format file

t1: 1-2-3 t2: 1-3-4 t3: *-*-*

t4: *-*-*

t5: *-*-*

t6: *-*-*

. . .

3×32 bits / vertex

6×32 bits /vertex

288 bits /vertex

(5)

Motivation

Mesh compression algorithms

Touma Gotsman Edgebreaker [Rossignac]

Poulhalon Schaeffer General underlying idea

Encoding strategies based on a local (global) conquest

(6)

Motivation

Mesh compression algorithms

Touma Gotsman Edgebreaker [Rossignac]

Poulhalon Schaeffer General underlying idea

Encoding strategies based on a local (global) conquest

(7)

Motivation

Mesh compression algorithms

Touma Gotsman Edgebreaker [Rossignac]

Poulhalon Schaeffer General underlying idea

Encoding strategies based on a local (global) conquest

(8)

Mesh compression

lossless compression of the connectivity of the mesh;

3-connected planar graphs: polygonal meshes equivalent topologically to a sphere (genus 0, no boundary, one

connected component)

(9)

Tutte’s entropy (triangulations)

(information theory asymptotic lower bound)

enumeration of rooted planar triangulations on n vertices:

Ψ

n

= 2(4n + 1)!

(3n + 2)!(n + 1)! ≈ 16 27

r 3

2π n

5/2

( 256 27 )

n

Tutte’s entropy (1962):

e = 1

n log

2

Ψ

n

≈ log

2

( 256

27 ) ≈ 3.2451 bits/vertex

(10)

Polygonal meshes

Tutte’s entropy (1963)

enumeration of 3-connected planar graphs with m edges:

Φ

m

≈ 9 2

r 6

π m

52

4

m

(1)

information theory lower bound bpe (bits/edge):

e = 1

m log

2

Φ

m

bpe

e = log

2

4 = 2 bpe (2)

(11)

Graph encoding algorithms

Encoding algorithms with a guaranteed bit rate upper bound

Keeler and Westbrook (’95): 3 bpe

He et. al (SIAM J. Discrete Math.’99): 2.83 bpe

Chuang et. al (ICALP 98): 2.37 bpe

v12

v10 v11

v4 v3

v2

v5

v6

v9 v8

v13

v7

(12)

Near-optimal valence based strategies

triangulations: Touma-Gotsman ’98, Alliez-Desbrun ’01

polygonal meshes: Khodakovsky et al., Isenburg ’02

Touma Gotsman

valence based method Output: sequence of

7 6+4+5+7+7+6 +6+5+4+10 Full

vertex degrees + codes splits

(13)

Near-optimal valence based strategies

Entropy of triangle meshes valences (Gotsman ’02) p

i

≈ 4(πi)

1/2

( 3

4 )

i

Ent[p] := X

i3

p

i

log 1

p

i

= 3.236... < 3.245...

Touma Gotsman

valence based method Output: sequence of

7 6+4+5+7+7+6 +6+5+4+10 +5 +5+5+5 Full

FF

F+8+4+4 F+7F+6+5

F

Split(+3)

vertex degrees + codes splits

(14)

Optimal encodings

3.24v bits for triangulations: Poulalhon Schaeffer (ICALP ’03)

2e bits polygonal meshes: Fusy Poulalhon Schaeffer (SODA ’05)

e1 e2

e3

(15)

Overview of our encoding algorithm

v

0 v1

v

0 v1

ΣG = 3, 3, 4, 3, 4, ...

arithmetic coder any coder for

triangulations Canonical triangulation TG

Sequence of face degrees

01000110100111...

(16)

Our encoding contribution

compute a canonical triangulation T

G

of G;

we use only the connectivity of T

G

and the sequence of face degrees to encode the original graph original G;

we encode T

G

with an arbitrary triangle mesh encoder.

Main ideas:

we perform a deterministic conquest of the graph without splits ;

near-optimality of valence based method;

guaranteed upper bound: 2.62 bpe ;

adaptive algorithm: interesting rates compression for

regular meshes.

(17)

Canonical ordering for 3-connected planar graphs

D´ efinition (Kant’96) . Let π = {V

1

, . . . V

K

} be an ordered partition of vertices V . Denote by G

k

the sub-graph of G induced by V

1

∪, . . . , ∪V

k

and by C

k

the boundary of the

outer face G

k

(orange edges). We say that π is a canonical ordering of G if:

V

1

= {v

0

, v

1

}, V

K

= {v

n1

} and each C

k

is a cycle containing (v

0

, v

1

);

5 6 78 9 10

11 12

13

G

5 6 78 9 10

G

6

each G

k

(k > 1) is 2 -connected

and internally 3 -connected

(18)

Canonical ordering for 3-connected planar graph

For each k ∈ {2, . . . , K − 1} at least one of the two following condition holds:

1. V

k

= {z} s.t. z ∈ C

k

and z has at least one neighbor in G − G

k

2. V

k

= {z

1

, . . . , z

l

} , chaque z

i

has at least one neighbor in G − G

k

and z

1

, z

l

has exactly one neighbor in C

k−1

.

0 2 3 1

4 5 6 78 9 10

11 12

13

V

8

= {v

12

}

0 2 3 1

4 5 6 78 9 10

V

6

= {v

9

, v

10

}

(19)

Notation: free vertex

1. v is incident to at least one edge in G − G

k

;

2. its deletion (with its incident faces in G

k

) does not change the 2-connectivity of sub-graph G

k

.

0 2 3 1

4 5 6 78 9 10

v

2

not free: condition 2 v

3

not free: condition 1+2 v

4

not free: condition 1+2

v

7

not free: condition 1 v

8

free:

v

9

, v

10

not free: condition 2

(20)

Triangulating a face of G

case 1: insert the star of edges around (v

13

)

0 1

13

(21)

case 2

Triangulating a face (v

10

, v

9

, v

3

, v

4

) adding star of edges incident to v

4

2 3

4

9 10

(22)

Triangulating phase

Initial graph G

v

0

v

1

(23)

Triangulating phase

v

0

v

1

(24)

Triangulating phase

v

0

v

1

(25)

Triangulating phase

v

0

v

1

(26)

Triangulating phase

v

0

v

1

(27)

Triangulating phase

v

0

v

1

(28)

Triangulating phase

v

0

v

1

(29)

Triangulating phase

v

0

v

1

(30)

Triangulating phase

v

0

v

1

(31)

Triangulating phase

v

0

v

1

(32)

Triangulating phase

v

0

v

1

(33)

Triangulating phase

v

0

v

1

(34)

Triangulating phase

v

0

v

1

(35)

Triangulating phase

v

0

v

1

(36)

Triangulating phase

v

0

v

1

(37)

Triangulating phase

v

0

v

1

(38)

Triangulating phase

v

0

v

1

(39)

Triangulating phase

v

0

v

1

(40)

Triangulating phase

v

0

v

1

(41)

Triangulating phase

v

0

v

1

(42)

Triangulating phase

v

0

v

1

(43)

Triangulating phase

v

0

v

1

(44)

Triangulating phase

v

0

v

1

(45)

Triangulating phase

v

0

v

1

(46)

Start decoding

degrees of the faces: 3, 3, 6, 3, 3, 6, 3,4,5, 4, 3, 4

(47)

Start decoding

degrees of the faces: 3, 3, 6, 3, 3, 6, 3,4,5, 4, 3, 4

(48)

Start decoding

degrees of the faces: 3 , 3, 6, 3, 3, 6, 3, 4,5, 4, 3, 4

(49)

Start decoding

degrees of the faces:3, 3 ,6,3,3,6, 3, 4, 5, 4, 3, 4

(50)

Start decoding

degrees of the faces: 3, 3 6 , 3, 3, 6, 3, 4, 5, 4, 3, 4

(51)

Start decoding

degrees of the faces: 3, 3, 6 3 , 3, 6, 3, 4, 5, 4, 3, 4

(52)

decoding

degrees of the faces: 3,3,6,3, 3 , 6, 3, 4, 5,4,3,4

(53)

decoding

degrees of the faces: 3,3,6,3, 3 , 6, 3, 4, 5,4,3,4

(54)

decoding

degrees of the faces: 3,3,6,3, 3 , 6, 3, 4, 5,4,3,4

(55)

decoding

degrees of the faces: 3,3,6,3, 3 , 6, 3, 4, 5,4,3,4

(56)

decoding

degrees of the faces: 3, 3, 6, 3, 3, 6 ,3,4,5,4, 3, 4

(57)

decoding

degrees of the faces: 3, 3, 6, 3, 3,6, 3 ,4,5,4,3,4

(58)

decoding

degrees of the faces: 3, 3, 6, 3, 3,6, 3 ,4,5,4,3,4

(59)

decoding

degrees of the faces: 3,3,6,3, 3, 6, 3, 4 , 5, 4, 3, 4

(60)

decoding

degrees of the faces: 3,3,6,3, 3, 6, 3, 4 , 5, 4, 3, 4

(61)

decoding

degrees of the faces: 3, 3, 6, 3, 3, 6,3,4 5 ,4,3,4

(62)

decoding

degrees of the faces: 3, 3, 6, 3, 3, 6,3,4,5 4 , 3,4

(63)

decoding

degrees of the faces: 3, 3, 6, 3, 3, 6,3,4,5 4 , 3,4

(64)

decoding

degrees of the faces: 3, 3, 6, 3, 3, 6,3,4,5,4 3 , 4

(65)

decoding

degrees of the faces: 3, 3, 6, 3, 3, 6,3,4,5,4, 3 4

(66)

decoding

(67)

Cost of the detriangulation phase

Lemma 1. Let T

G

be the canonical triangulation of G , and Σ

G

the sequence of face degrees of G . Then it is possible to reconstruct the original graph G from Σ

G

using at most

e + o(e) bits

0 0.2 0.4 0.6 0.8 1 1.2

0.6 0.8 1 1.2 1.4 1.6 1.8

f · E + n · E

(68)

Cost of the detriangulation phase

E =

X

j=3

q

j

log

2

1

q

j

[b/f] and E

=

X

i=3

p

i

log

2

1

p

i

[b/v]

−( X

i>2

p

i

log p

i

+ X

j>2

q

j

log q

j

) ≤ 2 bits/edge The maximum 2 is achieved for r =

FV

= 1

cost(G) = min{f · E , n · E

} ≤ f · E + n · E

2 =

e + 2 2

1

r + 1 E + r

r + 1 E

≤ e + o(e) bits

(69)

Bit rate compression upper bound

Theorem. A 3 -connected planar graph with n vertices, e edges and f faces can be encoded with

(3.2451 + 2) min{n, f } + 1 = 2.62e + o(e) bits

If G is 3 -connected then so is its dual G

;

if n > 3 ( f > 3 ) then G

is simple;

kcode(G, G

)k ≤ (3.2451 + 2) min{n, f } bits.

(3.2451 + 2)

2 (e + 1) + 1 = 2.62e + o(e)

(70)

Experimental results

Combined with optimal encoding for triangulations

3D model V F E G bpe G

bpe

triceratops 2832 2834 5664 2.14 1.65

cupie 2984 3032 6004 2.07 2.15

lion head 2109 2312 4419 2.03 2.16

shark 2560 2562 5120 1.98 1.62

ear 3747 3701 7746 1.72 1.92

(71)

Experimental results

Our encoding combined with efficient valence-based methods for triangle mesh compression (Touma Gotsman, Alliez

Desbrun), compared with the benchmark for polygonal meshes by Isenburg.

3D model E our+TG (b/e) our+AD (b/e) IS (b/e)

triceratops 5664 1.36 1.22 0.59

lion head 4419 1.61 1.45 0.87

beethoven 5438 1.61 1.38 0.99

(72)

Open problems

Genus g meshes

optimal encodings for triangulated (or polygonal) genus g surfaces;

guaranteed upper bound for graph encoding for genus g graphs;

Valence-based methods

evaluation of the number and cost of split codes in

valence-based mesh compression algorithms.

Références

Documents relatifs

Fog computing platforms must carefully control the number and placement of application replicas to ensure guaranteed proximity between the users and the replicas serving their

On peut conclure que concernant les bétons en CEM II/59 exposés à l‟immersion complète, la présence de l‟ettringite comprimé en très grande quantité

I present an efficient algorithm which lists the minimal separators of a 3- connected planar graph in O(n) per separator.. Keywords: 3-connected planar graphs, minimal

However, since the graph is 3-connected planar, anyone of these neighbourhoods is necessarily maximal for inclusion, because if some neighbourhood S was a strict subset of some

Typical examples are three-dimensional red blood cells whose boundaries minimize the second-order Helfrich energy [ 15 ], two-dimensional soap films which are connected solutions to

The former by using a mathematical model that gives the values of maximum power according to the variation of the weather conditions, and the latter by a

HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not.. The documents may come

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des