Data-Driven Shape Analysis --- Joint Shape Matching...

49
Data-Driven Shape Analysis --- Joint Shape Matching I 1 Qi-xing Huang Stanford University

Transcript of Data-Driven Shape Analysis --- Joint Shape Matching...

Page 1: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Data-Driven Shape Analysis--- Joint Shape Matching I

1

Qi-xing HuangStanford University

Page 2: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Shape matching

Affine

Page 3: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Applications

Shape reconstruction Transfer information

Aggregate information Protein docking

Page 4: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Pair-wise matching is unreliable

Blended intrinsic maps[Kim et al. 11]

Learning-based graph matching[Leordeanu et al. 12]

State-of-the-art techniques:

Page 5: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Piece assembly

5

Page 6: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Ambiguous matches

6

Page 7: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Additional data helps

Page 8: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Additional data helpsBlended intrinsic maps[Kim et al. 11]

Composite

Intermediateobject

Page 9: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Cycle-consistency

Consistent

• Maps are consistent along cycles

Page 10: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Cycle-consistency

Inconsistent

• Maps are consistent along cycles

Page 11: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Cycle-consistencyBlended intrinsic maps[Kim et al. 11]

Composite

Inconsistent

Page 12: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Cycle-consistency

Direct

Blended intrinsic maps[Kim et al. 11]

Composite

Consistent

Page 13: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Joint matching formulation

• Input:– Shapes– Pair-wise maps

(existing algorithms)

Page 14: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Joint matching formulation• Input:

– Shapes– Pair-wise maps

(existing algorithms)

• Output:– Cycle-consistent– “Close” to the input maps

NP-complete [Huber 2002]

Page 15: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

• Three existing approaches– Spanning tree based– Inconsistent cycle detection– Spectral techniques

• Convex optimization framework

Outline

Page 16: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Spanning tree based

Automatic Three-dimensional Modeling from Reality, PhD thesis, D. Huber, Robotics Institute,Carnegie Mellon University, 2002

Page 17: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Spanning tree based

Page 18: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Spanning tree based

Issue: A single incorrect match can destroy everything

Page 19: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Detecting inconsistent cycles

Disambiguating visual relations using loop constraints, C. Zach, M. Klopscjotz, and M.POLLEFEYS, CVPR’10

maximize

large for inconsistent cycles

subject to

Page 20: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Spectral techniques

From paths oflength k

The resultingsoft map

Diffusion

Multiplication and aggregation of mapping matrices

An Optimization Approach for Extracting and Encoding Consistent Maps in a Shape Collection, Q.Huang, G. Zhang, L. Gao, S. Hu, A. Bustcher, L. Guibas, SIGGRAPH ASIA’12

Page 21: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

• Compute fuzzy correspondence based on diffusiondistance in graph represented by initialcorrespondences

Spectral techniques

Exploring collections of 3d models using fuzzy correspondences, V. G. Kim, W. Li, N.Mitra, S. Diverdi, and T. Funkhouser, SIGGRAPH’12

Page 22: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Approaches we have discussed

Detecting Inconsistent Cycles[Zach et al. 10, Nguyen et al. 11]

Spectral techniques[Kim et al.12,Pachauri et al.13]

Spanning tree optimization[Huber and Hebert 03]

• Cons:--- Many parameters to set--- Does it converge?--- Run quickly?

Page 23: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

• Three existing approaches– Spanning tree based– Inconsistent cycle detection– Spectral techniques

• Convex optimization framework

Outline

Page 24: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Convex optimization framework

Parameter-free!

Near-optimal!

Efficient!

Page 25: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Basic setting

n objects, each object has m points

G

Page 26: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Matrix representation of maps

S1S2

1

2

3

45

1

2

34

5

Diagonal blocks areidentity matrices

Off diagonal blocks arepermutation matrices

Symmetric

X12 =

266666640 0 0 0 11 0 0 0 00 1 0 0 00 0 1 0 00 0 0 1 0

37777775

X =

266664Im X12 ¢ ¢ ¢ X1nXT12 Im ¢ ¢ ¢ ...... ... . . . X(n¡1);nXT1n

... XT(n¡1);n Im

377775

Page 27: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Cycle-consistency constraint

X º 0

(Positive) semidefiniteness

Xij = XTj1Xi1 X =

264 Im...XTn1

375 h Im ¢ ¢ ¢ Xn1i

Page 28: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Parameterization

X =

Xii = Im; 1 · i · n

X º 0X 2 f0;1gnm

Xij1 = 1;XTij1 = 1; 1 · i < j · n

Page 29: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Parametrizing maps

Xii = Im; 1 · i · n

X =

Xij1 = 1;XTij1 = 1; 1 · i < j · n

X º 0X ¸ 0

Page 30: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Objective function

Xinputij

Xij

L1-norm: P(i;j)2E

kXinputij ¡Xijk1

Page 31: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Convex program

Xii = Im; 1 · i · nsubject to

minimizeP

(i;j)2EkXinputij ¡Xijk1

Xij1 = 1;XTij1 = 1; 1 · i < j · n

X º 0X ¸ 0

ADMM [Boyd et al.11]

Page 32: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Convex program

Xii = Im; 1 · i · nsubject to

minimizeP

(i;j)2EkXinputij ¡Xijk1

Xij1 = 1;XTij1 = 1; 1 · i < j · n

X º 0X ¸ 0

ADMM [Boyd et al.11]

Page 33: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Deterministic guarantee• Exact recovery condition:

#incorrect corres. per point< algebraic-connectivity(G)/4

Page 34: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Complete input graph G• 25% incorrect correspondences• Worst-case scenario

– Two clusters of objects of equal size– Wrong correspondences between objects of different

clusters only (50%)

Page 35: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Randomized settingErdős–Rényi model G(n, pobs, ptrue) : pobs : the probability that two objects connect; ptrue : the probability that a pair-wise map is

correct; Incorrect maps are random permutations;

Theorem: The ground truth maps can berecovered w.h.p if

ptrue > clog2 npnpobs

Page 36: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Phase transitionm = 16

Blue: alwaysrecovers

Red: never recovers

Numerical optimization: ADMM [Wen et al. 10, Boyd et al. 11]

Page 37: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Versus RPCA [Candes et al. 11]

SDP RPCA

X =

264 Im...XT1n

375 h Im ¢ ¢ ¢ X1ni

Page 38: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

CMU hotel

Input SDP RPCA Leordeanu et al. 1264.1% 100% 90.1% 94.8%

Input:102 images (30 points per image)RANSAC [Fisher 81]Each image connects with 10 random images

SDP Running time: 6m19s (3.2GHZ, single core)

Page 39: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

CMU house

Input SDP RPCA Leordeanu et al. 1268.2% 100% 92.2% 99.8%

Input:110 images (30 points per image)RANSAC [Fisher 81]Each image connects with 10 random images

SDP Running time: 7m12s (3.2GHZ, single core)

Page 40: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Constraint set

Xii = Im; 1 · i · n

minimizeP

(i;j)2EkXinputij ¡Xijk1

Xij1 = 1;XTij1 = 1; 1 · i < j · n

X º 0

"m 1T

1 X

#º 0

X ¸ 0

Xii = Im; 1 · i · n

X ¸ 0SDP relaxation of MAP [kumar et al. 09]#Distinctive points

X =

26664Im1 X12 ¢ ¢ ¢ X1nX21 Im2 ¢ ¢ ¢ X2n... ... . . . ...Xn1 ¢ ¢ ¢ ¢ ¢ ¢ Imn

37775

Page 41: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Partial similarity

"m 1T

1 X

#º 0

X ¸ 0

subject to

minimizeP

(i;j)2EkXinputij ¡Xijk1

Xii = Imi; 1 · i · n

Step I: Estimate m (#distinctive points)-- Gap in the spectrum of the input map matrix

(In the same spirit as [Pachauri et al. 13])

Step II:

Page 42: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Random model• Extended model: an universe of m elements:

– For each set Si, each point s is included in Siwith probability pset; pobs : the probability that two objects

connect ptrue : the probability that a pair-wise map

is correct Incorrect maps satisfy

Page 43: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Similar theoretical guarantee• Theorem: The size of the universem and the

ground truth maps can be recovered w.h.p if

ptrue > C1log2 npnpobsp

2set

Page 44: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Chair

SDP Running time: 2m19s(3.2GHZ, single core)

16 imagesClustered SIFT features+ RANSAC (60-120 points

per image)

Input output

Page 45: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Building

Input

Output

SDP Running time: 5m07s(3.2GHZ, single core)

16 imagesClustered SIFT features+ RANSAC (60-120 points

per image)

Page 46: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

3D Benchmark

20 objects, 128 points per object

Armadillo, Fish, Fourleg, Human and Hand

Blended intrinsic maps as input[Kim et al. 11]

Page 47: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Next lecture

Rotations[Wang and Singer’13]

Functional maps[Huang et al. 14]

Page 48: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

Next lecture

= = =

Super-objects

Page 49: Data-Driven Shape Analysis --- Joint Shape Matching Igraphics.stanford.edu/courses/.../slides_peter/...102 images (30 points per image) RANSAC [Fisher 81] Each image connects with

• Automatic Three-dimensional Modeling from Reality, PhD thesis, D. Huber,Robotics Institute, Carnegie Mellon University, 2002

• Reassembling fractured objects by geometric matching. Q. Huang, S. Flory, N.Gelfand, M. Hofer, and H. Pottmann, SIGGRAPH’06

• Disambiguating visual relations using loop constraints, C. Zach, M. Klopscjotz, andM. POLLEFEYS, CVPR’10

• An optimization approach to improving collections of shape maps, A. Nguyen, M.Ben-Chen, K. Welnicka, Y. Ye, and L. Guibas, SGP ’11

• Exploring collections of 3d models using fuzzy correspondences, V. G. Kim, W. Li, N.Mitra, S. Diverdi, and T. Funkhouser, SIGGRAPH’12

• An Optimization Approach for Extracting and Encoding Consistent Maps in a ShapeCollection, Q. Huang, G. Zhang, L. Gao, S. Hu, A. Bustcher, L. Guibas, SIGGRAPHASIA’12

• Consistent Shape Maps via Semidefinite Programming, Q. Huang and L. Guibas,SGP’13

• Matching Partially Similar Objects via Matrix Completion, Y. Chen, L. Guibas and Q.Huang, ICML’14

References