1 numerical geometry of non-rigid shapes nonrigid correspondence & calculus of shapes non-rigid...

39
1 geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed to various forms, I sing. Ovid, Metamorphoses Alexander Bronstein, Michael Bronstein © 2008 All rights reserved. Web: tosca.cs.technion.ac.il

Post on 20-Jan-2016

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

1Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Non-Rigid Correspondenceand Calculus of Shapes

Of bodies changed to various forms, I sing.

Ovid, Metamorphoses

Alexander Bronstein, Michael Bronstein© 2008 All rights reserved. Web: tosca.cs.technion.ac.il

Page 2: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

2Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Does a “natural” correspondence exist?

Page 3: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

3Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Correspondence

accurate

‘‘

‘‘ makes sense

‘‘

‘‘ beautiful

‘‘

‘‘

Geometric Semantic Aesthetic

Page 4: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

4Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Correspondence

Correspondence is not a well-defined problem!

Chances to solve it with geometric tools are slim.

If objects are sufficiently similar, we have better chances.

Correspondence between nonrigid deformations of the same object.

Page 5: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

5Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

1D motivation: correspondence between curves

Two curves ,

Arclength parametrization

Unique up to initial point.

Reparametrize and to canonical

parametrization.

Find correspondence between intervals

Correspondence between and

Page 6: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

6Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

The curse of higher dimension

We relied on existence of a “canonical” arclength parametrization.

Was possible due to existence of total ordering of points in 1D.

Surfaces (2D objects) do not have a total ordering.

Hence, no analogy of arclength parametrization for surfaces.

We can still find an invariant parametrization.

Page 7: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

7Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Invariant parametrization

Page 8: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

8Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Invariant parametrization

Ingredients:

Parametrization domain .

Group of deformations .

Shape .

Parametrization procedure, constructing

given the shape .

Desideratum: commutativity of the parametrization procedure with

the deformation:

How to construct such an invariant parametrization procedure?

Page 9: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

9Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Compute minimal distortion embeddings

Define intrinsic parametrizations

Find rigid motion between parametrizations

Define correspondence between shapes

Canonical forms, bis

Page 10: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

10Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Canonical forms

Embedding into the plane is not distortionless.

Invariance of parametrization holds only approximately

Generally, there exists no rigid motion bringing and

into perfect correspondence.

Relax assumptions on : allow to be any

bijection.

Page 11: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

11Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Image processing insight

Given two grayscale images and , find the optical flow

(a.k.a. disparity map, motion field, etc.) minimizing the error

Local image misalignment

Given two shapes parametrized by and

, find minimizing

measures mismatch between

and .

Page 12: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

12Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Problem: functional depends on parametrization .

Make it intrinsic replacing with .

has also to be parametrization-independent.

Example: normal misalignment

Problem: not isometry-invariant.

Make an intrinsic quantity, e.g.,

Not limited to geometric quantities.

May include photometric information.

Image processing approach

Page 13: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

13Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Minimization problem

is ill-posed!

Add a regularization term

Tikhonov

Total variation

Healthy solution to ill-posed problems

Page 14: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

14Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Regularizer has to be parametrization-invariant.

Frobenius norm is replaced by the Hilbert-Schmidt norm

is an intrinsic quantity in parametrization coordinates

is correspondence between shapes.

is the intrinsic gradient on .

is the norm in the tangent space of .

Intrinsic regularization

Page 15: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

15Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Physical insight

Cauchy-Green deformation tensor

Square of local change of distance due

to

elastic deformation.

measures average distance

deformation.

= elastic energy

(a.k.a. Dirichlet energy) of thin rubber

sheet pressed against a mold .

Page 16: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

16Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Dirichlet energy

We have been looking for a regularizer…

…but found a good measure for shape mismatch!

is an intrinsic quantity.

Minimizing gives a minimum deformation correspondence.

Minimizer is a harmonic map of to .

Some harmony

Page 17: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

17Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Define a general energy functional

is intrinsic, hence can be expressed in terms of the metric

Correspondence problem becomes

GMDS with generalized stress.

Minimum distortion correspondence

Page 18: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

18Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Minimum distortion correspondence

Page 19: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

19Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

“Harmonic stress”:

gives the norm of the Cauchy-Green tensor

Our good old L2 stress

gives “as isometric as possible” correspondence.

Generalized stress

Page 20: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

20Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Minimum distortion correspondence

Minimum distortion correspondence

Defined up to intrinsic symmetry of and .

Page 21: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

21Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Partial correspondence

Page 22: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

22Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Minimum distortion correspondence

MATLAB® intermezzo

Page 23: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

23Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

TIMEReference Transferred texture

Texture transfer

Page 24: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

24Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Virtual body painting

Page 25: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

25Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Texture substitution

I’m Alice. I’m Bob.I’m Alice’s texture

on Bob’s geometry

Page 26: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

26Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Given two shapes and , and a

correspondence .

We can define a convex combination of the two shapes

as a new shape, where the extrinsic location of each point is given by

Alternatively

Define deformation field transforming

into and express .

We can create new shapes by adding or subtracting other shapes.

We have a calculus of shapes.

Calculus of shapes

Page 27: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

27Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Calculus of shapes in shape space

Extrapolation Interpolation

Page 28: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

28Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Temporal super-resolution

TIME

Page 29: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

29Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Motion-compensated interpolation

Page 30: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

30Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Metamorphing

100%

Alice

100%

Bob

75% Alice

25% Bob

50% Alice

50% Bob

75% Alice

50% Bob

Page 31: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

31Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Face caricaturization

0 1 1.5

EXAGGERATED

EXPRESSION

Page 32: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

32Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

The quest for trajectory

In our definition of

linear trajectory between

corresponding points was used.

If and are extrinsically

similar, this gives good result.

Generally, there is no guarantee

that

is a valid shape:

Not a manifold

Self-intersecting

Even if shape is valid, it is not

necessarily isometric to .

Page 33: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

33Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Given two shapes and , and a correspondence

, we want to find intermediate shapes .

For each point , define a trajectory for

such that

The big question:

How to select trajectories?

No self-intersections of intermediate meshes.

No distortion of intrinsic geometry in intermediate meshes.

The quest for trajectory

Page 34: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

34Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Define deformation field

Tangent to the trajectory

In order for intermediate shapes

to be isometric to ,

must hold for all

and .

Deformation field

Page 35: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

35Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Killing field: deformation field preserving

the metric.

Satisfies

for all and

May not exist, even if and

are isometric!

Remember: not every nonrigid shape

is continuously bendable…

The Killing field

Wilhelm Karl Joseph Killing(1847-1923)

Page 36: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

36Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

As isometric as possible deformation field.

Define inner product between deformation fields of

Induces a norm

Problem: vanishes for being a rigid motion.

Solution: add stiffening term:

Metric for deformation fields

Page 37: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

37Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

We have a Riemannian metric on the space of shapes.

Find a minimal geodesic connecting between and .

Boundary conditions .

Minimum deviation from Killing field along the path.

As isometric as possible morph.

As isometric as possible morph

Page 38: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

38Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Summary and suggested reading

Invariant surface parametrization

G. Zigelman, R. Kimmel, and N. Kiryati, Texture mapping using surface flatteningvia multi-dimensional scaling, IEEE TVCG 9 (2002), no. 2, 198–207.

An image processing insight to correspondence

B. K. P. Horn and B. G. Schunck, Determining optical flow, Artificial Intelligence17 (1981), no. 1-3, 185–203.

Harmonic embeddings

N. Litke, M. Droske, M. Rumpf, and P. Schroder, An image processing approachto surface matching.

Minimum distortion correspondence

Calculus of shapes

A.M. Bronstein, M.M. Bronstein, R. Kimmel, Calculus of non-rigid surfaces forgeometry and texture manipulation, IEEE TVCG 13 (2007), no. 5, 903–913.

Page 39: 1 Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes Non-Rigid Correspondence and Calculus of Shapes Of bodies changed

39Numerical geometry of non-rigid shapes Nonrigid Correspondence & Calculus of Shapes

Summary and suggested reading

Morphing

M. Alexa, Recent advances in mesh morphing, Computer Graphics Forum 21(2002), no. 2, 173–196.

V. Surazhsky and C. Gotsman, Controllable morphing of compatible planartriangulations, ACM Trans. Graphics 20 (2001), no. 4, 203–231.

M. Kilian, N. J. Mitra, and H. Pottmann, Geometric modeling in shape space,ACM Trans. Graphics 26 (2007), no. 3.