69
Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Lecture 14: Shape Google: Rigid ShapeStatistics

COMPSCI/MATH 290-04

Chris Tralie, Duke University

3/1/2016

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 2: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Announcements

B Group Assignment 1 Full Submission Due Tomorrow(Wednesday) 11:55 PM

B Rank Top 3 Final Project Choices By Friday 3/5 (Groups of3-4)

B Attendance Policy ClarificationB Midterm Next Thursday 3/10

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 3: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Table of Contents

I Shape Statistics / Algorithms

B Comparing Shape Statistics

B Classification / Performance Evaluation

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 4: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Random Sampling By Area

Goal: Given a shape, return similar shapes in a database

Tralie 2010

B Focus on point clouds

B Focus on shapes similar under rigid motion

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 5: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Random Sampling By Area

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 6: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Centroid Centering / RMS Scaling

For a point cloud {~xi}Ni=1

B Subtract off centroidB Root mean square scale. Want√√√√ 1

N

N∑i=1

||~xi ||2 = 1

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 7: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Matching Criteria

B Concise To StoreB Quick to computeB Efficient to matchB DiscerningB Noise tolerantB Rotation Invariant

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 8: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 9: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 10: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 11: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 12: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 13: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 14: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 15: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 16: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 17: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

B Quick To Compute

B Concise To StoreB Rotation InvariantB Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 18: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

B Quick To Compute

B Concise To StoreB Rotation InvariantB Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 19: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

B Quick To ComputeB Concise To Store

B Rotation InvariantB Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 20: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

B Quick To ComputeB Concise To Store

B Rotation InvariantB Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 21: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

B Quick To ComputeB Concise To StoreB Rotation Invariant

B Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 22: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

B Quick To ComputeB Concise To StoreB Rotation Invariant

B Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 23: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

B Quick To ComputeB Concise To StoreB Rotation InvariantB Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 24: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

B Quick To ComputeB Concise To StoreB Rotation InvariantB Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 25: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells

What can’t it tell apart?SHOW VIDEO

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 26: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells And Sectors

SHOW VIDEO

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 27: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells And Sectors

Still Rotation Invariant?

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 28: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Shape Histogram: Shells And Sectors

B Sort sectors within each shellB Record PCA eigenvalues within each shell

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 29: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Spin Images

Johnson/Herbert 1999, Figure Huang 2010COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 30: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Spin Images: Rubber Duck

Johnson/Herbert 1999

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 31: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Spin Images

B Quick To Compute

B Concise To Store

(Can compress images)

B Rotation Invariant (Careful with principal axis stability)B Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 32: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Spin Images

B Quick To Compute

B Concise To Store

(Can compress images)

B Rotation Invariant (Careful with principal axis stability)B Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 33: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Spin Images

B Quick To ComputeB Concise To Store

(Can compress images)B Rotation Invariant (Careful with principal axis stability)B Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 34: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Spin Images

B Quick To ComputeB Concise To Store (Can compress images)

B Rotation Invariant (Careful with principal axis stability)B Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 35: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Spin Images

B Quick To ComputeB Concise To Store (Can compress images)B Rotation Invariant

(Careful with principal axis stability)B Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 36: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Spin Images

B Quick To ComputeB Concise To Store (Can compress images)B Rotation Invariant (Careful with principal axis stability)

B Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 37: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Spin Images

B Quick To ComputeB Concise To Store (Can compress images)B Rotation Invariant (Careful with principal axis stability)B Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 38: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Spin Images

B Quick To ComputeB Concise To Store (Can compress images)B Rotation Invariant (Careful with principal axis stability)B Discerning

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 39: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

D2: Distance Histograms

Osada 2003, Figure from Huang 2010

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 40: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

D2: Primitive Examples

Osada 2003

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 41: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

D2: Real Examples

Osada 2003COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 42: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

D1: Randomly Sample Points

Osada 2003COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 43: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

D3: Randomly Sample Areas

Osada 2003COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 44: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

D4: Randomly Sample Volumes

Osada 2003

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 45: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

A3: Randomly Sample Angles

Osada 2003

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 46: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 47: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 48: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 49: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

B Efficient To Compute / Concise To Store

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 50: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

B Efficient To Compute / Concise To Store

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 51: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

B Efficient To Compute / Concise To Store

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 52: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

B Discerning

(Only fully describes convex objects)

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 53: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

B Discerning (Only fully describes convex objects)

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 54: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

B Rotation Invariant

(Rotate To Align With PCA Axes)

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 55: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

B Rotation Invariant (Rotate To Align With PCA Axes)

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 56: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

B Robust To Noise?

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 57: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Extended Gaussian Image

B Not Robust To Noise!

Funkhouser 2004

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 58: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Table of Contents

B Shape Statistics / Algorithms

I Comparing Shape Statistics

B Classification / Performance Evaluation

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 59: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Normalize Histograms By Mass

h′[i] =h[i]∑N

k=1 h[k ]

In other words, all bins should sum to 1

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 60: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Histogram Euclidean Distance

For histograms h1 and h2

dE(h1,h2) =

√√√√ N∑i=1

(h1[i]− h2[i])2

Just thinking of h1 and h2 as high dimensional Euclideanvectors! Each histogram bin is a dimension

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 61: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Histogram Cosine Distance

dC(h1,h2) = cos−1

(~h1 · ~h2

|| ~h1|||| ~h2||

)

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 62: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Euclidean Distance Shortcomings

0 5 10 15 20 250

0.1

0.2

0.3

0.4

0.5

0.6

0.7Euclidean Distance Fail

Histogram 1Histogram 2Histogram 3

They all have the same distance!

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 63: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Euclidean Distance Shortcomings

0 5 10 15 20 250

0.1

0.2

0.3

0.4

0.5

0.6

0.7Earth Mover's Distance Illustration

Histogram 1Histogram 2

Move earth from blue to red

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 64: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Earth Mover’s Distance

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 65: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Chi Squared Distance

dχ(h1,h2) =12

N∑i=1

(h1[i]− h2[i])2

h1[i] + h2[i]

Exclude values for which h1[i] = h2[i] = 0

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 66: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Table of Contents

B Shape Statistics / Algorithms

B Comparing Shape Statistics

I Classification / Performance Evaluation

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 67: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Evaluation Strategy

Do leave one out technique

Use each item as test item in turn, compare to database

I Summarize evaluation statistics over entire database byaveraging them

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 68: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Precision / Recall

Rusinkiewiz/Funkhouser 2009COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics

Page 69: Lecture 14: Shape Google: Rigid Shape Statistics · Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH 290-04 Chris Tralie, Duke University 3/1/2016 COMPSCI/MATH 290-04

Other Evaluation Metrics

B Average Precision (Area Under Precision/Recall Curve)B Mean Reciprocal Rank (1/rank of first correct item)B Median Reciprocal Rank

1 is perfect score

COMPSCI/MATH 290-04 Lecture 14: Shape Google: Rigid Shape Statistics