14.08.2013 Views

Docteur de l'université Automatic Segmentation and Shape Analysis ...

Docteur de l'université Automatic Segmentation and Shape Analysis ...

Docteur de l'université Automatic Segmentation and Shape Analysis ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4 Statistical shape mo<strong>de</strong>l of Hippocampus 77<br />

Algorithm 6 Linear system for the initial diffusion of φ, adapted from Brechbühler<br />

et al. (1995)<br />

1: {Modification of the matrix A}<br />

2: for all direct neighbors vi of the north or the south pole do<br />

3: Aii ← Aii − 1<br />

4: end for<br />

5: A11 ← A11 + 2 (arbitrary)<br />

6: {Setting up the vector b}<br />

7: for all i = 1, · · · , k do<br />

8: bi ← 0<br />

9: end for<br />

10: previous ← inorth<br />

11: i ← 1<br />

12: maximum ← 0.0<br />

13: while i = isouth do<br />

14: for all vj which is direct neighbor of vi do<br />

15: if θ(vj) > maximum then<br />

16: maximum ← θ(vj)<br />

17: next ← j<br />

18: end if<br />

19: if j = previous then<br />

20: p previous ← p vj<br />

21: end if<br />

22: end for<br />

23: for all vj which is direct neighbor of vi, clockwise between p previous <strong>and</strong> p next<br />

do<br />

24: bj ← bj + 2π<br />

25: bi ← bi − 2π<br />

26: end for<br />

27: previous ← i<br />

28: i ← next<br />

29: end while<br />

of the mapping. Each square facet on X should map to a spherical quadrilateral<br />

close to a spherical square on S 2 , by maximizing the objective function ∑ 4 i=1 cos ei,<br />

where ei, i = 1, 2, 3, 4 are the 4 arcs of the mapped spherical quardrilateral (see<br />

Figure 4.2). The cosine of the arc can be computed as the dot product of two<br />

vectors from the centre of the sphere (origin) to the two vertices. The constrained<br />

optimization algorithm is solved by a Newton-Lagrange algorithm. An alternative<br />

implementation is proposed by Weistr<strong>and</strong> (2005) which computes the distortion<br />

on triangles instead of on quadrilaterals.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!