Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH - - PowerPoint PPT Presentation

lecture 14 shape google rigid shape statistics
SMART_READER_LITE
LIVE PREVIEW

Lecture 14: Shape Google: Rigid Shape Statistics COMPSCI/MATH - - PowerPoint PPT Presentation

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 Announcements Group Assignment 1 Full Submission Due Tomorrow


slide-1
SLIDE 1

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

slide-2
SLIDE 2

Announcements

⊲ Group Assignment 1 Full Submission Due Tomorrow (Wednesday) 11:55 PM ⊲ Rank Top 3 Final Project Choices By Friday 3/5 (Groups of 3-4) ⊲ Attendance Policy Clarification ⊲ Midterm Next Thursday 3/10

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

slide-3
SLIDE 3

Table of Contents

◮ Shape Statistics / Algorithms ⊲ Comparing Shape Statistics ⊲ Classification / Performance Evaluation

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

slide-4
SLIDE 4

Random Sampling By Area

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

Tralie 2010 ⊲ Focus on point clouds ⊲ Focus on shapes similar under rigid motion

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

slide-5
SLIDE 5

Random Sampling By Area

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

slide-6
SLIDE 6

Centroid Centering / RMS Scaling

For a point cloud { xi}N

i=1

⊲ Subtract off centroid ⊲ Root mean square scale. Want

  • 1

N

N

  • i=1

|| xi||2 = 1

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

slide-7
SLIDE 7

Shape Matching Criteria

⊲ Concise To Store ⊲ Quick to compute ⊲ Efficient to match ⊲ Discerning ⊲ Noise tolerant ⊲ Rotation Invariant

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

slide-8
SLIDE 8

Shape Histogram: Shells

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

slide-9
SLIDE 9

Shape Histogram: Shells

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

slide-10
SLIDE 10

Shape Histogram: Shells

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

slide-11
SLIDE 11

Shape Histogram: Shells

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

slide-12
SLIDE 12

Shape Histogram: Shells

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

slide-13
SLIDE 13

Shape Histogram: Shells

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

slide-14
SLIDE 14

Shape Histogram: Shells

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

slide-15
SLIDE 15

Shape Histogram: Shells

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

slide-16
SLIDE 16

Shape Histogram: Shells

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

slide-17
SLIDE 17

Shape Histogram: Shells

⊲ Quick To Compute

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

slide-18
SLIDE 18

Shape Histogram: Shells

⊲ Quick To Compute

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

slide-19
SLIDE 19

Shape Histogram: Shells

⊲ Quick To Compute ⊲ Concise To Store

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

slide-20
SLIDE 20

Shape Histogram: Shells

⊲ Quick To Compute ⊲ Concise To Store

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

slide-21
SLIDE 21

Shape Histogram: Shells

⊲ Quick To Compute ⊲ Concise To Store ⊲ Rotation Invariant

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

slide-22
SLIDE 22

Shape Histogram: Shells

⊲ Quick To Compute ⊲ Concise To Store ⊲ Rotation Invariant

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

slide-23
SLIDE 23

Shape Histogram: Shells

⊲ Quick To Compute ⊲ Concise To Store ⊲ Rotation Invariant ⊲ Discerning

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

slide-24
SLIDE 24

Shape Histogram: Shells

⊲ Quick To Compute ⊲ Concise To Store ⊲ Rotation Invariant ⊲ Discerning

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

slide-25
SLIDE 25

Shape Histogram: Shells

What can’t it tell apart? SHOW VIDEO

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

slide-26
SLIDE 26

Shape Histogram: Shells And Sectors

SHOW VIDEO

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

slide-27
SLIDE 27

Shape Histogram: Shells And Sectors

Still Rotation Invariant?

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

slide-28
SLIDE 28

Shape Histogram: Shells And Sectors

⊲ Sort sectors within each shell ⊲ Record PCA eigenvalues within each shell

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

slide-29
SLIDE 29

Spin Images

Johnson/Herbert 1999, Figure Huang 2010

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

slide-30
SLIDE 30

Spin Images: Rubber Duck

Johnson/Herbert 1999

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

slide-31
SLIDE 31

Spin Images

⊲ Quick To Compute

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

slide-32
SLIDE 32

Spin Images

⊲ Quick To Compute

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

slide-33
SLIDE 33

Spin Images

⊲ Quick To Compute ⊲ Concise To Store

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

slide-34
SLIDE 34

Spin Images

⊲ Quick To Compute ⊲ Concise To Store (Can compress images)

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

slide-35
SLIDE 35

Spin Images

⊲ Quick To Compute ⊲ Concise To Store (Can compress images) ⊲ Rotation Invariant

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

slide-36
SLIDE 36

Spin Images

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

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

slide-37
SLIDE 37

Spin Images

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

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

slide-38
SLIDE 38

Spin Images

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

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

slide-39
SLIDE 39

D2: Distance Histograms

Osada 2003, Figure from Huang 2010

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

slide-40
SLIDE 40

D2: Primitive Examples

Osada 2003

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

slide-41
SLIDE 41

D2: Real Examples

Osada 2003

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

slide-42
SLIDE 42

D1: Randomly Sample Points

Osada 2003

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

slide-43
SLIDE 43

D3: Randomly Sample Areas

Osada 2003

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

slide-44
SLIDE 44

D4: Randomly Sample Volumes

Osada 2003

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

slide-45
SLIDE 45

A3: Randomly Sample Angles

Osada 2003

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

slide-46
SLIDE 46

Extended Gaussian Image

Funkhouser 2004

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

slide-47
SLIDE 47

Extended Gaussian Image

Funkhouser 2004

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

slide-48
SLIDE 48

Extended Gaussian Image

Funkhouser 2004

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

slide-49
SLIDE 49

Extended Gaussian Image

Funkhouser 2004

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

slide-50
SLIDE 50

Extended Gaussian Image

⊲ Efficient To Compute / Concise To Store

Funkhouser 2004

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

slide-51
SLIDE 51

Extended Gaussian Image

⊲ Efficient To Compute / Concise To Store

Funkhouser 2004

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

slide-52
SLIDE 52

Extended Gaussian Image

⊲ Discerning

Funkhouser 2004

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

slide-53
SLIDE 53

Extended Gaussian Image

⊲ Discerning (Only fully describes convex objects)

Funkhouser 2004

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

slide-54
SLIDE 54

Extended Gaussian Image

⊲ Rotation Invariant

Funkhouser 2004

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

slide-55
SLIDE 55

Extended Gaussian Image

⊲ Rotation Invariant (Rotate To Align With PCA Axes)

Funkhouser 2004

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

slide-56
SLIDE 56

Extended Gaussian Image

⊲ Robust To Noise?

Funkhouser 2004

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

slide-57
SLIDE 57

Extended Gaussian Image

⊲ Not Robust To Noise!

Funkhouser 2004

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

slide-58
SLIDE 58

Table of Contents

⊲ Shape Statistics / Algorithms ◮ Comparing Shape Statistics ⊲ Classification / Performance Evaluation

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

slide-59
SLIDE 59

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

slide-60
SLIDE 60

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 Euclidean vectors! Each histogram bin is a dimension

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

slide-61
SLIDE 61

Histogram Cosine Distance

dC(h1, h2) = cos−1

  • h1 ·

h2 || h1|||| h2||

  • COMPSCI/MATH 290-04

Lecture 14: Shape Google: Rigid Shape Statistics

slide-62
SLIDE 62

Euclidean Distance Shortcomings

5 10 15 20 25 0.1 0.2 0.3 0.4 0.5 0.6 0.7

Euclidean Distance Fail

Histogram 1 Histogram 2 Histogram 3

They all have the same distance!

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

slide-63
SLIDE 63

Euclidean Distance Shortcomings

5 10 15 20 25 0.1 0.2 0.3 0.4 0.5 0.6 0.7

Earth Mover's Distance Illustration

Histogram 1 Histogram 2

Move earth from blue to red

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

slide-64
SLIDE 64

Earth Mover’s Distance

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

slide-65
SLIDE 65

Chi Squared Distance

dχ(h1, h2) = 1 2

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

slide-66
SLIDE 66

Table of Contents

⊲ Shape Statistics / Algorithms ⊲ Comparing Shape Statistics ◮ Classification / Performance Evaluation

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

slide-67
SLIDE 67

Evaluation Strategy

Do leave one out technique Use each item as test item in turn, compare to database ◮ Summarize evaluation statistics over entire database by averaging them

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

slide-68
SLIDE 68

Precision / Recall

Rusinkiewiz/Funkhouser 2009

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

slide-69
SLIDE 69

Other Evaluation Metrics

⊲ Average Precision (Area Under Precision/Recall Curve) ⊲ Mean Reciprocal Rank (1/rank of first correct item) ⊲ Median Reciprocal Rank 1 is perfect score

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