Transcript
Page 1: Geometric Modeling Summer Semester 2012

Geometric Modeling Summer Semester 2012

Dimensionality Reduction, Intrinsic Geometry and Discrete

Differential Operators

Page 2: Geometric Modeling Summer Semester 2012

Dimensionality Reduction

Page 3: Geometric Modeling Summer Semester 2012

Fitting Affine Subspaces

The following problem can be solved exactly:

β€’ Best fitting line to a set of 2D, 3D points

β€’ Best fitting plane to a set of 3D points

β€’ In general: Affine subspace of ℝ𝑑, with dimension 𝑑 β‰€π‘š that best approximates a set of data points 𝐱𝑖 ∈ β„π‘š.

This will lead to the - famous - principle component analysis (PCA).

Page 4: Geometric Modeling Summer Semester 2012

Start: 0-dim Subspaces

Easy Start: The optimal 0-dimensional affine subspace

β€’ Given a set 𝐗 of 𝑛 data points 𝐱𝑖 ∈ β„π‘š, what is the point 𝐱0 with minimum least square error to all data points?

β€’ Answer: just the sample mean (average)...:

x0

𝐱0 = m 𝐗 ≔ 1

𝑛 𝐱𝑖

𝑛

𝑖=1

Page 5: Geometric Modeling Summer Semester 2012

One Dimensional Subspaces...

Next:

β€’ What is the optimal line (1D subspace) that approximates a set of data points 𝐗?

β€’ Two questions:

Optimum origin (point on the line)?

– This is still the average

Optimum direction?

– We will look at that next...

β€’ Parametric line equation:

x0 xi

r

𝐱 𝑑 = 𝐱0 + 𝑑. 𝐫 𝐱0 ∈ β„π‘š, 𝐫 ∈ β„π‘š, 𝐫 = 1

Page 6: Geometric Modeling Summer Semester 2012

Best Fitting Line

Result:

Eigenvalue Problem:

β€’ 𝐫T𝐒𝐫 is a Rayleigh quotient

β€’ Minimizing the energy: maximum quotient

β€’ Solution: eigenvector with largest eigenvalue

𝑑𝑖𝑠𝑑 𝑙𝑖𝑛𝑒, 𝐱𝑖 2= βˆ’π«π“π’π«

𝑛

𝑖=1+ const.

with 𝐒 = π±π‘–βˆ’π±0 π±π‘–βˆ’π±0 T, 𝐫 = 1𝑛

𝑖=1

Page 7: Geometric Modeling Summer Semester 2012

General Case

Fitting a 𝑑-dimensional affine subspace:

β€’ 𝑑 = 1 : line

β€’ 𝑑 = 2 : plane

β€’ 𝑑 = 3 : 3D subspace

β€’ ...

Simple rule:

β€’ Use the 𝑑 eigenvectors with largest eigenvalues from the spectrum of S.

β€’ Gives the (total) least-squares optimal subspace that approximates the data set 𝐗.

Page 8: Geometric Modeling Summer Semester 2012

PCA Maximum Variance Formulation

Alternate Formulation:

β€’ Let 𝐯 ∈ β„π‘š be the 1D subspace (with 𝐯𝐓𝐯 = 1), that maximize the variance of data 𝐗 ∈ β„π‘š.

β€’ Each data point 𝐱𝑖is projected onto a scalar value 𝐯𝐓𝐱𝑖.

β€’ The mean of projected data is 𝐯𝐓𝐱0.

β€’ The variance of the projected data is given by: 1

𝑛 𝐯𝐓𝐱𝑖 βˆ’ 𝐯𝐓𝐱0

2𝑛𝑖=1 = 𝐯𝐓S𝐯 ;

β€’ The problem now reduces to

𝐯⋇ = π’‚π’“π’ˆ π’Žπ’‚π’™ { 𝐯𝐓S𝐯 + πœ† 1 βˆ’ 𝐯𝐓𝐯 }

β€’ Solution:

Eigenvector of S with largest eigenvalue πœ†1.

𝐒 =1

𝑛 π±π‘–βˆ’π±0 π±π‘–βˆ’π±0

T𝑛

𝑖=1

Page 9: Geometric Modeling Summer Semester 2012

Statistical Interpretation

Observation:

β€’πŸ

π’βˆ’πŸπ’ is the covariance matrix of the data 𝐗.

β€’ PCA can be interpreted as fitting a Gaussian distribution and computing the main axes.

x0

11 v

12 v

)(, xΞΌΞ£N

𝛍 = 𝐱0 =1

𝑛 𝐱𝑖

𝑛

𝑖=1

𝚺 = 1

𝑛 βˆ’ 1𝐒 =

1

𝑛 βˆ’ 1 π±π‘–βˆ’π±0 π±π‘–βˆ’π±0

T

𝑛

𝑖=1

π‘πšΊ,𝛍 𝐱 =1

2πœ‹π‘‘2 det 𝚺 1/2

exp βˆ’1

2 𝐱 βˆ’ 𝛍 TπšΊβˆ’1 𝐱 βˆ’ 𝛍

Page 10: Geometric Modeling Summer Semester 2012

Applications

Fitting a line to a point cloud in β„πŸ:

β€’ Sample mean and direction of maximum eigenvalue

Plane Fitting in β„πŸ‘:

β€’ Sample mean and the two directions of maximum eigenvalues

β€’ Smallest eigenvalue

Eigenvector points in normal direction

Aspect ratio (3 / 2) is a measure of β€œflatness” (quality of fit)

x0

(2 / 1) small

(2 / 1) larger

𝐱 𝑑 = 𝐱0 + 𝑑. 𝐯𝟏

Page 11: Geometric Modeling Summer Semester 2012

Applications

Application: Normal estimation in point clouds β€’ Given a set of points 𝐗 ∈ β„πŸ‘ sampled from a smooth

surface.

β€’ We want to estimate Surface Normals.

Algorithm: β€’ For each point, compute the π‘˜-nearest neighbors (π‘˜ = 20 .

β€’ Compute a PCA (average, main axes) of these points.

β€’ Eigenvector with smallest eigenvalue normal direction.

β€’ The other two eigenvectors tangent vectors.

Page 12: Geometric Modeling Summer Semester 2012

Example

points normals

tangential frames

Page 13: Geometric Modeling Summer Semester 2012

Dimensionality Reduction

Notations: β€’ 𝐗 = 𝐱1, … , π±π‘˜ , … , 𝐱𝑛 , π±π‘˜ ∈ β„π‘š

β€’ 𝐑 is a π‘š Γ—π‘š orthogonal matrix with 𝐑𝐓𝐑 = πˆπ’Ž.

Projection: from β„π‘šonto ℝ𝑑 removes π‘šβˆ’ 𝑑 rows of 𝐑𝐓 to obtain 𝐐𝐓

β€’ 𝐘 = 𝐐𝐓𝐗 with 𝐐𝐓𝐐 = πˆπ’….

Reconstruction: of β„π‘š from ℝ𝑑 removes π‘šβˆ’ 𝑑 columns of 𝐑 to obtain 𝐐

β€’ 𝐗 = 𝐐𝐘 with 𝐐𝐓𝐐 = πˆπ’….

det 𝐑 = +1 implies a Rotation matrix.

Page 14: Geometric Modeling Summer Semester 2012

Idea: Projection of higher dimensional data to a lower dimensional

subspace.

β€’ 𝐗 ∈ β„π‘š 𝐘 ∈ ℝ𝑑 where

𝐐𝐓𝐗

𝐐𝐘

β€’ Linear Dimensionality Reduction using PCA computes 𝐐 = π•πˆπ’….

Dimensionality Reduction

𝐛′1

𝐛′2

𝐛′𝑗 𝐛′𝑑

Projection

𝐛1

𝐛2

𝐛𝑖 π›π‘š

𝑑 β‰ͺ π‘š

Reconstruction

*Information is LOST

Page 15: Geometric Modeling Summer Semester 2012

Metric Multi Dimensional Scaling

PCA uses Covariance matrix

β€’ 𝐒 =1

𝑛𝐗𝐗𝐓 assuming centered data (i.e. zero mean).

β€’ The data points are represented in a vector space.

β€’ Dimension of 𝐒 is π‘š Γ—π‘š.

MDS uses Gram Matrix (dot products)

β€’ 𝐆 = 𝐗𝐓𝐗 captures (dis)similarity of data points.

β€’ The data points are not explicitly required.

β€’ Dimension of 𝐆 is 𝑛 Γ— 𝑛.

β€’ Goal is to embed the data in 𝑑-dimensional space such that some metric is preserved.

Page 16: Geometric Modeling Summer Semester 2012

Part III: Intrinsic Geometry and Intrinsic Mappings

Page 17: Geometric Modeling Summer Semester 2012

Scenario

Mapping between Surfaces

β€’ Intrinsic view – only metric tensor

β€’ Ignore isometric deformations

β€’ Applications:

Deformable shape matching

Texture mapping (flat 3D) β€œparametrization”

f S1

S2

Page 18: Geometric Modeling Summer Semester 2012

Differential Geometry Revisited

Page 19: Geometric Modeling Summer Semester 2012

Parametric Patches

𝒖

𝒗 π’š

𝒙

𝒛

Page 20: Geometric Modeling Summer Semester 2012

Parametric Patches

Function 𝑓 𝑒, 𝑣 β†’ ℝ3

β€’ Canonical tangents: πœ•π‘’π‘“ 𝑒, 𝑣 , πœ•π‘£π‘“ 𝑒, 𝑣

β€’ Normal: 𝐧 𝑒, 𝑣 =πœ•π‘’π‘“ 𝑒,𝑣 Γ—πœ•π‘£π‘“ 𝑒,𝑣

πœ•π‘’π‘“ 𝑒,𝑣 Γ—πœ•π‘£π‘“ 𝑒,𝑣

u

v

(u, v)

f(u, v) f

2 P 3

v f (u, v)

u f (u, v)

n (u, v)

Page 21: Geometric Modeling Summer Semester 2012

Fundamental Forms

Fundamental Forms:

β€’ Describe the local parameterized surface.

β€’ Measure...

...distortion of length (first fundamental form)

...surface curvature (second fundamental form)

Page 22: Geometric Modeling Summer Semester 2012

First Fundamental Form

First Fundamental Form

β€’ Also known as metric tensor.

β€’ It can be written as a 2 Γ— 2 symmetric matrix:

𝐈 =πœ•π‘’π‘“πœ•π‘’π‘“ πœ•π‘’π‘“πœ•π‘£π‘“πœ•π‘’π‘“πœ•π‘£π‘“ πœ•π‘£π‘“πœ•π‘£π‘“

=: 𝐸 𝐹𝐹 𝐺

β€’ The matrix is symmetric and positive definite

(regular parametrization, semi-definite otherwise)

β€’ Defines a generalized scalar product that measures

lengths and angles on the surface.

v

u

v f (u,v)

u f (u,v) f(u,v)

Page 23: Geometric Modeling Summer Semester 2012

Second Fundamental Form

Second Fundamental Form

β€’ Also known as shape operator or curvature tensor.

β€’ It can be written as a 2 Γ— 2 symmetric matrix:

𝐈𝐈 =πœ•π‘’π‘’π‘“. 𝐧 πœ•π‘’π‘£π‘“. π§πœ•π‘’π‘£π‘“. 𝐧 πœ•π‘£π‘£π‘“. 𝐧

=: 𝑒 𝑓𝑓 𝑔

Eigen-analysis:

β€’ Eigenvalues of second fundamental form for an orthonormal tangent basis are called principal curvatures ΞΊ1, ΞΊ2.

β€’ Corresponding orthogonal eigenvectors are called principal directions of curvature.

Page 24: Geometric Modeling Summer Semester 2012

β€’ A metric at point 𝑝 is a function 𝑔𝑝: 𝑇𝑝ℳ×𝑇𝑝ℳ→ ℝ such

that:

𝑔𝑝 is Bilinear : 𝑔𝑝 π‘ŽπœΆπ‘ + π‘πœ·π‘, πœΈπ‘ = π‘Žπ‘”π‘ πœΆπ‘, πœΈπ‘ + 𝑏𝑔𝑝 πœ·π‘, πœΈπ‘ and

𝑔𝑝 πœΈπ‘, π‘ŽπœΆπ‘ + π‘πœ·π‘ = π‘Žπ‘”π‘ πœΈπ‘, πœΆπ‘ + 𝑏𝑔𝑝 πœΈπ‘, πœ·π‘

𝑔𝑝 is Symmetric: 𝑔𝑝 πœΆπ‘, πœ·π‘ = 𝑔𝑝 πœ·π‘, πœΆπ‘

𝑔𝑝 is Non-degenerated: πœ·π‘ ↦ 𝑔𝑝 πœΆπ‘, πœ·π‘ , βˆ€πœΆπ‘ β‰  𝟎

How to build a metric

Tangent Space

β€’ For a 𝑑-dimensional manifold β„³, at each point 𝑝 ∈ β„³ there exist a vector space 𝑇𝑝ℳ, called β€œTangent Space”.

β€’ It consist of all tangent vectors to manifold at point 𝑝.

𝑇𝑝ℳ 𝑝

Page 25: Geometric Modeling Summer Semester 2012

How to build a metric

Inner Product Metric

β€’ Two tangent vector at point 𝑝 can be defined as: πœΆπ’‘ = 𝛼1πœ•π‘’π‘“ + 𝛼2πœ•π’—π‘“ and πœ·π’‘ = 𝛽1πœ•π‘’π‘“ + 𝛽2πœ•π’—π‘“

β€’ The Inner product is defined as:

𝑔𝑝 πœΆπ’‘, πœ·π’‘ = πœΆπ’‘, πœ·π’‘ = 𝛼1 𝛼2𝐸 𝐹

𝐹 𝐺

𝛽1𝛽2

It inherently uses the first fundamental form.

β€’ 𝑔𝑝 πœΆπ’‘, πœ·π’‘ is symmetric, bilinear and non-degenerated and hence a metric.

𝑇𝑝ℳ 𝑝

Page 26: Geometric Modeling Summer Semester 2012

Riemannian Manifolds

Riemannian Manifold

β€’ Manifold topology, 𝑑-dimensional

We mostly focus on 2-manifolds, embedded in ℝ3

β€’ Real differentiable manifold.

β€’ Local parametrization: tangent space

β€’ Intrinsic metric (metric tensor everywhere)

Allows to define various geometric notions on manifold:

– Angles

– Lengths of curves

– Areas (or volumes)

– Curvature

– Gradients of functions

– Divergence of vector fields standard metric

non-standard (pos-def.)

Page 27: Geometric Modeling Summer Semester 2012

Riemannian Manifolds

Arclength:

β€’ Let 𝑔 𝑑 = 𝑒, 𝑣 , in an interval [π‘Ž, 𝑏].

β€’ 𝑓 𝑒 𝑑 , 𝑣 𝑑 will trace out a parametric curve in 𝑃.

Arclength of parametric curve in interval [π‘Ž, 𝑏]:

u

v x

y

z

t v

u

𝑏

π‘Ž

Page 28: Geometric Modeling Summer Semester 2012

= π‘‘π‘’πŸπΈ + 2𝑑𝑒 𝑑𝑣 𝐹 + π‘‘π‘£πŸπΊ 𝑑𝑑𝑏

π‘Ž

Riemannian Manifolds

Arclength:

β€’ Let 𝑔 𝑑 = 𝑒, 𝑣 , in an interval [π‘Ž, 𝑏].

β€’ 𝑓 𝑒 𝑑 , 𝑣 𝑑 will trace out a parametric curve in 𝑃.

= π‘‘π‘’πŸπœ•π‘’π‘“. πœ•π‘’π‘“ + 2𝑑𝑒 𝑑𝑣 πœ•π‘’π‘“. πœ•π‘£π‘“ + π‘‘π‘£πŸπœ•π‘£π‘“. πœ•π‘£π‘“ 𝑑𝑑𝑏

π‘Ž

𝑠 = 𝑑

𝑑𝑑𝑓 𝑒 𝑑 , 𝑣 𝑑 𝑑𝑑

𝑏

π‘Ž

= 𝑑𝑒 πœ•π‘’π‘“ + 𝑑𝑣 πœ•π‘£π‘“ 𝑑𝑑

𝑏

π‘Ž

Arclength of parametric curve in interval [π‘Ž, 𝑏]:

= 𝑑𝑒 𝑑𝑣𝐸 𝐹𝐹 𝐺

𝑑𝑒𝑑𝑣

𝑑𝑑𝑏

π‘Ž

Page 29: Geometric Modeling Summer Semester 2012

Riemannian Manifolds

Surface Area:

β€’ Apply integral transformation theorem:

β€’ Using Langrange’s identity:

area 𝑃 = πœ•π‘’π‘“. πœ•π‘’π‘“ πœ•π‘£π‘“. πœ•π‘£π‘“ βˆ’ πœ•π‘’π‘“. πœ•π‘£π‘“ 𝟐 𝑑𝑒 𝑑𝑣

Ξ©

= 𝐸𝐺 βˆ’ 𝐹𝟐 𝑑𝑒 𝑑𝑣Ω

= det𝐸 𝐹𝐹 𝐺

𝑑𝑒 𝑑𝑣Ω

area 𝑃 = πœ•π‘’π‘“ Γ— πœ•π‘£π‘“ 𝑑𝑒 𝑑𝑣Ω

Page 30: Geometric Modeling Summer Semester 2012

Curvature:

β€’ Principle Curvature : Eigenvalues of second fundamental form for an

orthonormal tangent basis.

β€’ Normal Curvature : norm of the projection of the derivative 𝑑𝑻

𝑑𝒔 on

normal plane 𝐧.

β€’ Mean Curvature :

β€’ Gaussian Curvature :

Riemannian Manifolds

ΞΊ1, ΞΊ2

κ𝑁 = ΞΊ 𝐧 = 𝐧𝑇𝑒 𝑓𝑓 𝑔

𝐧 with π‘šπ‘Žπ‘₯ ΞΊ 𝐧 = ΞΊ1 and π‘šπ‘–π‘› ΞΊ 𝐧 = ΞΊ2

𝐻 =1

2 ΞΊ1 + ΞΊ2 = det

𝑒 𝑓𝑓 𝑔

𝐾 = κ1κ2 =1

2tr

𝑒 𝑓𝑓 𝑔

Source: Wikipedia

Page 31: Geometric Modeling Summer Semester 2012

Riemannian Manifolds

Curvature:

β€’ Geodesic Curvature : norm of the projection of the derivative 𝑑𝑻

𝑑𝒔 on the

tangent plane. It allows to distinguish inherent curvature of the curve in the (u,v) space from the curvature induced

by mapping 𝒇 in π“œ.

β€’ Total Curvature :

β€’ For circles : κ𝑁 = 1.

β€’ For Great circles : κ𝑇 = κ𝑁 = 1 , ΞΊg = 0 i.e. locally Flat e.g. Earth

β€’ For Small circles of radius π‘Ÿ : κ𝑔 = 1 βˆ’ π‘ŸπŸ π‘Ÿ

κ𝑇 = ΞΊπ‘πŸ + κ𝑔

𝟐

v

u

Page 32: Geometric Modeling Summer Semester 2012

Riemannian Manifolds

35

Geodesics:

β€’ Curves on a surface which minimize length between the end points are called Geodesics.

β€’ A path minimizing energy is just a geodesic parameterized by arc length.

β€’ A curve on a surface with zero geodesic curvature is a geodesic.

𝑠 = 𝑑𝑒 𝑑𝑣𝐸 𝐹𝐹 𝐺

𝑑𝑒𝑑𝑣

𝑑𝑑𝑏

π‘Ž

π‘’π‘›π‘’π‘Ÿπ‘”π‘¦ = 𝑑𝑒 𝑑𝑣𝐸 𝐹𝐹 𝐺

𝑑𝑒𝑑𝑣

𝑑𝑑𝑏

π‘Ž

Page 33: Geometric Modeling Summer Semester 2012

Types of Mappings

Given: Riemannian Manifolds β„³1,β„³2

Consider: Functions πœ“:β„³1 β†’β„³2

Important types of mappings:

β€’ Isometric: preserves distances, angles and area

β€’ Conformal: preserves (only) angles

β€’ Equi-areal (incompressible): preserves area

Page 34: Geometric Modeling Summer Semester 2012

Isometric Mapping

Definition

β€’ An mapping πœ“ between two surface patch β„³1and β„³2 is an isometric mapping if it preserves distance on them.

β€’ An isometric mapping is symmetric i.e. πœ“βˆ’1is also an isometry.

β„³1

β„³2

πœ“:β„³1 β†’β„³2

πœ“βˆ’1:β„³2 β†’β„³1

Page 35: Geometric Modeling Summer Semester 2012

Isometric Mapping

Isometric surfaces have same parametric domain

β€’ If πœ“:β„³1 β†’β„³2 is an isometric mapping then both surfaces have same intrinsic parameterization. i.e.

𝑓1βˆ’1 β„³1 = 𝑓2

βˆ’1 β„³2 = Ξ© 𝑒, 𝑣

𝒖

𝒗 Ξ©

β„³1 β„³2

πœ“:β„³1 β†’β„³2

𝑓2: Ξ© β†’ β„³2

𝑓1: Ξ© β†’ β„³1

Page 36: Geometric Modeling Summer Semester 2012

Isometric Mapping

Surfcap: University of Surry

Page 37: Geometric Modeling Summer Semester 2012

Isometric Mapping

To solve Isometry β€’ Either find the explicit parameterization 𝑓1 and 𝑓2 to recover the implicit domain.

β€’ OR find an intrinsic mapping 𝑔 of β„³1 and β„³2 to an isometry invariant space 𝔗.

β„³1 β„³2

𝐛1

𝐛2

𝐛𝑖 𝐛𝑑

𝑔:β„³1 β†’ 𝔗 𝑔:β„³2 β†’ 𝔗

𝔗 ∈ ℝ𝑑

Page 38: Geometric Modeling Summer Semester 2012

Isometric Mapping

Property of Isometry Invariant Space β€’ Geodesic distance between any pair of points in β„³1 and their images in β„³2

should be equivalent to Euclidean distance between their images in 𝔗.

β„³1 β„³2

𝐛1

𝐛2

𝐛𝑖 𝐛𝑑

𝑔:β„³1 β†’ 𝔗 𝑔:β„³2 β†’ 𝔗

𝔗 ∈ ℝ𝑑

Page 39: Geometric Modeling Summer Semester 2012

Spectral Graph Methods for 3D Shape Analysis

Page 40: Geometric Modeling Summer Semester 2012

Discrete Manifold Representation

π’š

𝒙

𝒛

Surface Patches in Practice β€’ Most existing shape acquisition methods often yield noisy point

clouds instead of a nice parametric surface representation.

β€’ Finding a parameterization of complex real world object is practically infeasible.

𝒙

π’š

𝒛

Page 41: Geometric Modeling Summer Semester 2012

Represent surface patch with an underlying locally connected graph structure

β€’ Distances are assumed to be locally Euclidean.

β€’ In practice we assume that Isometric transforms keep the topology (i.e. the connectivity) of underlying graph intact.

Graph Based Representation

π’š

𝒙

𝒛

Page 42: Geometric Modeling Summer Semester 2012

Graph Based Representation

Popular Representation

β€’ Mesh representation of 3D object is traditionally popular.

β€’ It enables a direct application of Graph based tools for shape analysis tasks.

Page 43: Geometric Modeling Summer Semester 2012

Spectral Graph Theory (SGT)

Spectral Graph Theory analyze properties of graphs via eigenvalues and

eigenvectors of various graph matrices.

β€’ Builds on well studied algebraic properties of graph matrices.

β€’ Provides a natural link between differential operators on continuous and discrete manifold representation.

β€’ Allows to Embed a discrete manifold (graph) into an isometry invariant space.

β€’ Provide intrinsic Spectral metric for isometry invariant distance computation.

References: β€’ F. R. K. Chung. Spectral Graph Theory. 1997.

β€’ M. Belkin and P. Niyogi. Laplacian Eigenmaps for Dimensionality Reduction and Data Representation. Neural Computation, 15, 1373{1396 (2003).

β€’ U. von Luxburg. A Tutorial on Spectral Clustering. Statistics and Computing, 17(4), 395{416 (2007).*

β€’ Software: http://open-specmatch.gforge.inria.fr/index.php.

Page 44: Geometric Modeling Summer Semester 2012

Spectral Graph Theory (SGT)

π’š

𝒙

𝒛 𝐯1

𝐯2

𝐯𝑖 𝐯𝑑

SVD of Graph Matrices

to obtain [𝐯1, … , 𝐯𝑑] Eigenvectors

Input ℝ3 space Output ℝ𝑑 space

Isometry Invariant Space

Spectral Embedding

* Typically 𝑑 ≫ 3, i.e. we can now embed the surface in a higher dimensional space.

Geodesic distances in the input space ℝ3 can be approximated by Euclidean distances

in the new space ℝ𝑑 spanned by eigenvectors of certain Graph matrices.

Page 45: Geometric Modeling Summer Semester 2012

Idea: Projection of higher dimensional data to a lower dimensional

subspace.

β€’ 𝐗 ∈ β„π‘š 𝐘 ∈ ℝ𝑑 where

𝐐𝐓𝐗

𝐐𝐘

β€’ Linear Dimensionality Reduction using PCA computes 𝐐 = π•πˆπ’….

Recall Dimensionality Reduction (DR)

𝐛′1

𝐛′2

𝐛′𝑗 𝐛′𝑑

Projection

𝐛1

𝐛2

𝐛𝑖 π›π‘š

𝑑 β‰ͺ π‘š

Reconstruction

*Information is LOST

Page 46: Geometric Modeling Summer Semester 2012

In Spectral Graph Theory β€’ We consider eigen-decomposition of various Graph matrices of size (𝑛 Γ— 𝑛)

where 𝑛 is the number of data points.

β€’ Matrices here are typically sparse with very few entries as non-zero.

β€’ We minimize a different criteria that preserve geodesic distances on the surface patch.

Difference between SGT and DR

In Dimensionality Reduction β€’ In linear DR (PCA) we consider eigendecomposition of Scatter/Covariance

matrix of size (π‘š Γ—π‘š), where π‘š is the original dimension of input data.

β€’ Matrices here are typically full with all entries as non-zero.

β€’ We find a least square fitting of the data.

Page 47: Geometric Modeling Summer Semester 2012

Graph Matrices

Basic Graph Notations β€’ Consider a simple graph with no loops and multiple edges 𝒒 = 𝒱, β„° :

𝒱 = 𝓋1, … , 𝓋𝑛 as vertex set with its cardinality i.e. (number of vertices) 𝒱 = 𝑛.

β„° = 𝑒𝑖,𝑗 as edge set with each element 𝑒𝑖,𝑗 representing an edge between two adjacent

vertex 𝓋𝑗 ∽ 𝓋𝑖 .

Adjacency and Degree Matrix β€’ Adjacency matrix of graph 𝒒 is a symmetric matrix :

𝐀 = π‘Žπ‘–,𝑗 𝑛×𝑛 with π‘Žπ‘–,𝑗 =

πœ”π‘–,𝑗 if 𝑒𝑖,𝑗 ∈ β„°

0 if 𝑒𝑖,𝑗 βˆ‰ β„°

0 if 𝑖 = 𝑗

πœ”π‘–,𝑗 is a weight assigned to each edge and in case of unweighted graph πœ”π‘–,𝑗 = 1.

β€’ Degree matrix of graph 𝒒 is :

𝐃 = [π‘‘π‘–π‘Žπ‘” 𝒹𝑖 ]𝑛×𝑛 where 𝒹𝑖 = πœ”π‘–,π‘—βˆ€π“‹π‘—~𝓋𝑖.

A graph 𝒒 is connected if 𝒹𝑖 > 0, βˆ€π‘– ∈ 1: 𝑛

A graph 𝒒 is regular if 𝒹𝑖 = 𝒹𝑗 , βˆ€π‘– βˆ€π‘— ∈ {1: 𝑛}

𝓋1 𝓋2

𝓋3

𝓋4 𝓋5

𝑒1,5

A graph with 5 vertices and 6 edges.

𝐀 =

0 0 1

0 0 1

1 1 0

0 0 1

1 0 1

0 1 0 0 1 1 0 1 1 0

, 𝐃 =

2 0 0

0 1 0

0 0 4

0 0 0

0 0 0

0 0 0 0 0 0 2 0 0 3

Page 48: Geometric Modeling Summer Semester 2012

β€’ Eigen-decomposition of Adjacency matrix 𝐀 yields 𝑛 smooth eigenvectors that can be seen as discrete functions defined on graph vertices.

𝐀 = π•πš²π•π‘‡ with 𝐕 = [𝐯1, … , 𝐯𝑛] as matrix of eigenvectors.

Hence 𝐯𝑖 = 𝑓𝑖 𝓋1 , … , 𝑓𝑖 𝓋𝑛 𝑻= 𝑣1

𝑖 , … , 𝑣𝑛𝑖 𝑻

Discrete Functions on Graph

Definition β€’ Let 𝑓 be a smooth real valued function on graph 𝒒 such that 𝑓:𝒱 β†’ ℝ.

It assign a real number to each node of the graph.

A discrete vector representation of a continuous function 𝑓 is written as 𝒇 ∈ ℝ𝑛 where 𝒇 = 𝑓 𝓋1 , … , 𝑓 𝓋𝑛

𝑻.

𝑓 𝓋1 𝑓 𝓋2

𝑓 𝓋3

𝑓 𝓋4 𝑓 𝓋5

𝑓𝑖 𝓋1 = 𝑣1𝑖 𝑓𝑖 𝓋2 = 𝑣2

𝑖

𝑓𝑖 𝓋5 = 𝑣5𝑖

𝑓𝑖 𝓋4 = 𝑣4𝑖

𝑓𝑖 𝓋3 = 𝑣3𝑖

Page 49: Geometric Modeling Summer Semester 2012

Graph Matrix as Discrete Operator

Adjacency Matrix as an Operator β€’ Adjacency matrix 𝐀 can be viewed as an operator.

π’ˆ = 𝐀𝒇 where π’ˆ 𝓋𝑖 = 𝑓 𝓋𝑗 βˆ€π“‹π‘—~𝓋𝑖

β€’ In quadratic form we can write.

𝒇𝑇𝐀𝒇 = 𝑓 𝓋𝑖 𝑓 𝓋𝑗 𝑒𝑖,𝑗

𝑔 𝓋1𝑔 𝓋2 𝑔 𝓋3 𝑔 𝓋4 𝑔 𝓋5

= π’ˆ = 𝐀𝒇 =

0 0 1

0 0 1

1 1 0

0 0 1

1 0 1

0 1 0 0 1 1 0 1 1 0

𝑓 𝓋1 𝑓 𝓋2 𝑓 𝓋3 𝑓 𝓋4 𝑓 𝓋5

=

𝑓 𝓋3 + 𝑓 𝓋5 𝑓 𝓋3

𝑓 𝓋1 + 𝑓 𝓋2 + 𝑓 𝓋4 + 𝑓 𝓋5 𝑓 𝓋3 + 𝑓 𝓋5

𝑓 𝓋1 + 𝑓 𝓋3 + 𝑓 𝓋4

𝑓 𝓋1 𝑓 𝓋2

𝑓 𝓋3

𝑓 𝓋4 𝑓 𝓋5 𝑔 𝓋4 = 𝑓 𝓋3 + 𝑓 𝓋5

𝑔 𝓋2 = 𝑓 𝓋3

𝑔 𝓋2 = 𝑓 𝓋1 + 𝑓 𝓋2 + 𝑓 𝓋4 + 𝑓 𝓋5

Page 50: Geometric Modeling Summer Semester 2012

Discrete Laplace Operator

Laplacian Matrix β€’ Laplacian matrix 𝐋 of graph 𝒒 is a 𝑛 Γ— 𝑛 symmetric matrix :

β€’ This matrix can also be viewed as an operator :

π’ˆ = 𝐋𝒇 where π’ˆ 𝓋𝑖 = 𝑓 𝓋𝑖 βˆ’ 𝑓 𝓋𝑗 βˆ€π“‹π‘—~𝓋𝑖

β€’ In quadratic form we can write:

𝒇𝑇𝐋𝒇 = 𝑓 𝓋𝑖 βˆ’ 𝑓 𝓋𝑗 2

βˆ€π“‹π‘—~𝓋𝑖

𝐋 = 𝐃 βˆ’ 𝐀

𝑓 𝓋1 𝑓 𝓋2

𝑓 𝓋3

𝑓 𝓋4 𝑓 𝓋5 𝑔 𝓋2 = 𝑓 𝓋3 + 𝑓 𝓋5 βˆ’ 2𝑓 𝓋2

Page 51: Geometric Modeling Summer Semester 2012

Continuous V/s Discrete Laplace

Page 52: Geometric Modeling Summer Semester 2012

Local Parametrization

55

Page 53: Geometric Modeling Summer Semester 2012

Continuous V/s Discrete Laplace

𝛻𝑓 𝑝 =πœ•

πœ•π‘’π‘“ 𝑝 +

πœ•

πœ•π‘£π‘“ 𝑝 𝛻𝑓 𝓋𝑖 = 𝑓 𝓋𝑖 βˆ’ 𝑓 𝓋𝑗

Derivative vector in Tangent Space Directional Derivative w.r.t. edge 𝑒𝑖,𝑗

βˆ†π‘“ 𝑝 = div 𝛻𝑓 𝑝 = 𝛻. 𝛻𝑓 𝑝

βˆ†π‘“ 𝑝 =πœ•2

πœ•π‘’2𝑓 𝑝 +

πœ•2

πœ•π‘£2𝑓 𝑝

Laplace operator computed at 𝑝

Laplace operator computed at 𝓋𝑖

βˆ†π‘“ 𝓋𝑖 = div 𝛻𝑓 𝓋𝑖 = 𝛻𝑇𝛻𝑓 𝓋𝑖

𝐋𝑓 𝓋𝑖 = 𝑓 𝓋𝑖 βˆ’ 𝑓 𝓋𝑗 βˆ€π‘— ~ 𝑖

Page 54: Geometric Modeling Summer Semester 2012

Discrete Laplace Operator

Laplacian Operator

β€’ Minimization of quadratic form 𝒇𝑇𝐋𝒇 == 𝑓 𝓋𝑖 βˆ’ 𝑓 𝓋𝑗 2

βˆ€π“‹π‘—~𝓋𝑖over 𝒇

yield a smooth function that maps neighboring vertices of 𝒒 together.

Hence it is desired that 𝑓 𝓋𝑖 and 𝑓 𝓋𝑗 are mapped closer on the real

line.

β€’ One important consequence of this is that if a graph is not regular (i.e. not uniformly connected) then a set of stongly connected vertices will be mapped closer as compare to set of weakly connected vertices.

ℝ

Page 55: Geometric Modeling Summer Semester 2012

Laplacian Eigenvectors

Laplacian Eigenvectors β€’ Minimization of quadratic form 𝒇𝑇𝐋𝒇 over 𝒇 can be written as Rayleigh

quotient :

β€’ The solution of minimization is a family of smooth orthonormal functions i.e.

eigen-functions of 𝐋 matrix corresponding to increasing eigenvalues.

β€’ 𝐋𝐕 = πš²π• with 𝐕 = [𝐯1, … , 𝐯𝑛] and 𝚲 = 𝐝𝐒𝐚𝐠 πœ†1, … , πœ†π‘› such that

0 = πœ†1 < πœ†2 ≀ πœ†3… ≀ πœ†π‘›.

β€’ π‹πŸ = 𝟎, πœ†1 = 0 (If graph is connected). Trivial solution as constant vector.

β€’ 𝐋𝐯2 = πœ†2𝐯2 is called the Fiedler vector.

β€’ βˆ€π‘– ∈ {2: 𝑛}, π―π’ŠT𝟏 = 𝟎 by orthonormal property of eigenvectors.

β€’ Hence, 𝐯𝑖 𝑗 𝑗=1:𝑛 = 0.

min𝒇

𝒇𝑇𝐋𝒇

𝒇𝑇𝒇

Page 56: Geometric Modeling Summer Semester 2012

Laplacian Eigenvectors

𝐯𝟐 π―πŸ‘

π―πŸ’

π―πŸ–

Sharma et. al. Symp. on Manifold Learning 2009

Page 57: Geometric Modeling Summer Semester 2012

Types of Laplace Discretization

Binary Weighting (Non Geometric) β€’ Weights of adjacency matrix are set to 0 or 1, i.e. all edges are

equally weighted. Also known as Umbrella operator.

Gaussian Weighting β€’ Weights of adjacency matrix are set to 𝒩μ,Οƒ βˆ’Euclid 𝓋𝑖 , 𝓋𝑗 ,

i.e. edges with small length are weighted more than the larger once.

Cotangent Weighting β€’ Weights of adjacency matrix are computed in terms of

cotangent of angles of triangle in the triangulated mesh, i.e. areas with higher curvature are weighted more.

π’ˆ = 𝐋𝒇 where π’ˆ 𝓋𝑖 = πœ”π‘–π‘— 𝑓 𝓋𝑖 βˆ’ 𝑓 𝓋𝑗 βˆ€π“‹π‘—~𝓋𝑖

Discrete Laplace operators: No free lunch, M. Wardetzky, S. Mathur, F. KΓ€lberer and E. Grinspun, In SGP 2007

Page 58: Geometric Modeling Summer Semester 2012

Laplacian Embedding

Page 59: Geometric Modeling Summer Semester 2012

Spectral Metric

Distance computation on surface β€’ Given a 3D shape represented as 𝐗 ∈ ℝ3 and its 𝑑-dimensional

embedding as 𝐘 = [𝐯2, … , 𝐯𝑑+1]T.

β€’ Each point 𝐱𝑖 ∈ 𝐗 is represented as π’šπ’Š = 𝐯2 𝑖 , … , 𝐯𝑑+2 𝑖 T.

β€’ Geodesic 𝐱𝑖, 𝐱𝑗 β‰ˆ π’šπ’Š βˆ’ π’šπ’‹ = π―π‘˜ 𝑖 βˆ’ π―π‘˜ 𝑗 2𝑑+1π‘˜=2 .

π’šπ’Š βˆ’ π’šπ’‹

Geodesic 𝐱𝑖, 𝐱𝑗

Page 60: Geometric Modeling Summer Semester 2012

Spectral Matching

Mateus et. al. CVPR 2008

Page 61: Geometric Modeling Summer Semester 2012

Questions?


Top Related