Top Banner
Statistical Shape Models • Eigenpatches model regions – Assume shape is fixed – What if it isn’t? • Faces with expression changes, • organs in medical images etc • Need a method of modelling shape and shape variation
26

Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Dec 22, 2015

Download

Documents

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: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Statistical Shape Models

• Eigenpatches model regions – Assume shape is fixed– What if it isn’t?

• Faces with expression changes,

• organs in medical images etc

• Need a method of modelling shape and shape variation

Page 2: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Shape Models

• We will represent the shape using a set of points

• We will model the variation by computing the PDF of the distribution of shapes in a training set

• This allows us to generate new shapes similar to the training set

Page 3: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Building Models

• Require labelled training images– landmarks represent correspondences

Page 4: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Suitable Landmarks

• Define correspondences– Well defined corners

– `T’ junctions

– Easily located biological landmarks

– Use additional points along boundaries to define shape more accurately

Page 5: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Building Shape Models

• For each example

x = (x1,y1, … , xn, yn)T

Page 6: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Shape

• Need to model the variability in shape

• What is shape?– Geometric information that remains when

location, scale and rotational effects removed (Kendall)

Same Shape Different Shape

Page 7: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Shape

• More generally– Shape is the geometric information invariant to

a particular class of transformations

• Transformations:– Euclidean (translation + rotation)– Similarity (translation+rotation+scaling)– Affine

Page 8: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Shape

Shapes Euclidean Similarity Affine

Page 9: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Statistical Shape Models

• Given a set of shapes:

• Align shapes into common frame– Procrustes analysis

• Estimate shape distribution p(x)– Single gaussian often sufficient– Mixture models sometimes necessary

Page 10: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Aligning Two Shapes

• Procrustes analysis:– Find transformation which minimises

– Resulting shapes have • Identical CoG

• approximately the same scale and orientation

221 |)(| xx T

Page 11: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Aligning a Set of Shapes

• Generalised Procrustes Analysis– Find the transformations Ti which minimise

– Where

– Under the constraint that

2|)(| iiT xm

)(1

iiTn

xm

1|| m

Page 12: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Aligning Shapes : Algorithm

• Normalise all so CoG at origin, size=1

• Let

• Align each shape with m

• Re-calculate

• Normalise m to default size, orientation

• Repeat until convergence

1xm

)(1

iiTn

xm

Page 13: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Aligned Shapes

• Need to model the aligned shapes

x

space shape

Page 14: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Statistical Shape Models

• For shape synthesis– Parameterised model preferable

• For image matching we can get away with only knowing p(x)– Usually more efficient to reduce dimensionality

where possible

)(bx shapef Pbxx e.g.

Page 15: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Dimensionality Reduction

• Co-ords often correllated

• Nearby points move together

11bpxx

1b

xx

1p

Page 16: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Principal Component Analysis

• Compute eigenvectors of covariance,S

• Eigenvectors : main directions

• Eigenvalue : variance along eigenvector

1p2p

1 2

Page 17: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Dimensionality Reduction

• Data lies in subspace of reduced dim.

• However, for some t,

i

i

nnbb ppxx 11

tjb j if 0

t

) is of (Variance jjb

Page 18: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Building Shape Models

• Given aligned shapes, { }

• Apply PCA

• P – First t eigenvectors of covar. matrix

• b – Shape model parameters

ix

Pbxx

Page 19: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Hand shape model

• 72 points placed around boundary of hand– 18 hand outlines obtained by thresholding images of

hand on a white background

• Primary landmarks chosen at tips of fingers and joint between fingers– Other points placed equally between

1

23

4

5

6

Page 20: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Hand Shape Model

1 Varying b2 Varying b 3 Varying b

Page 21: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Face Shape Model

1 Varying b2 Varying b 3 Varying b

Page 22: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Brain structure shape model

Page 23: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Example : Hip Radiograph

11bpxx

1 1 33 1 b

Page 24: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Spine Model

Page 25: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Distribution of Parameters

• Learn p(b) from training set

• If x multivariate gaussian, then– b gaussian with diagonal covariance

• Can use mixture model for p(b)

)( 1 tb diag S

Page 26: Statistical Shape Models Eigenpatches model regions –Assume shape is fixed –What if it isn’t? Faces with expression changes, organs in medical images etc.

Conclusion

• We can build statistical models of shape change

• Require correspondences across training set

• Get compact model (few parameters)

• Next: Matching models to images