32
CSE554 Extrinsic Deformations Slide 1 CSE 554 Lecture 10: Extrinsic Deformations Fall 2013

CSE 554 Lecture 10: Extrinsic Deformations

  • Upload
    asa

  • View
    42

  • Download
    0

Embed Size (px)

DESCRIPTION

CSE 554 Lecture 10: Extrinsic Deformations. Fall 2013. Review. Source. Non-rigid deformation Intrinsic methods: deforming the boundary points An optimization problem Minimize shape distortion Maximize fit Example: Laplacian-based deformation. Target. Before. After. - PowerPoint PPT Presentation

Citation preview

Page 1: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 1

CSE 554

Lecture 10: Extrinsic Deformations

CSE 554

Lecture 10: Extrinsic Deformations

Fall 2013

Page 2: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 2

ReviewReview

• Non-rigid deformation

– Intrinsic methods: deforming the boundary points

– An optimization problem

• Minimize shape distortion

• Maximize fit

– Example: Laplacian-based deformation

Source

Target

Before

After

Page 3: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 3

Extrinsic DeformationExtrinsic Deformation

• Computing deformation of each point in the plane or volume

– Not just points on the boundary curve or surface

Credits: Adams and Nistri, BMC Evolutionary Biology (2010)

Page 4: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 4

Extrinsic DeformationExtrinsic Deformation

• Applications

– Registering contents between images and volumes

– Interactive spatial deformation

Page 5: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 5

TechniquesTechniques

• Thin-plate spline deformation

• Free form deformation

• Cage-based deformation

Page 6: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 6

Thin-Plate SplineThin-Plate Spline

• Given corresponding source and target points

• Computes a spatial deformation function for every point in the 2D plane or 3D volume

Credits: Sprengel et al, EMBS (1996)

Page 7: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 7

Thin-Plate SplineThin-Plate Spline

• A minimization problem

– Minimizing distances between source and target points

– Minimizing distortion of the space (as if bending a thin sheet of metal)

• There is a closed-form solution

– Solving a linear system of equations

Page 8: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 8

Thin-Plate SplineThin-Plate Spline

• Input

– Source points: p1,…,pn

– Target points: q1,…,qn

• Output

– A deformation function f[p] for any point p

pi

qi

p

f[p]

Page 9: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 9

Thin-Plate SplineThin-Plate Spline

• Minimization formulation

– Ef: fitting term

• Measures how close is the deformed source to the target

– Ed: distortion term

• Measures how much the space is warped

– : weight

• Controls how much non-rigid warping is allowed

E Ef Ed

Page 10: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 10

Thin-Plate SplineThin-Plate Spline

• Fitting term

– Minimizing sum of squared distances between deformed source points and target points

Ef i1

n fpi qi2

Page 11: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 11

Thin-Plate SplineThin-Plate Spline

• Distortion term

– Minimizing a physical bending energy on a metal sheet (2D):

– The energy is zero when the deformation is affine

• Translation, rotation, scaling, shearing

Ed 2f

x2

2

22f

x y

2

2f

y2

2 2

x y

Page 12: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 12

Thin-Plate SplineThin-Plate Spline

• Finding the minimizer for

– Uniquely exists, and has a closed form:

• M: an affine transformation matrix

• vi: translation vectors (one per source point)

• Both M and vi are determined by pi,qi,

E Ef Ed

fp M p i1

n

p pi vir r2 Logr

2 1 1 2

0 .5

1 .0

1 .5

2 .0

2 .5

where

r

Page 13: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 13

Thin-Plate SplineThin-Plate Spline

• Result

– At higher , the deformation is closer to an affine transformation

0

0.001 0.1Credits: Sprengel et al, EMBS (1996)

Page 14: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 14

Thin-Plate SplineThin-Plate Spline

• Application: landmark-based image registration

– Manual or automatic detection of landmarks and correspondences

Source Target Deformed source

Credits: Rohr et al, TMI (2001)

Page 15: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 15

Free Form DeformationFree Form Deformation

• Uses a control lattice that embeds the shape

• Deforming the lattice points warps the embedded shape

Credits: Sederberg and Parry, SIGGRAPH (1986)

Page 16: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 16

Free Form DeformationFree Form Deformation

• Warping the space by “blending” the deformation at the control points

– Each deformed point is a weighted sum of deformed lattice points

Page 17: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 17

Free Form DeformationFree Form Deformation

• Input

– Source lattice points: p1,…,pn

– Target lattice points: q1,…,qn

• Output

– A deformation function f[p] for any point p in the lattice grid.

• wi[p]: pre-computed “influence” of pi

on p

piqi

p f[p]

fp i1

n

wip qi

Page 18: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 18

Free Form DeformationFree Form Deformation

• Desirable properties of the weights w i[p]

– Greater when p is closer to pi

• So that the influence of each control point is local

– Smoothly varies with location of p

• So that the deformation is smooth

• So that f[p] = wi[p] qi is an affine combination of qi

• So that f[p]=p if the lattice stays unchanged

p i1

nwip pi

1 i1

nwip

piqi

p f[p]

Page 19: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 19

Free Form DeformationFree Form Deformation

• Finding weights (2D)

– Let the lattice points be pi,j for i=0,…,k and j=0,…,l

– Compute p’s relative location in the grid (s,t)

• Let (xmin,xmax), (ymin,ymax) be the range of grid

p0,0

p0,1

p0,2

p1,0

p1,1

p1,2

p2,0

p2,1

p2,2

p3,0

p3,1

p3,2

p

s

t

s px xmin

xmax xmin

t py ymin

ymax ymin

Page 20: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 20

Free Form DeformationFree Form Deformation

• Finding weights (2D)

– Let the lattice points be pi,j for i=0,…,k and j=0,…,l

– Compute p’s relative location in the grid (s,t)

– The weight wi,j for lattice point pi,j is:

i,j: importance of pi,j

• B: Bernstein basis function:Biks k

i si 1 ski

p0,0

p0,1

p0,2

p1,0

p1,1

p1,2

p2,0

p2,1

p2,2

p3,0

p3,1

p3,2

p

s

t

ui,jp i,j Biks Bjlt

wi,jp ui,jp i0

k j0l ui,jp

Page 21: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 21

Free Form DeformationFree Form Deformation

• Finding weights (2D)

– Weight distribution for one control point (max at that control point):

p0,0

p0,1

p0,2

p1,0

p1,1

p2,0

p3,0

p3,1

p3,2

w1,1p

Page 22: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 22

Free Form DeformationFree Form Deformation

• A deformation example

Page 23: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 23

Free Form DeformationFree Form Deformation

• Image registration

– Embed the source in a lattice

– Compute new lattice positions over the target

• Manually, or solve it as an optimization problem (maximally matching images contents while minimizing distortion)

– Deform each source pixel using FFD

www.slicer.org

Page 24: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 24

Cage-based DeformationCage-based Deformation

• Use a control mesh (“cage”) to embed the shape

• Deforming the cage vertices warps the embedded shape

Credits: Ju, Schaefer, and Warren, SIGGRAPH (2005)

Page 25: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 25

Cage-based DeformationCage-based Deformation

• Warping the space by “blending” the deformation at the cage vertices

– wi[p]: pre-computed “influence” of

pi on p

fp i1

n

wip qip

f[p]

pi

qi

Page 26: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 26

Cage-based DeformationCage-based Deformation

• Finding weights (2D)

– Problem: given a closed polygon (cage) with vertices pi and an interior

point p, find smooth weights wi[p] such that:

• 1)

• 2)

1 i1

nwip

p i1

nwip pi pi

p

Page 27: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 27

Cage-based DeformationCage-based Deformation

• Finding weights (2D)

– A simple case: the cage is a triangle

– The weights are unique (3 eqs, 3 vars)

– Known as the barycentric coordinates of p

p1

p2

p3

p

1 w1 w2 w3px w1 p1,x w2 p2,x w3 p3,xpy w1 p1,y w2 p2,y w3 p3,y

w1 Areap,p2,p3Areap1,p2,p3

Page 28: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 28

• Finding weights (2D)

– The harder case: the cage is an arbitrary (possibly concave) polygon

– The weights are not unique

• A good choice: Mean Value Coordinates (MVC)

• Can be extended to 3D

Cage-based DeformationCage-based Deformation

pi

p

αi

αi+1

uip Tani 2 Tani1 2pi p

wip uip i1n uip

pi-1

pi+1

Page 29: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 29

Cage-based DeformationCage-based Deformation

• Finding weights (2D)

– Weight distribution of one cage vertex in MVC:

pi

wip

Page 30: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 30

Cage-based DeformationCage-based Deformation

• Application: character animation

Page 31: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 31

Cage-based DeformationCage-based Deformation

• Registration

– Embed source in a cage

– Compute new locations of cage vertices over the target

• Minimizing some fitting and energy objectives

– Deform source pixels using MVC

• Not seen in literature yet… future work!

Page 32: CSE 554 Lecture 10: Extrinsic Deformations

CSE554 Extrinsic Deformations Slide 32

Further ReadingsFurther Readings

• Thin-plate spline deformation

– “Principal warps: thin-plate splines and the decomposition of deformations”, by Bookstein (1989)

– “Landmark-Based Elastic Registration Using Approximating Thin-Plate Splines”, by Rohr et al. (2001)

• Free form deformation

– “Free-Form Deformation of Solid Geometric Models”, by Sederberg and Parry (1986)

– “Extended Free-Form Deformation: A sculpturing Tool for 3D Geometric Modeling”, by Coquillart (1990)

• Cage-based deformation

– “Mean value coordinates for closed triangular meshes”, by Ju et al. (2005)

– “Harmonic coordinates for character animation”, by Joshi et al. (2007)

– “Green coordinates”, by Lipman et al. (2008)