1 numerical geometry of non-rigid shapes spectral methods spectral methods © alexander &...

44
1 rical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book 048921 Advanced topics in vision Processing and Analysis of Geometric Shapes EE Technion, Spring 2010

Upload: quentin-jenks

Post on 15-Dec-2015

221 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

1Numerical Geometry of Non-Rigid Shapes Spectral methods

Spectral methods

© Alexander & Michael Bronstein, 2006-2009© Michael Bronstein, 2010tosca.cs.technion.ac.il/book

048921 Advanced topics in visionProcessing and Analysis of Geometric Shapes

EE Technion, Spring 2010

Page 2: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

2Numerical Geometry of Non-Rigid Shapes Spectral methods

A mathematical exercise

Assume points with the metric are isometrically

embeddable into

Then, there exists a canonical form such that

for all

We can also write

Page 3: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

3Numerical Geometry of Non-Rigid Shapes Spectral methods

A mathematical exercise

Since the canonical form is defined up to

isometry, we can arbitrarily set

Page 4: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

4Numerical Geometry of Non-Rigid Shapes Spectral methods

A mathematical exercise

Conclusion: if points are isometrically embeddable into

then

Element of

a matrix

Element of an

matrix

Note: can be defined in different ways!

Page 5: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

5Numerical Geometry of Non-Rigid Shapes Spectral methods

Gram matrices

A matrix of inner products of the form

is called a Gram matrix

Jørgen Pedersen Gram(1850-1916)

Properties:

(positive semidefinite)

Page 6: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

6Numerical Geometry of Non-Rigid Shapes Spectral methods

Back to our problem…

Isaac Schoenberg(1903-1990)

[Schoenberg, 1935]: Points with the metric can

be isometrically embedded into a Euclidean space if and only if

If points with the metric

can be isometrically embedded into , then

can be realized as a Gram matrix of rank ,

which is positive semidefinite

A positive semidefinite matrix of rank

can be written as

giving the canonical form

Page 7: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

7Numerical Geometry of Non-Rigid Shapes Spectral methods

Classic MDS

Usually, a shape is not isometrically embeddable into a Eucludean space,

implying that (has negative eignevalues)

We can approximate by a Gram matrix of rank

Keep m largest eignevalues

Canonical form computed as

Method known as classic MDS (or classical scaling)

Page 8: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

8Numerical Geometry of Non-Rigid Shapes Spectral methods

Properties of classic MDS

Nested dimensions: the first dimensions of an -

dimensional

canonical form are equal to an -dimensional canonical form

Global optimization problem – no local convergence

Requires computing a few largest eigenvalues of a real symmetric

matrix,

which can be efficiently solved numerically (e.g. Arnoldi and Lanczos)

The error introduced by taking instead of can be quantified as

Classic MDS minimizes the strain

Page 9: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

9Numerical Geometry of Non-Rigid Shapes Spectral methods

MATLAB® intermezzoClassic MDS

Canonical forms

Page 10: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

10Numerical Geometry of Non-Rigid Shapes Spectral methods

Classical scaling example

1

B

D

A

C1

1

1

1

B

A C2

A

A 1

B C D

B

C

D

2 1

1 1 1

2 1 1

1 1 1

D

1

Page 11: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

11Numerical Geometry of Non-Rigid Shapes Spectral methods

Deformation Deformation

+Topology

Topological invariance

Page 12: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

12Numerical Geometry of Non-Rigid Shapes Spectral methods

Local methods

Make the embedding preserve local properties of the shape

If , then is small. We want the corresponding

distance in the embedding space to be small

Map neighboring points to neighboring points

Page 13: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

13Numerical Geometry of Non-Rigid Shapes Spectral methods

Local methods

Think globally, act locally

Local criterion how far apart the embedding takes neighboring points

“ ”David Brower

Global criterion

where

Page 14: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

14Numerical Geometry of Non-Rigid Shapes Spectral methods

Laplacian matrix

where is an matrix with elements

Matrix formulationRecall stress

derivation

in LS-MDS

is called the Laplacian matrix

has zero eigenvalue

Page 15: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

15Numerical Geometry of Non-Rigid Shapes Spectral methods

Local methods

Compute canonical form by solving the optimization problem

Trivial solution ( ): points can

collapse to a single point

Introduce a constraint

avoiding trivial solution

Page 16: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

16Numerical Geometry of Non-Rigid Shapes Spectral methods

Minimum eigenvalue problems

Lets look at a simplified case: one-dimensional embedding

Geometric intuition: find a unit vector shortened the most by the action

of the matrix

Express the problem using eigendecomposition

Page 17: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

17Numerical Geometry of Non-Rigid Shapes Spectral methods

Solution of the problem

is given as the smallest non-trivial eigenvectors of

The smallest eigenvalue is zero and the corresponding eigenvector is

constant (collapsing to a point)

Minimum eigenvalue problems

Page 18: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

18Numerical Geometry of Non-Rigid Shapes Spectral methods

Laplacian eigenmaps

Compute the canonical form by finding the smallest non-trivial

eigenvectors of

Method called Laplacian eigenmap [Belkin&Niyogi]

is sparse (computational advantage for eigendecomposition)

We need the lower part of the spectrum of

Nested dimensions like in classic MDS

Page 19: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

19Numerical Geometry of Non-Rigid Shapes Spectral methods

Laplacian eigenmaps example

Classic MDS Laplacian eigenmap

Page 20: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

20Numerical Geometry of Non-Rigid Shapes Spectral methods

Continuous case

Consider a one-dimensional embedding (due to nested dimension property,

each dimension can be considered separately)

We were trying to find a map that maps neighboring

points to neighboring points

In the continuous case, we have a smooth map on surface

Let be a point on and be a point obtained by an infinitesimal

displacement from by a vector in the tangent plane

By Taylor expansion,

Inner product on tangent space (metric tensor)

Page 21: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

21Numerical Geometry of Non-Rigid Shapes Spectral methods

Continuous case

By the Cauchy-Schwarz inequality

implying that is small if is small: i.e., points

close to are mapped close to

Continuous local criterion:

Continuous global criterion:

Page 22: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

22Numerical Geometry of Non-Rigid Shapes Spectral methods

Continuous analog of Laplacian eigenmaps

Canonical form computed as the minimization problem

where:

Stokes theorem

We can rewrite

is the space of square-integrable functions on

Page 23: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

23Numerical Geometry of Non-Rigid Shapes Spectral methods

Laplace-Beltrami operator

The operator is called Laplace-Beltrami

operator

Laplace-Beltrami operator is a generalization of Laplacian to manifolds

In the Euclidean plane,

Intrinsic property of the shape (invariant to isometries)

Note: we define Laplace-Beltrami operator with minus, unlike many books

In coordinate notation

Page 24: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

24Numerical Geometry of Non-Rigid Shapes Spectral methods

Laplace-Beltrami

Pierre Simon de Laplace (1749-1827)

Eugenio Beltrami(1835-1899)

Page 25: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

25Numerical Geometry of Non-Rigid Shapes Spectral methods

Properties of Laplace-Beltrami operator

Let be smooth functions on the surface . Then the

Laplace-Beltrami operator has the following properties

Constant eigenfunction: for any

Symmetry:

Locality: is independent of for any points

Euclidean case: if is Euclidean plane and

then

Positive semidefinite:

Page 26: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

26Numerical Geometry of Non-Rigid Shapes Spectral methods

Continuous vs discrete problem

Continuous:

Discrete:

Laplace-Beltrami

operator

Laplacian

Page 27: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

27Numerical Geometry of Non-Rigid Shapes Spectral methods

To see the sound

Chladni’s experimental setup allowing to visualize acoustic waves

Ernst Chladni ['kladnɪ] (1715-1782)

E. Chladni, Entdeckungen über die Theorie des Klanges

Page 28: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

28Numerical Geometry of Non-Rigid Shapes Spectral methods

Chladni plates

Patterns seen by Chladni are solutions to stationary Helmholtz equation

Solutions of this equation are eigenfunction of Laplace-Beltrami operator

Page 29: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

29Numerical Geometry of Non-Rigid Shapes Spectral methods

The first eigenfunctions of the Laplace-Beltrami operator

Laplace-Beltrami operator

Page 30: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

30Numerical Geometry of Non-Rigid Shapes Spectral methods

Laplace-Beltrami eigenfunctions

An eigenfunction of the Laplace-Beltrami operator computed on different deformations of the shape, showing the invariance of the

Laplace-Beltrami operator to isometries

Page 31: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

31Numerical Geometry of Non-Rigid Shapes Spectral methods

Laplace-Beltrami spectrum

Eigendecomposition of Laplace-Beltrami operator of a compact shape

gives a discrete set of eigenvalues and eigenfunctions

The eigenvalues and eigenfunctions are isometry invariant

Since the Laplace-Beltrami operator is symmetric, eigenfunctions

form an orthogonal basis for

Page 32: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

32Numerical Geometry of Non-Rigid Shapes Spectral methods

Shape DNA

[Reuter et al. 2006]: use the Laplace-Beltrami spectrum as an

isometry-invariant shape descriptor (“shape DNA”)

Laplace-Beltrami spectrumImages: Reuter et al.

Page 33: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

33Numerical Geometry of Non-Rigid Shapes Spectral methods

Shape DNA

Shape similarity using Laplace-Beltrami spectrum

Images: Reuter et al.

Page 34: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

34Numerical Geometry of Non-Rigid Shapes Spectral methods

Uniqueness of representation

ISOMETRIC SHAPES ARE ISOSPECTRAL

ARE ISOSPECTRAL SHAPES ISOMETRIC?

Page 35: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

35Numerical Geometry of Non-Rigid Shapes Spectral methods

Mark Kac(1914-1984)

Can one hear the shape of the drum?“ ”

More prosaically: can one reconstruct the shape

(up to an isometry) from its Laplace-Beltrami spectrum?

Page 36: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

36Numerical Geometry of Non-Rigid Shapes Spectral methods

To hear the shape

In Chladni’s experiments, the spectrum describes acoustic characteristics

of the plates (“modes” of vibrations)

What can be “heard” from the spectrum:

Total Gaussian curvature

Euler characteristic

Area

Can we “hear” the metric?

Page 37: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

37Numerical Geometry of Non-Rigid Shapes Spectral methods

One cannot hear the shape of the drum!

[Gordon et al. 1991]:

Counter-example of isospectral but not isometric shapes

Page 38: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

38Numerical Geometry of Non-Rigid Shapes Spectral methods

Discrete Laplace-Beltrami operator

Let the surface be sampled at points and represented as a

triangular mesh , and let

Discrete version of the Laplace-Beltrami operator

In matrix notation

where

Page 39: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

39Numerical Geometry of Non-Rigid Shapes Spectral methods

Find the discrete eigenfunctions of the Laplace-Beltrami operator by solving

the generalized eigenvalue problem

Levy 2006Reuter, Biasotti, Giorgi, Patane & Spagnuolo 2009

where is an matrix whose columns are the eigenfunctions

is a diagonal matrix of corresponding eigenvalues

Discrete Laplace-Beltrami eigenfunctions

Page 40: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

40Numerical Geometry of Non-Rigid Shapes Spectral methods

Discrete vs discretized

Continuous surface

Laplace-Beltrami operator

Discretize the surfaceas a graph

Discretize Laplace-Beltrami operator, preserving some

of the continuous properties

Graph Laplacian

Eigendecomposition

Continuous eigenfunctions and eigenvalues

Eigendecomposition

Discretize eigenfunctions

and eigenvalues

“Discrete Laplacian” “Discretized Laplacian” FEM

Page 41: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

41Numerical Geometry of Non-Rigid Shapes Spectral methods

1. Tutte 1963; Zhang 20042. Pinkall 1993; Meyer 2003

Cotangent weight2

sum of areas of triangles sharing vertex

Discrete Laplacian1

(umbrella operator); orvalence of vertex (Tutte)

Discrete Laplace-Beltrami operator

Page 42: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

42Numerical Geometry of Non-Rigid Shapes Spectral methods

Properties of discrete Laplace-Beltrami operator

The discrete analog of the properties of the continuous Laplace-Betrami

operator is

Symmetry:

Locality: if are not directly connected

Euclidean case: if is Euclidean plane,

Positive semidefinite:

In order for the discretization to be consistent,

Convergence: solution of discrete PDE with converges to the

solution

of continuous PDE with for

Page 43: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

43Numerical Geometry of Non-Rigid Shapes Spectral methods

No free lunch

Laplacian matrix we used in Laplacian eigenmaps does not converge to the

continuous Laplace-Beltrami operator

There exist many other approximations of the Laplace-Beltrami operator,

satisfying different properties

[Wardetzky et al. 2007]: there is no discretization of the Laplace-

Beltrami operator satisfying simultaneously all the desired properties

Page 44: 1 Numerical Geometry of Non-Rigid Shapes Spectral methods Spectral methods © Alexander & Michael Bronstein, 2006-2009 © Michael Bronstein, 2010 tosca.cs.technion.ac.il/book

44Numerical Geometry of Non-Rigid Shapes Spectral methods

Finite elements method

Reuter, Biasotti, Giorgi, Patane & Spagnuolo 2009

Eigendecomposition problem in the weak form

for any smooth

Given a finite basis spanning a subspace of

can be expanded as

Write a system of equation

posed as a generalized eigenvalue problem