32
Interactive Generation of Feature Curves on Surfaces Stuart Andrews University of Toronto Advisor: Professor Demetri Terzopoulos April 14, 2000 A thesis submitted in conformity with the requirements for the degree of Master of Science Graduate Department of Computer Science University of Toronto

Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Interactive Generation of FeatureCurves on Surfaces

Stuart AndrewsUniversity of Toronto

Advisor: Professor Demetri Terzopoulos

April 14, 2000

A thesis submitted in conformity with therequirements

for the degree of Master of ScienceGraduate Department of Computer Science

University of Toronto

Page 2: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Overview of Talk

• Introduction

1. Problem and Motivation2. Virtual Planning and Simulation of Cranio-Facial

Surgery3. Goals

• Challenges

• Background

• Proposed Solution

• Contributions

• Live-Wire

• Paths of Minimal Action

• Results and Conclusions

1

Page 3: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Problem and Motivation

Curves on 3D surfacesA surface SA curve C ⊂ S

Applications

• surface-based measurement

• navigation

• geometric modeling

• 3D shape analysis

ProblemSpecific desired curve qualities =⇒ difficult todraw by hand

2

Page 4: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Cranio-Facial Surgery

Virtual Surgery - Planning and simulation

• make precise measurements

• delineate incisions

• extract feature curves

3

Page 5: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Goals

Provide a tool to compute certain types of curvesupon user request

(Like ruler, protracter, or compass)

• general purpose

• explicit user control

• capacity of generating curves that identify specificfeatures

4

Page 6: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Challenges

• Introduction

• Challenges

1. Representation2. User Interaction3. Properties of Curves

• Background

• Proposed Solution

• Contributions

• Live-Wire

• Paths of Minimal Action

• Results and Conclusions

5

Page 7: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Representations

We need a parameterization for the surface S, and forcurves C on S.

• to perform traversals of the surface

• to enforce embedding property C ⊂ S

• to represent geometrically and topologicallycomplex surfaces and curves

X

6

Page 8: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

User Interaction

Drawing in 2D

• mouse-based drawing interfaces

• poor results

• Computer Aided Design systems are oftencumbersome

For drawing on 3D surfaces, the situation is worse.We must project 2D mouse input onto the surface,which introduces new problems.

• jump discontinuities

• distortion of distance

• occlusions

A simple projection of the 2D mouse input to thesurface does not work.

7

Page 9: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Properties of Curves

How do we specify, and then compute, useful featurecurves?

• examples

1. shortest or minimal cost path2. ridge line3. iso-contour

• smoothness of curve

• invariance to surface representation, scale,transformation

• reproducible

8

Page 10: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Background

2D image processing

• Snakes: Active contours models[Kass et al., 1987]

• Geodesic active contours[Caselles et al., 1997]

• Computing geodesics paths on manifolds[Kimmel et al., 1995]

• Interactive live-wire boundary extraction[Barrett and Mortensen, 1997]

• Global minimum for active contour models[Cohen and Kimmel, 1997]

9

Page 11: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Proposed Solution

• Introduction

• Challenges

• Background

• Proposed Solution

1. Choice of Representation2. Feature Curves3. Interaction

• Contributions

• Live-Wire

• Paths of Minimal Action

• Results and Conclusions

10

Page 12: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Choice of Representation

• surface S is represented by a triangle mesh

• the location of a point x ∈ S is parameterized bythe triangle index in which it lies, and within thetriangle, by barycentric coordinates

• curve C : Ω → S is represented by a sequence ofcontrol points

C = 〈x0, x1, x2, . . . xM〉

with the property that axi + (1 − a)xi+1 ∈ S fora ∈ [0, 1]

11

Page 13: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Feature Curves

The curves that we generate are minimal geodesics.

In the Euclidean metric space, these are equivalent toshortest paths.

We obtain other types of curves by definingalternative Riemannian metric spaces.

• geodesic property - locally minimizes∫ ‖Cs‖ ds

• redefine arclength - locally minimizes∫

P (Cs) ds

12

Page 14: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Riemannian Metric

• scalar field P

1. intrinsic surface properties (curvature)2. extrinsic properties (position, colour)

13

Page 15: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Interaction

• solves 2D to 3D mapping problem

1. algorithm constructs embedded curves2. curve segments have specific properties3. projection & occlusion problems

• feature curves are selected incrementally?=⇒ restricted freedom

• allows user to adaptively moderate precision

An intuitive form of 3D interaction generating curveson surfaces.

14

Page 16: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Contributions

We introduce the novel use of 2D image processingtechniques for generating feature contours on asurface.

1. We extend the live-wire technique to graphsrepresenting surfaces in R3.

2. We extend the minimal path framework [Cohenand Kimmel, 1997] to 3D, and couple it withlive-wire interaction.

15

Page 17: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Live-Wire

• Introduction

• Challenges

• Background

• Proposed Solution

• Contributions

• Live-Wire

1. 2D Live-Wire2. Extension to 3D3. Evaluation

• Paths of Minimal Action

• Results and Conclusions

16

Page 18: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

2D Live-Wire

Problem - locate object boundaries in images

Observation: the contours are linked to edgedetectors (eg: image gradient)

How do we generate a contour over these features?

Solution [Barrett and Mortensen, 1997]

1. represent image as a graph and curves as edgesequences

2. define an cost function on graph edges3. identify feature contours C in image as minimal

paths in the graph

arg minC

∑e∈C

w(e),

4. Use Dijkstra’s algorithm to compute the shortestpaths to the source point (O(n log n) time,where n is the number of nodes).

17

Page 19: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Live-Wire - (cont’d)

How should we define the edge cost w(e)?

w(e) =

small if e is near object boundarylarge otherwise

‘Near object boundary’ is defined with respect to theimage gradient, or other edge detectors.

18

Page 20: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Live-Wire - Extension to 3D

1. represent surface S as a graph

2. scalar field P defined at the vertices

3. define the edge costs to reflect features of intereston the surface

w(e) =(

α +P (p) + P (q)

2

)‖e‖

where e = 〈p, q〉 connects vertices p and q

19

Page 21: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Evaluation

Pros - direct, intuitive, and fast

Cons - paths are restricted to edge sequences in thegraph

Can we implement this in a continuous manner?

20

Page 22: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Paths of Minimal Action

• Introduction

• Challenges

• Background

• Proposed Solution

• Contributions

• Live-Wire

• Paths of Minimal Action

1. Intuition2. Paths of Minimal Action3. Wave Propagation4. Surface of Minimal Action

• Results and Conclusions

21

Page 23: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Intuition

Dijkstra’s algorithm mimics a wave propagation

KNOWN REGION

UNKNOWN REGION

TRIAL SET

Paths are reconstructed by following sequence of‘previous’ pointers (a descent).

22

Page 24: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Paths of Minimal Action

• paths of minimal action [Cohen and Kimmel, 1997]

are defined as geodesics

arg minC

∫Ω

α + P (C(s)) ds

• curves C are no longer restricted to the edges ofthe graph

• compare with discrete solution

arg minC

∑e∈C

(α +

P (p) + P (q)2

)‖e‖

• Riemannian metric: P ds = (α + P )ds

23

Page 25: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Wave Propagation

• use wave propagation to compute geodesic circlesfrom which we obtain geodesics

• arrival time t is proportional to distance

The parametric solution for advancing wavefront isthe solution of the following boundary value PDE:

∂u(x, t)∂t

=1P

(N(x) × T (x)),

where u(A, 0) = 0. T (x) is the unit tangent to thewavefront and N(x) is the unit surface normal.

24

Page 26: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Surface of Minimal Action

Problemsolving this PDE is messy

Solutionembed the wavefront in a higher dimensionalfunction U that is easier to compute

compute geodesics using gradient decent on U .

• No additional complexity compared to Dijkstra’algorithm

• Smooth results

25

Page 27: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Results

26

Page 28: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Elasticity

27

Page 29: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

3D surfaces

28

Page 30: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

3D surfaces

29

Page 31: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

Conclusion

• we have extended two methods for generatingcurves on a triangle mesh surface

• interactive and intuitive easy to use

• easy designation of feature curves - especially ridgelines

• handles the underconstrained nature of 2D input togenerate 3D surface curves

In the future, we would like to consider the following:

• apply minimal path techniques to the PETRA -Digital Archeology project

• automate the selection of start and end points

30

Page 32: Interactive Generation of Feature Curves on Surfacesandrews/pub/cs-talk.pdf · 2003. 1. 19. · Speci c desired curve qualities =) di cult to draw by hand 2. Cranio-Facial Surgery

References

[Barrett and Mortensen, 1997] W. A. Barrett and E. N. Mortensen. Interactive live-wireboundary extraction. Medical Image Analysis, 1(4):331–341, 1997.

[Caselles et al., 1997] V. Caselles, R. Kimmel, and G Sapiro. Geodesic active contours.International Journal of Computer Vision, 22(1):61–79, 1997.

[Cohen and Kimmel, 1997] L. D. Cohen and R Kimmel. Global minimum for active contourmodels: A minimal path approach. International Journal of Computer Vision,22(1):57–78, 1997.

[Kass et al., 1987] M. Kass, Witkin A., and D. Terzopoulos. Snakes: Active contour models.International Journal of Computer Vision, 1(4):321–331, 1987.

[Kimmel et al., 1995] R Kimmel, A. Amir, and Bruckstein A. M. Finding shortest paths onsurfaces using level sets propagation. IEEE Transactions on Pattern Analysis and MachineIntelligence, 17(6):635–640, 1995.

31