Top Banner
Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 200
36

Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Jan 01, 2016

Download

Documents

Maria Terry
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Shape Analysis and Retrieval

Structural Shape Descriptors

Notes courtesy of Funk et al., SIGGRAPH 2004

Page 2: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Outline:• Structural Shape Descriptors

• Skeletons

Page 3: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Statistical Shape DescriptorsRepresent the geometry of the model:

Good for comparing across rigid body transformations Good for comparing whole modelsBad for comparing deformable modelsBad for comparing parts of a model

Page 4: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Structural Shape DescriptorsGeneral Approach:

– Construct graph where nodes represent partsand edges represent relationships between parts

– Compare nodes

– Match graphs

QueryShape

Descriptor

Database

BestMatches

Page 5: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Structural Shape DescriptorsAdvantages:

– Articulation of nodes does not change the descriptor.

– Statistical shape descriptors can be used to match nodes

– Sub-graph isomorphisms can be used for partial matching.

QueryShape

Descriptor

Database

BestMatches

Page 6: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Outline:• Structural Shape Descriptors

• Skeletons

Page 7: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsIdea:

Represent a surface/contour as the collection of quench points of waves propagating from the boundary.

Page 8: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsAlternatively:

– Locus of points equidistant from surface– Locus of centers of maximal balls– 1st order discontinuity in distance transform

maximal circle

skeleton

boundary

Page 9: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsSpecifically:

If we define the ball of radius r about the point p as:

then given a surface S, the skeleton of S is the collection of points (with associated radii) that are simultaneously closest to at least two points on S:

rsSpBSpBrpS sr ,0)( and 1)( s.t. ),()(Skel

rqpqpBr s.t. )(

Page 10: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsExample:

rsSpBSpBrpS sr ,0)( and 1)( s.t. ),()(Skel

S

p1

p3

p2

r3

r2

r1

Skel(S)

Page 11: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsProperties:

– By taking the union of the skeleton balls you can reconstruct the shape:

Srpr pBS

),(

)(

Page 12: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsProperties:

– By taking the union of the skeleton balls you can reconstruct the shape:

Srpr pBS

),(

)(

Page 13: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsProperties:

– Skeletons characterize a model in terms of spatially local information. (The skeleton of the union is similar to the union of the skeletons)

Page 14: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsProperties:

– Robust to articulated motion.

Page 15: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Skeletons to GraphsGenerate a graph representing the skeleton with nodes corresponding to:

– Singular points– Continuous regions

Model Skeleton Graph

Page 16: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Computing the SkeletonEquivalent Definitions:

– Locus of points equidistant from surface– Locus of centers of maximal balls– 1st order discontinuity in distance transform

maximal circle

skeleton

boundary

Page 17: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Euclidean Distance TransformThe Euclidean Distance Transform (EDT) of a surface is a function giving the distance of every point in space to the boundary.

SurfaceEDT

qppSq

S

min)(EDT

Page 18: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Euclidean Distance TransformThe EDT grows smoothly away from the surface. At skeleton points the derivative becomes discontinuous.

SurfaceEDT

Page 19: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Computing the EDTBrute Force:

Compute the distance to each surface point and store the minimum.

If there are m surface points and we want the values on a grid of resolution n, the overall complexity becomes:

– O(n2m) for a 2D grid– O(n3m) for a 3D grid

Page 20: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Computing the EDTGraphics Hardware (2D):

For each surface point (x,y), draw a 3D right-cone with apex at (x,y,0) and axis aligned with the positive z-axis.

Draw the cones with orthogonal projection, looking down the positive the z-axis.

The values of the depth-buffer are the values of the EDT.

Page 21: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Computing the EDTGraphics Hardware (2D):

At the point p0, the height of a right-cone with apex at p is equal to the distance from p to p0.

p p0

|p-p0|

Page 22: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Computing the EDTGraphics Hardware (2D):

The height of a right-cone with apex at p is equal to the distance from p.

Given a collection of points:– Draw right-cones at each point

Cone 1 Cone 2

45o 45o

Page 23: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Computing the EDTGraphics Hardware (2D):

The height of a right-cone with apex at p is equal to the distance from p.

Given a collection of points:– Draw right-cones at each point

– View along the z-direction Cone 1 Cone 2

View Plane

Dep

th

Page 24: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Computing the EDTGraphics Hardware (2D):

The height of a right-cone with apex at p is equal to the distance from p.

Given a collection of points:– Draw right-cones at each point

– View along the z-direction

– Read back the frame-buffer

x

ED

TS(x

)

Page 25: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Computing the SkeletonGraphics Hardware (2D):

– Draw right-cones at each point

– View along the z-direction

– Read back the frame-buffer

– Extract the skeleton

Surface Right-Cones Skeleton

z-axis

Page 26: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

Computing the Skeleton3D Skeletons:

They can be computed similarly using the 3D Euclidean Distance Transform and looking for discontinuities of the gradient.

The skeleton is made up of:– Points (Sphere)– Curves (Cylinders)– Surfaces (General)

Surface

Skeleton

Page 27: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsLimitations:

– The skeletons of 3D models are combinations of 0D points,1D curves, and 2D surfaces.

– The skeleton of a surface is very sensitive to noise in the model.

Page 28: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsLimitations:

– The skeletons of 3D models are combinations of points,1D curves, and 2D surfaces.

– The skeleton of a surface is very sensitive to noise in the model.

Skeleton

Small changes in the surface can cause very significant changes in the skeleton

Surface

Page 29: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsNoise:

– The skeleton of a surface is very sensitive to noise in the model.

As a result, it is difficult to compute the skeleton of a rasterized model (e.g. images, MRIs, etc.).

Page 30: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsGoal:

Try to identify the good segments of the skeleton and discard the bad ones.

Page 31: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsGoal:

Try to identify the good segments of the skeleton and discard the bad ones.

Points on the main segment are good because they are generated by pairs of points that are far apart

Page 32: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsGoal:

Try to identify the good segments of the skeleton and discard the bad ones.

Points on the spur are bad because they are generated by pairs of points that are close together

Page 33: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsSpecifically:

Associate the angle of the generating pair to each point on the skeleton (speed).

The bigger the angle, the more meaningful the skeleton point, the bigger the 1st order discontinuity.

Skeleton

Page 34: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsSpeed:

If p is a skeleton point and r is its associated radius, the speed at p is:

Skeleton

in time change over theposition in change The:rp

p

r

)2/cos(

1

)2/cos(

1

rp

rp

Page 35: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SkeletonsCleaning Noise:

Use the speed/angle of a skeleton point to determine its quality.

Model Skeleton Speed-WeightedSkeleton

Page 36: Shape Analysis and Retrieval Structural Shape Descriptors Notes courtesy of Funk et al., SIGGRAPH 2004.

SummarySkeletons provide a new way of thinking about shapes that is based on excitation principals mimicking human perception.Pros:

– An invertible representation– Well suited for partial matching– Unchanged by articulated motion– Fast to compute

Cons:– Complex structure for 3D models– Difficult to compute robustly