SlideShare a Scribd company logo
1
Tim Cootes 2014
Statistical Models of Shape and
Appearance
Tim Cootes
Imaging Sciences,
The University of Manchester
http://personalpages.manchester.ac.uk/staff/timothy.f.cootes
(or search for “Tim Cootes”)
Aim
Interpret images using models of appearance
– ‘explain’the image
Fit Model
Model
Parameters
Why is it difficult?
• Wide variation in shape and appearance
Tim Cootes 2013
Overview
• Statistical Shape Models
• Combined Appearance Models
• Matching Algorithms:
– Active Shape Models
– Active Appearance Models
– Constrained Local Models
• Groupwise registration
– Obtain correspondences to build models
Model Building
Example Images
Shape Models
Appearance Models
Statistical
Analysis
Statistical Shape Models
• Statistical model of shape variation
2
Building Shape Models
• Require labelled training images
– landmarks represent correspondences
T
nn ,y,,y,x,(x )11 x
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
Shape
• More generally
– Shape is the geometric information invariant
to a particular class of transformations
• Transformations:
– Euclidean (translation + rotation)
– Similarity (translation+rotation+scaling)
– Affine
Statistical Shape Models
Given a set of shapes:
• Align shapes into common frame
– Procrustes analysis
• Estimate shape distribution p(x)
– Single Gaussian often sufficient
• Approximate with parameterised model
Pbxx 
Aligning Two Shapes
• Procrustes analysis:
– Find transformation which minimises
– Resulting shapes have
• identical CoG
• approximately the same scale and orientation
2
21 |)(| xx T
Aligning a Set of Shapes
• Generalised Procrustes Analysis
– Find the transformations Ti which minimise
– Where
– Under the constraint that
2
|)(| iiT xm 
)(
1
iiT
n
xm 
1|| m
3
Aligning Shapes
• Generalised Procrustes Analysis
– Align each shape to the mean
Unaligned Align with translation Align with similarity
Aligned Shapes
• Need to model the aligned shapes
x
spaceshape
Dimensionality Reduction
• Co-ordinates often correlated
• Nearby points move together
11bpxx 
1b
x
x
1p
Principal Component Analysis
• Compute eigenvectors of covariance, S
• Eigenvectors : main directions
• Eigenvalues : variance along eigenvector
11p
22 p
x
1x
2x
Dimensionality Reduction
• Data lies in subspace of reduced dim.
• However, for some t,
i
i
nnbb ppxx  11
tjbj  if0
t
)isof(Variance jjb 
Building Shape Models
• Given aligned shapes, { }
• Apply PCA
– Compute mean and eigenvectors of covar.
• P – First t eigenvectors of covar. matrix
• b – Shape model parameters
ix


332211 pppx
Pbxx
bbb
4
Face Model Modes
• 100 people, 4 images each
1Varying b 2Varying b 3Varying b 4Varying b
 332211 pppxx bbb
Hand Shape Model
1Varying b 2Varying b 3Varying b
Spine Shape Model Knee shape model
 1b  2b  3b
Xenios Milidonis & ARCOGEN
Prostate Model Mode 1
Danny Allen
Brain structure modes
5
Appearance Models
• Model both shape and texture
• Use all image information
+ =
Building Texture Models
• For each example, extract texture vector
• Normalise vectors
• Build eigen-model
Texture, g
Warp to
mean
shape
ggbPgg 
gg  /)( 1gg 
Face Texture Model
1b12  12 
2b22  22 
3b32  32 
Combined Models
• Shape and texture often correlated
– When smile, shadows change (texture) and
shape changes
• Learning this correlation leads to more
compact (and specific) model
Learning Correlations
sb
gbModel assuming
shape and texture
independent
Model accounting for
correlations between shape
and texture
Learning Correlations
• For each image in set we have best fitting
shape and texture param.s
• Construct new vector,
• Apply PCA (mean + eigenvec.s of covar.)
gs bb ,









g
s
c
b
Wb
b
cQgg
cQxx
g
s

 Varying c changes both
shape and texture
6
Global Face Model
• 400 images from 100 different people
Note: Mixes ID, expression, head pose etc
Face Variation
Gender Change: Ethnic Group:
Face Variation
Age Change:
Model Matching
Active Shape Models
• Match shape model to new image
• Require:
– Statistical shape model
– Model of image structure at each point
Model Point
Model of Profile
Model of Region
Placing model in image
• The model points are defined in a model
co-ordinate frame
• Must apply global transformation,T, to
place in image
Model Frame Image
Pbxx 
)( PbxX  T
),,,;( sYXT ccx
7
ASM Search Overview
• Local optimisation
• Initialise near target
– Search nearby for best match, X’
– Update parameters to match to X’.
)','( ii YX
Local Structure Models
• Need to search for local match for each point
• Often sufficient to search along profile
• Model
– Strongest edge
– Correlation
– Statistical model of profile/patch
– Discriminative model
Profile Models
• Sometimes true point not on strongest
edge
• Model local structure to help locate the
point
Strongest edge True position
Profile Models
• For each point in model
– For each training image
• Sample values along profile
• Normalise
– Build statistical model
• eg Gaussian PDF using eigen-model approach
Or:
• Train classifier to distinguish true/false positions
Searching Along Profiles
• During search we look along a normal for
the best match for each profile
)(xg
x
))(( xp g
)(xg
Form vector from samples
about x
Search algorithm
• Search along profile
• Update global transformation, T, and
parameters, b, to minimise
2
|)(| PbxX T
),( ii YX
8
Update step
• Hard constraints
• Soft constraints
• Can also weight by quality of local match
tp)p(T  bPbxX subject to|)(|Minimise 2
)(log/|)()(|Minimise 2
r
21
)p(T bPbxX 

Multi-Resolution Search
• Train models at each level of pyramid
– Gaussian pyramid with step size 2
– Use same points but different local models
• Start search at coarse resolution
– Refine at finer resolution
Example : Hip Radiograph
11bpxx 
11  33 1  b
ASM Example: Spine
3D Face Model
Mean
1 2
3
Angela Caunce
Trained on approx. 1000 people
Matching 3D ASMs
• Search for each point independently
– Local model depends on current pose
• Estimate shape param.s + projection
Angela Caunce
9
Face Tracking with a 3D Model
Angela Caunce
Active Shape Models
• Advantages
– Fast, simple, accurate
– Efficient to extend to 3D
• Disadvantages
– Only sparse use of image information
– Treat local models as independent
Active Appearance Models
• We have a statistical appearance model
– Trained from sets of examples
• How do we match to new images?
• Use an “Active Appearance Model”
– Efficient iterative matching method
Model Parameters
• Combined model parameters, c
– Shape parameters
– Texture model parameters
• Pose parameters
• Texture transformation 1gg   mim
c
Q
Q
b
b














2
1
g
s
),,,( sYX cc
),,,,,,( sYX cccp 
Key Step in AAM
• Estimate parameter update from current
image sample
Diff. in Ref Frame
pd
pd
Estimating the update step
Linear:
R estimated
– Using Jacobian
– Using Linear Regression
– Using Canonical Correlation Analysis
Non-linear:
– Boosted classifiers
– Boosted regression
)(sp Fd
Rsp d
10
Justification for Jacobian
• Residual difference:
• Measurements in reference frame:
– Model:
– Sample warped to ref:
• Simplest form : Minimise
– Can add robust kernels
)()()( pIpIpr imm 
cQgpI gm  ˆ)(
)(pIim
2
|)(|)( prp E
Prediction using the Jacobian
p
p
r
prppr δ


 )()( d
)()()E( pprpprpp ddd  T
minimizeTo
TT
p
r
p
r
p
r
JR

















1
)(δ pRrp 
p
r
J



j
i
ij
dp
dr
J 
Taylor expansion:
Estimating Jacobian (gradient)
• Need estimate of the Jacobian:
• Estimate each term by small
displacements on the training set
p
r
J



j
i
ij
dp
dr
J 
d
dd
2
)()( 

jiji
ij
pdrpdr
J
Average over all examples
How Good are the Predictions?
• Predicted dx vs. actual dx over test set
Multi-Resolution Predictions
• Predicted dx vs. actual dx over test set
AAM Algorithm
• Initial estimate Im(p)
• Start at coarse resolution
• At each resolution
– Measure residual error, r(p)
– predict correction dp = Rr
– p  p - dp
– repeat to convergence
11
Face Search Face Search
Sub-cortical Structures
Initial Position Converged
Brain search
3D Model-Based Segmentation
Model of femur Using the model to segment the femur
Regression Approach
• Assume functional relationship
s = normalised intensities, or residuals
• Learn function from displaced training
examples
)(sp Fd
}{ ipd )}({ itruei ppss d
Random perturbations Image samples
12
Linear Regression
Rsp d
Scale Rotation Y-trans Shape 1X-trans Shape 2
Phil Tresadern
frameref.inintensityNormaliseds
Rows of R from PC Regression
R from Linear Regression better than that from Jacobian
Non-linear Regression
• Boosted Haar features:
 

n
i iij Hfp 1
))(( sd
featureHaar:)(siH
function1DLearnt:)(xfi
Phil Tresadern
Linear vs Non-linear
– Non-linear methods perform better for poor
initializations but no better close to solution
Phil Tresadern
Jacobian
Linear Regression
Non-linear Regression
AAM Tracking
• Sequence of AAMs with increasing
resolution
• Generic – trained on range of people
• Search each frame in a few ms
Mircea Ionita,
Phil Tresadern
AAM Developments
• Improved optimisation [Matthews &Baker, IJCV2004]
• Improved features [Cootes:CVPR01]
• 2D+3D AAMs [Xiao:CVPR04]
• Canonical Correlation Analysis [Donner:PAMI06]
• Update matrix computation [Saragih:ICPR06]
• Boosted Appearance Models [Liu:CVPR07]
• Non-linear updates [Saragih:ICCV07]
• Fast boosted AAMs [Tresadern:BMVC10]
• Active Orientation Models [Tzimiropoulos:2013]
• Supervised Descent Method [Xiong:CVPR2013]
• Explicit Shape Regression [Cao:CVPR12]
(And lots of others)
Local Model Matching
Find shape and pose parameters to optimise
Shape param.s Pose params
13
Classification vs Regression
Classification:
• Is this the point?
Classification vs Regression
Classification:
• Is this the point?
Regression:
• Where is the point?
Finding Points using Regression Voting
• Train “Random Forest” to predict offsets
Each patch fed into each tree to predict offset and weight
Finding Points using Regression Voting
• Scan regressor across region
• Each patch produces 1 vote per tree
• Accumulate votes in an array
Fully automated femur detection
• Tested on 839 radiographs (ARCOGEN)
Error <0.9mm for 99% of cases
Claudia Lindner
Knee Radiographs
Median 95%ile 99%ile
Mean point-to-curve error:
< 1mm for 99% of 500 images
Fully automatic search results
using AP knee radiographs.
Claudia Lindner, Xenios Milidonis
14
Groupwise Registration
• Accurate correspondences required to
build shape/appearance models
– Slow/hard to manually annotate data
…
…
Tim Cootes 2011
Goal: Fully Automatic System
• Build models from unlabelled images
… Model
Approach
…
Find the correspondences across the set of images
Construct model in an ‘average’ reference frame
Representing of Deformation
• Use piece-wise linear warp field
– Triangular/Tetrahedral mesh
– Simple, compact, efficient
– Trivially invertible
Groupwise Algorithm
• Initialisation: Affine registration
• Generate control points
• Repeat
– Build model from current data
– For each image
• Optimise positions of control points
• Until happy/dead/conference deadline etc
Image Features
Linear Normalisation
),max(
ˆ
mini
ii
i
gg
g


Local z-normalisation
Raw Image

gg
g i
i
ˆ

1) z-norm
2) Smoothed |Gx|
3) Smoothed |Gy|
15
Registering Faces
• 293 individuals from XM2VTS
• Evolution of robust estimate of mean:
Example Modes
Varying appearance model parameters
(Note shadowing caused by glasses)
Modes of model built from images without glasses:
Hand Radiographs
Registered Mean
Zhang Pei
3D Registration
• Registering 270 3D MR Brain Images
• Evolution of the model mean:
Summary
• Statistical shape models
– Powerful representations of objects
– Usually only need small number of params
• Model matching methods
– ASM/CLM: Local search + Shape Regularisation
– AAMs: Direct prediction of update steps
• Groupwise Registration
– Automatically build models from sets of
images

More Related Content

What's hot

D034017022
D034017022D034017022
D034017022
ijceronline
 
Leveraging Multiple GPUs and CPUs for Graphlet Counting in Large Networks
Leveraging Multiple GPUs and CPUs for  Graphlet Counting in Large Networks Leveraging Multiple GPUs and CPUs for  Graphlet Counting in Large Networks
Leveraging Multiple GPUs and CPUs for Graphlet Counting in Large Networks
Ryan Rossi
 
H045064549
H045064549H045064549
H045064549
IJERA Editor
 
COMPOSITE TEXTURE SHAPE CLASSIFICATION BASED ON MORPHOLOGICAL SKELETON AND RE...
COMPOSITE TEXTURE SHAPE CLASSIFICATION BASED ON MORPHOLOGICAL SKELETON AND RE...COMPOSITE TEXTURE SHAPE CLASSIFICATION BASED ON MORPHOLOGICAL SKELETON AND RE...
COMPOSITE TEXTURE SHAPE CLASSIFICATION BASED ON MORPHOLOGICAL SKELETON AND RE...
sipij
 
Lec15 sfm
Lec15 sfmLec15 sfm
Lec15 sfm
BaliThorat1
 
Derivative free optimizations
Derivative free optimizationsDerivative free optimizations
Derivative free optimizations
Dr. Rajdeep Chatterjee
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methods
sujeeshkumarj
 
View and illumination invariant iterative based image matching
View and illumination invariant iterative based image matchingView and illumination invariant iterative based image matching
View and illumination invariant iterative based image matching
eSAT Journals
 
Numerical analysis m1 l3slides
Numerical analysis  m1 l3slidesNumerical analysis  m1 l3slides
Numerical analysis m1 l3slides
SHAMJITH KM
 
Lec08 fitting
Lec08 fittingLec08 fitting
Lec08 fitting
BaliThorat1
 
02 image processing
02 image processing02 image processing
02 image processing
ankit_ppt
 
Linear Programming Feasible Region
Linear Programming Feasible RegionLinear Programming Feasible Region
Linear Programming Feasible Region
VARUN MODI
 
2001 transformations reflections etc
2001 transformations reflections etc2001 transformations reflections etc
2001 transformations reflections etc
jbianco9910
 
D05511625
D05511625D05511625
D05511625
IOSR-JEN
 
Solving linear equations from an image using ann
Solving linear equations from an image using annSolving linear equations from an image using ann
Solving linear equations from an image using ann
eSAT Journals
 
Adaptive physics–inspired facial animation
Adaptive physics–inspired facial animationAdaptive physics–inspired facial animation
Adaptive physics–inspired facial animation
Richard Southern
 
PPT s06-machine vision-s2
PPT s06-machine vision-s2PPT s06-machine vision-s2
PPT s06-machine vision-s2
Binus Online Learning
 
p-Laplace Variational Image Inpainting Model Using Riesz Fractional Different...
p-Laplace Variational Image Inpainting Model Using Riesz Fractional Different...p-Laplace Variational Image Inpainting Model Using Riesz Fractional Different...
p-Laplace Variational Image Inpainting Model Using Riesz Fractional Different...
IJECEIAES
 
View and illumination invariant iterative based image
View and illumination invariant iterative based imageView and illumination invariant iterative based image
View and illumination invariant iterative based image
eSAT Publishing House
 
Multi-Image Matching
Multi-Image MatchingMulti-Image Matching
Multi-Image Matching
Saad Khalaf
 

What's hot (20)

D034017022
D034017022D034017022
D034017022
 
Leveraging Multiple GPUs and CPUs for Graphlet Counting in Large Networks
Leveraging Multiple GPUs and CPUs for  Graphlet Counting in Large Networks Leveraging Multiple GPUs and CPUs for  Graphlet Counting in Large Networks
Leveraging Multiple GPUs and CPUs for Graphlet Counting in Large Networks
 
H045064549
H045064549H045064549
H045064549
 
COMPOSITE TEXTURE SHAPE CLASSIFICATION BASED ON MORPHOLOGICAL SKELETON AND RE...
COMPOSITE TEXTURE SHAPE CLASSIFICATION BASED ON MORPHOLOGICAL SKELETON AND RE...COMPOSITE TEXTURE SHAPE CLASSIFICATION BASED ON MORPHOLOGICAL SKELETON AND RE...
COMPOSITE TEXTURE SHAPE CLASSIFICATION BASED ON MORPHOLOGICAL SKELETON AND RE...
 
Lec15 sfm
Lec15 sfmLec15 sfm
Lec15 sfm
 
Derivative free optimizations
Derivative free optimizationsDerivative free optimizations
Derivative free optimizations
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methods
 
View and illumination invariant iterative based image matching
View and illumination invariant iterative based image matchingView and illumination invariant iterative based image matching
View and illumination invariant iterative based image matching
 
Numerical analysis m1 l3slides
Numerical analysis  m1 l3slidesNumerical analysis  m1 l3slides
Numerical analysis m1 l3slides
 
Lec08 fitting
Lec08 fittingLec08 fitting
Lec08 fitting
 
02 image processing
02 image processing02 image processing
02 image processing
 
Linear Programming Feasible Region
Linear Programming Feasible RegionLinear Programming Feasible Region
Linear Programming Feasible Region
 
2001 transformations reflections etc
2001 transformations reflections etc2001 transformations reflections etc
2001 transformations reflections etc
 
D05511625
D05511625D05511625
D05511625
 
Solving linear equations from an image using ann
Solving linear equations from an image using annSolving linear equations from an image using ann
Solving linear equations from an image using ann
 
Adaptive physics–inspired facial animation
Adaptive physics–inspired facial animationAdaptive physics–inspired facial animation
Adaptive physics–inspired facial animation
 
PPT s06-machine vision-s2
PPT s06-machine vision-s2PPT s06-machine vision-s2
PPT s06-machine vision-s2
 
p-Laplace Variational Image Inpainting Model Using Riesz Fractional Different...
p-Laplace Variational Image Inpainting Model Using Riesz Fractional Different...p-Laplace Variational Image Inpainting Model Using Riesz Fractional Different...
p-Laplace Variational Image Inpainting Model Using Riesz Fractional Different...
 
View and illumination invariant iterative based image
View and illumination invariant iterative based imageView and illumination invariant iterative based image
View and illumination invariant iterative based image
 
Multi-Image Matching
Multi-Image MatchingMulti-Image Matching
Multi-Image Matching
 

Viewers also liked

Integrated hydrodynamic and structural analysis webinar presentation tcm4 601490
Integrated hydrodynamic and structural analysis webinar presentation tcm4 601490Integrated hydrodynamic and structural analysis webinar presentation tcm4 601490
Integrated hydrodynamic and structural analysis webinar presentation tcm4 601490
Dai Hung
 
Computation of Hydrodynamic Characteristics of Ships using CFD
Computation of Hydrodynamic Characteristics of Ships using CFDComputation of Hydrodynamic Characteristics of Ships using CFD
Computation of Hydrodynamic Characteristics of Ships using CFD
Nabila Naz
 
Hydrodynamic Modeling of the Physical Dispersion of Radium-Enriched Barite Ai...
Hydrodynamic Modeling of the Physical Dispersion of Radium-Enriched Barite Ai...Hydrodynamic Modeling of the Physical Dispersion of Radium-Enriched Barite Ai...
Hydrodynamic Modeling of the Physical Dispersion of Radium-Enriched Barite Ai...
Donald Carpenter
 
DSD-INT 2016 Hydrodynamic modeling and resource-device suitability analysis o...
DSD-INT 2016 Hydrodynamic modeling and resource-device suitability analysis o...DSD-INT 2016 Hydrodynamic modeling and resource-device suitability analysis o...
DSD-INT 2016 Hydrodynamic modeling and resource-device suitability analysis o...
Deltares
 
Introduction to fluid mechanics
Introduction to fluid mechanicsIntroduction to fluid mechanics
Introduction to fluid mechanics
Mohsin Siddique
 
Artificial neural networks
Artificial neural networksArtificial neural networks
Artificial neural networks
stellajoseph
 

Viewers also liked (6)

Integrated hydrodynamic and structural analysis webinar presentation tcm4 601490
Integrated hydrodynamic and structural analysis webinar presentation tcm4 601490Integrated hydrodynamic and structural analysis webinar presentation tcm4 601490
Integrated hydrodynamic and structural analysis webinar presentation tcm4 601490
 
Computation of Hydrodynamic Characteristics of Ships using CFD
Computation of Hydrodynamic Characteristics of Ships using CFDComputation of Hydrodynamic Characteristics of Ships using CFD
Computation of Hydrodynamic Characteristics of Ships using CFD
 
Hydrodynamic Modeling of the Physical Dispersion of Radium-Enriched Barite Ai...
Hydrodynamic Modeling of the Physical Dispersion of Radium-Enriched Barite Ai...Hydrodynamic Modeling of the Physical Dispersion of Radium-Enriched Barite Ai...
Hydrodynamic Modeling of the Physical Dispersion of Radium-Enriched Barite Ai...
 
DSD-INT 2016 Hydrodynamic modeling and resource-device suitability analysis o...
DSD-INT 2016 Hydrodynamic modeling and resource-device suitability analysis o...DSD-INT 2016 Hydrodynamic modeling and resource-device suitability analysis o...
DSD-INT 2016 Hydrodynamic modeling and resource-device suitability analysis o...
 
Introduction to fluid mechanics
Introduction to fluid mechanicsIntroduction to fluid mechanics
Introduction to fluid mechanics
 
Artificial neural networks
Artificial neural networksArtificial neural networks
Artificial neural networks
 

Similar to Statistical models of shape and appearance

Lec12: Shape Models and Medical Image Segmentation
Lec12: Shape Models and Medical Image SegmentationLec12: Shape Models and Medical Image Segmentation
Lec12: Shape Models and Medical Image Segmentation
Ulaş Bağcı
 
5_Geometric_Modeling.pdf
5_Geometric_Modeling.pdf5_Geometric_Modeling.pdf
5_Geometric_Modeling.pdf
KeerthanaP37
 
Ch14-Part4-ImageRetrieval.pdf
Ch14-Part4-ImageRetrieval.pdfCh14-Part4-ImageRetrieval.pdf
Ch14-Part4-ImageRetrieval.pdf
Abdullah Azzeh
 
187186134 5-geometric-modeling
187186134 5-geometric-modeling187186134 5-geometric-modeling
187186134 5-geometric-modeling
manojg1990
 
187186134 5-geometric-modeling
187186134 5-geometric-modeling187186134 5-geometric-modeling
187186134 5-geometric-modeling
manojg1990
 
5 geometric modeling
5 geometric modeling5 geometric modeling
5 geometric modeling
Ankush Khansole
 
5 geometric-modeling-ppt-university-of-victoria
5 geometric-modeling-ppt-university-of-victoria5 geometric-modeling-ppt-university-of-victoria
5 geometric-modeling-ppt-university-of-victoria
Raghu Gadde
 
Landmark detection using statistical shape modelling and template matching (M...
Landmark detection using statistical shape modelling and template matching (M...Landmark detection using statistical shape modelling and template matching (M...
Landmark detection using statistical shape modelling and template matching (M...
Habib Baluwala
 
Geometric Modelling in Computer Aided Design.pptx
Geometric Modelling in Computer Aided Design.pptxGeometric Modelling in Computer Aided Design.pptx
Geometric Modelling in Computer Aided Design.pptx
suyogpatil49
 
06 image features
06 image features06 image features
06 image features
ankit_ppt
 
General Tips for participating Kaggle Competitions
General Tips for participating Kaggle CompetitionsGeneral Tips for participating Kaggle Competitions
General Tips for participating Kaggle Competitions
Mark Peng
 
Computer Vision descriptors
Computer Vision descriptorsComputer Vision descriptors
Computer Vision descriptors
Wael Badawy
 
Building and deploying analytics
Building and deploying analyticsBuilding and deploying analytics
Building and deploying analytics
Collin Bennett
 
Understandig PCA and LDA
Understandig PCA and LDAUnderstandig PCA and LDA
Understandig PCA and LDA
Dr. Syed Hassan Amin
 
Solid modelling cg
Solid modelling cgSolid modelling cg
Solid modelling cg
Nareek
 
Introduction to Real Time Rendering
Introduction to Real Time RenderingIntroduction to Real Time Rendering
Introduction to Real Time Rendering
Koray Hagen
 
Deep Learning Opening Workshop - Improving Generative Models - Junier Oliva, ...
Deep Learning Opening Workshop - Improving Generative Models - Junier Oliva, ...Deep Learning Opening Workshop - Improving Generative Models - Junier Oliva, ...
Deep Learning Opening Workshop - Improving Generative Models - Junier Oliva, ...
The Statistical and Applied Mathematical Sciences Institute
 
Mattar_PhD_Thesis
Mattar_PhD_ThesisMattar_PhD_Thesis
Mattar_PhD_Thesis
Marwan Mattar
 
Machine Learning Pipelines
Machine Learning PipelinesMachine Learning Pipelines
Machine Learning Pipelines
jeykottalam
 
Lec10 matching
Lec10 matchingLec10 matching
Lec10 matching
Suravet Konsetthee
 

Similar to Statistical models of shape and appearance (20)

Lec12: Shape Models and Medical Image Segmentation
Lec12: Shape Models and Medical Image SegmentationLec12: Shape Models and Medical Image Segmentation
Lec12: Shape Models and Medical Image Segmentation
 
5_Geometric_Modeling.pdf
5_Geometric_Modeling.pdf5_Geometric_Modeling.pdf
5_Geometric_Modeling.pdf
 
Ch14-Part4-ImageRetrieval.pdf
Ch14-Part4-ImageRetrieval.pdfCh14-Part4-ImageRetrieval.pdf
Ch14-Part4-ImageRetrieval.pdf
 
187186134 5-geometric-modeling
187186134 5-geometric-modeling187186134 5-geometric-modeling
187186134 5-geometric-modeling
 
187186134 5-geometric-modeling
187186134 5-geometric-modeling187186134 5-geometric-modeling
187186134 5-geometric-modeling
 
5 geometric modeling
5 geometric modeling5 geometric modeling
5 geometric modeling
 
5 geometric-modeling-ppt-university-of-victoria
5 geometric-modeling-ppt-university-of-victoria5 geometric-modeling-ppt-university-of-victoria
5 geometric-modeling-ppt-university-of-victoria
 
Landmark detection using statistical shape modelling and template matching (M...
Landmark detection using statistical shape modelling and template matching (M...Landmark detection using statistical shape modelling and template matching (M...
Landmark detection using statistical shape modelling and template matching (M...
 
Geometric Modelling in Computer Aided Design.pptx
Geometric Modelling in Computer Aided Design.pptxGeometric Modelling in Computer Aided Design.pptx
Geometric Modelling in Computer Aided Design.pptx
 
06 image features
06 image features06 image features
06 image features
 
General Tips for participating Kaggle Competitions
General Tips for participating Kaggle CompetitionsGeneral Tips for participating Kaggle Competitions
General Tips for participating Kaggle Competitions
 
Computer Vision descriptors
Computer Vision descriptorsComputer Vision descriptors
Computer Vision descriptors
 
Building and deploying analytics
Building and deploying analyticsBuilding and deploying analytics
Building and deploying analytics
 
Understandig PCA and LDA
Understandig PCA and LDAUnderstandig PCA and LDA
Understandig PCA and LDA
 
Solid modelling cg
Solid modelling cgSolid modelling cg
Solid modelling cg
 
Introduction to Real Time Rendering
Introduction to Real Time RenderingIntroduction to Real Time Rendering
Introduction to Real Time Rendering
 
Deep Learning Opening Workshop - Improving Generative Models - Junier Oliva, ...
Deep Learning Opening Workshop - Improving Generative Models - Junier Oliva, ...Deep Learning Opening Workshop - Improving Generative Models - Junier Oliva, ...
Deep Learning Opening Workshop - Improving Generative Models - Junier Oliva, ...
 
Mattar_PhD_Thesis
Mattar_PhD_ThesisMattar_PhD_Thesis
Mattar_PhD_Thesis
 
Machine Learning Pipelines
Machine Learning PipelinesMachine Learning Pipelines
Machine Learning Pipelines
 
Lec10 matching
Lec10 matchingLec10 matching
Lec10 matching
 

More from potaters

Image formation
Image formationImage formation
Image formation
potaters
 
Ln l.agapito
Ln l.agapitoLn l.agapito
Ln l.agapito
potaters
 
Motion and tracking
Motion and trackingMotion and tracking
Motion and tracking
potaters
 
BMVA summer school MATLAB programming tutorial
BMVA summer school MATLAB programming tutorialBMVA summer school MATLAB programming tutorial
BMVA summer school MATLAB programming tutorial
potaters
 
Vision Algorithmics
Vision AlgorithmicsVision Algorithmics
Vision Algorithmics
potaters
 
Performance characterization in computer vision
Performance characterization in computer visionPerformance characterization in computer vision
Performance characterization in computer vision
potaters
 
Machine learning for computer vision part 2
Machine learning for computer vision part 2Machine learning for computer vision part 2
Machine learning for computer vision part 2
potaters
 
Machine learning fro computer vision - a whirlwind of key concepts for the un...
Machine learning fro computer vision - a whirlwind of key concepts for the un...Machine learning fro computer vision - a whirlwind of key concepts for the un...
Machine learning fro computer vision - a whirlwind of key concepts for the un...
potaters
 
Low level vision - A tuturial
Low level vision - A tuturialLow level vision - A tuturial
Low level vision - A tuturial
potaters
 
Local feature descriptors for visual recognition
Local feature descriptors for visual recognitionLocal feature descriptors for visual recognition
Local feature descriptors for visual recognition
potaters
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
potaters
 
A primer for colour computer vision
A primer for colour computer visionA primer for colour computer vision
A primer for colour computer vision
potaters
 
Cognitive Vision - After the hype
Cognitive Vision - After the hypeCognitive Vision - After the hype
Cognitive Vision - After the hype
potaters
 
Graphical Models for chains, trees and grids
Graphical Models for chains, trees and gridsGraphical Models for chains, trees and grids
Graphical Models for chains, trees and grids
potaters
 
Medical image computing - BMVA summer school 2014
Medical image computing - BMVA summer school 2014Medical image computing - BMVA summer school 2014
Medical image computing - BMVA summer school 2014
potaters
 
Decision Forests and discriminant analysis
Decision Forests and discriminant analysisDecision Forests and discriminant analysis
Decision Forests and discriminant analysis
potaters
 

More from potaters (16)

Image formation
Image formationImage formation
Image formation
 
Ln l.agapito
Ln l.agapitoLn l.agapito
Ln l.agapito
 
Motion and tracking
Motion and trackingMotion and tracking
Motion and tracking
 
BMVA summer school MATLAB programming tutorial
BMVA summer school MATLAB programming tutorialBMVA summer school MATLAB programming tutorial
BMVA summer school MATLAB programming tutorial
 
Vision Algorithmics
Vision AlgorithmicsVision Algorithmics
Vision Algorithmics
 
Performance characterization in computer vision
Performance characterization in computer visionPerformance characterization in computer vision
Performance characterization in computer vision
 
Machine learning for computer vision part 2
Machine learning for computer vision part 2Machine learning for computer vision part 2
Machine learning for computer vision part 2
 
Machine learning fro computer vision - a whirlwind of key concepts for the un...
Machine learning fro computer vision - a whirlwind of key concepts for the un...Machine learning fro computer vision - a whirlwind of key concepts for the un...
Machine learning fro computer vision - a whirlwind of key concepts for the un...
 
Low level vision - A tuturial
Low level vision - A tuturialLow level vision - A tuturial
Low level vision - A tuturial
 
Local feature descriptors for visual recognition
Local feature descriptors for visual recognitionLocal feature descriptors for visual recognition
Local feature descriptors for visual recognition
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
A primer for colour computer vision
A primer for colour computer visionA primer for colour computer vision
A primer for colour computer vision
 
Cognitive Vision - After the hype
Cognitive Vision - After the hypeCognitive Vision - After the hype
Cognitive Vision - After the hype
 
Graphical Models for chains, trees and grids
Graphical Models for chains, trees and gridsGraphical Models for chains, trees and grids
Graphical Models for chains, trees and grids
 
Medical image computing - BMVA summer school 2014
Medical image computing - BMVA summer school 2014Medical image computing - BMVA summer school 2014
Medical image computing - BMVA summer school 2014
 
Decision Forests and discriminant analysis
Decision Forests and discriminant analysisDecision Forests and discriminant analysis
Decision Forests and discriminant analysis
 

Recently uploaded

aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
İsa Badur
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
Scintica Instrumentation
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
University of Maribor
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Leonel Morgado
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
Areesha Ahmad
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
PRIYANKA PATEL
 
AJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdfAJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR
 
Gadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdfGadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdf
PirithiRaju
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
RitabrataSarkar3
 
Direct Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart AgricultureDirect Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart Agriculture
International Food Policy Research Institute- South Asia Office
 
Modelo de slide quimica para powerpoint
Modelo  de slide quimica para powerpointModelo  de slide quimica para powerpoint
Modelo de slide quimica para powerpoint
Karen593256
 
Immersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths ForwardImmersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths Forward
Leonel Morgado
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
University of Hertfordshire
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
MaheshaNanjegowda
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
by6843629
 
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
PsychoTech Services
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
Leonel Morgado
 
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
hozt8xgk
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
Shashank Shekhar Pandey
 
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
Advanced-Concepts-Team
 

Recently uploaded (20)

aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
 
AJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdfAJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdf
 
Gadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdfGadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdf
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
 
Direct Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart AgricultureDirect Seeded Rice - Climate Smart Agriculture
Direct Seeded Rice - Climate Smart Agriculture
 
Modelo de slide quimica para powerpoint
Modelo  de slide quimica para powerpointModelo  de slide quimica para powerpoint
Modelo de slide quimica para powerpoint
 
Immersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths ForwardImmersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths Forward
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
 
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
 
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
 
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
 

Statistical models of shape and appearance

  • 1. 1 Tim Cootes 2014 Statistical Models of Shape and Appearance Tim Cootes Imaging Sciences, The University of Manchester http://personalpages.manchester.ac.uk/staff/timothy.f.cootes (or search for “Tim Cootes”) Aim Interpret images using models of appearance – ‘explain’the image Fit Model Model Parameters Why is it difficult? • Wide variation in shape and appearance Tim Cootes 2013 Overview • Statistical Shape Models • Combined Appearance Models • Matching Algorithms: – Active Shape Models – Active Appearance Models – Constrained Local Models • Groupwise registration – Obtain correspondences to build models Model Building Example Images Shape Models Appearance Models Statistical Analysis Statistical Shape Models • Statistical model of shape variation
  • 2. 2 Building Shape Models • Require labelled training images – landmarks represent correspondences T nn ,y,,y,x,(x )11 x 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 Shape • More generally – Shape is the geometric information invariant to a particular class of transformations • Transformations: – Euclidean (translation + rotation) – Similarity (translation+rotation+scaling) – Affine Statistical Shape Models Given a set of shapes: • Align shapes into common frame – Procrustes analysis • Estimate shape distribution p(x) – Single Gaussian often sufficient • Approximate with parameterised model Pbxx  Aligning Two Shapes • Procrustes analysis: – Find transformation which minimises – Resulting shapes have • identical CoG • approximately the same scale and orientation 2 21 |)(| xx T Aligning a Set of Shapes • Generalised Procrustes Analysis – Find the transformations Ti which minimise – Where – Under the constraint that 2 |)(| iiT xm  )( 1 iiT n xm  1|| m
  • 3. 3 Aligning Shapes • Generalised Procrustes Analysis – Align each shape to the mean Unaligned Align with translation Align with similarity Aligned Shapes • Need to model the aligned shapes x spaceshape Dimensionality Reduction • Co-ordinates often correlated • Nearby points move together 11bpxx  1b x x 1p Principal Component Analysis • Compute eigenvectors of covariance, S • Eigenvectors : main directions • Eigenvalues : variance along eigenvector 11p 22 p x 1x 2x Dimensionality Reduction • Data lies in subspace of reduced dim. • However, for some t, i i nnbb ppxx  11 tjbj  if0 t )isof(Variance jjb  Building Shape Models • Given aligned shapes, { } • Apply PCA – Compute mean and eigenvectors of covar. • P – First t eigenvectors of covar. matrix • b – Shape model parameters ix   332211 pppx Pbxx bbb
  • 4. 4 Face Model Modes • 100 people, 4 images each 1Varying b 2Varying b 3Varying b 4Varying b  332211 pppxx bbb Hand Shape Model 1Varying b 2Varying b 3Varying b Spine Shape Model Knee shape model  1b  2b  3b Xenios Milidonis & ARCOGEN Prostate Model Mode 1 Danny Allen Brain structure modes
  • 5. 5 Appearance Models • Model both shape and texture • Use all image information + = Building Texture Models • For each example, extract texture vector • Normalise vectors • Build eigen-model Texture, g Warp to mean shape ggbPgg  gg  /)( 1gg  Face Texture Model 1b12  12  2b22  22  3b32  32  Combined Models • Shape and texture often correlated – When smile, shadows change (texture) and shape changes • Learning this correlation leads to more compact (and specific) model Learning Correlations sb gbModel assuming shape and texture independent Model accounting for correlations between shape and texture Learning Correlations • For each image in set we have best fitting shape and texture param.s • Construct new vector, • Apply PCA (mean + eigenvec.s of covar.) gs bb ,          g s c b Wb b cQgg cQxx g s   Varying c changes both shape and texture
  • 6. 6 Global Face Model • 400 images from 100 different people Note: Mixes ID, expression, head pose etc Face Variation Gender Change: Ethnic Group: Face Variation Age Change: Model Matching Active Shape Models • Match shape model to new image • Require: – Statistical shape model – Model of image structure at each point Model Point Model of Profile Model of Region Placing model in image • The model points are defined in a model co-ordinate frame • Must apply global transformation,T, to place in image Model Frame Image Pbxx  )( PbxX  T ),,,;( sYXT ccx
  • 7. 7 ASM Search Overview • Local optimisation • Initialise near target – Search nearby for best match, X’ – Update parameters to match to X’. )','( ii YX Local Structure Models • Need to search for local match for each point • Often sufficient to search along profile • Model – Strongest edge – Correlation – Statistical model of profile/patch – Discriminative model Profile Models • Sometimes true point not on strongest edge • Model local structure to help locate the point Strongest edge True position Profile Models • For each point in model – For each training image • Sample values along profile • Normalise – Build statistical model • eg Gaussian PDF using eigen-model approach Or: • Train classifier to distinguish true/false positions Searching Along Profiles • During search we look along a normal for the best match for each profile )(xg x ))(( xp g )(xg Form vector from samples about x Search algorithm • Search along profile • Update global transformation, T, and parameters, b, to minimise 2 |)(| PbxX T ),( ii YX
  • 8. 8 Update step • Hard constraints • Soft constraints • Can also weight by quality of local match tp)p(T  bPbxX subject to|)(|Minimise 2 )(log/|)()(|Minimise 2 r 21 )p(T bPbxX   Multi-Resolution Search • Train models at each level of pyramid – Gaussian pyramid with step size 2 – Use same points but different local models • Start search at coarse resolution – Refine at finer resolution Example : Hip Radiograph 11bpxx  11  33 1  b ASM Example: Spine 3D Face Model Mean 1 2 3 Angela Caunce Trained on approx. 1000 people Matching 3D ASMs • Search for each point independently – Local model depends on current pose • Estimate shape param.s + projection Angela Caunce
  • 9. 9 Face Tracking with a 3D Model Angela Caunce Active Shape Models • Advantages – Fast, simple, accurate – Efficient to extend to 3D • Disadvantages – Only sparse use of image information – Treat local models as independent Active Appearance Models • We have a statistical appearance model – Trained from sets of examples • How do we match to new images? • Use an “Active Appearance Model” – Efficient iterative matching method Model Parameters • Combined model parameters, c – Shape parameters – Texture model parameters • Pose parameters • Texture transformation 1gg   mim c Q Q b b               2 1 g s ),,,( sYX cc ),,,,,,( sYX cccp  Key Step in AAM • Estimate parameter update from current image sample Diff. in Ref Frame pd pd Estimating the update step Linear: R estimated – Using Jacobian – Using Linear Regression – Using Canonical Correlation Analysis Non-linear: – Boosted classifiers – Boosted regression )(sp Fd Rsp d
  • 10. 10 Justification for Jacobian • Residual difference: • Measurements in reference frame: – Model: – Sample warped to ref: • Simplest form : Minimise – Can add robust kernels )()()( pIpIpr imm  cQgpI gm  ˆ)( )(pIim 2 |)(|)( prp E Prediction using the Jacobian p p r prppr δ    )()( d )()()E( pprpprpp ddd  T minimizeTo TT p r p r p r JR                  1 )(δ pRrp  p r J    j i ij dp dr J  Taylor expansion: Estimating Jacobian (gradient) • Need estimate of the Jacobian: • Estimate each term by small displacements on the training set p r J    j i ij dp dr J  d dd 2 )()(   jiji ij pdrpdr J Average over all examples How Good are the Predictions? • Predicted dx vs. actual dx over test set Multi-Resolution Predictions • Predicted dx vs. actual dx over test set AAM Algorithm • Initial estimate Im(p) • Start at coarse resolution • At each resolution – Measure residual error, r(p) – predict correction dp = Rr – p  p - dp – repeat to convergence
  • 11. 11 Face Search Face Search Sub-cortical Structures Initial Position Converged Brain search 3D Model-Based Segmentation Model of femur Using the model to segment the femur Regression Approach • Assume functional relationship s = normalised intensities, or residuals • Learn function from displaced training examples )(sp Fd }{ ipd )}({ itruei ppss d Random perturbations Image samples
  • 12. 12 Linear Regression Rsp d Scale Rotation Y-trans Shape 1X-trans Shape 2 Phil Tresadern frameref.inintensityNormaliseds Rows of R from PC Regression R from Linear Regression better than that from Jacobian Non-linear Regression • Boosted Haar features:    n i iij Hfp 1 ))(( sd featureHaar:)(siH function1DLearnt:)(xfi Phil Tresadern Linear vs Non-linear – Non-linear methods perform better for poor initializations but no better close to solution Phil Tresadern Jacobian Linear Regression Non-linear Regression AAM Tracking • Sequence of AAMs with increasing resolution • Generic – trained on range of people • Search each frame in a few ms Mircea Ionita, Phil Tresadern AAM Developments • Improved optimisation [Matthews &Baker, IJCV2004] • Improved features [Cootes:CVPR01] • 2D+3D AAMs [Xiao:CVPR04] • Canonical Correlation Analysis [Donner:PAMI06] • Update matrix computation [Saragih:ICPR06] • Boosted Appearance Models [Liu:CVPR07] • Non-linear updates [Saragih:ICCV07] • Fast boosted AAMs [Tresadern:BMVC10] • Active Orientation Models [Tzimiropoulos:2013] • Supervised Descent Method [Xiong:CVPR2013] • Explicit Shape Regression [Cao:CVPR12] (And lots of others) Local Model Matching Find shape and pose parameters to optimise Shape param.s Pose params
  • 13. 13 Classification vs Regression Classification: • Is this the point? Classification vs Regression Classification: • Is this the point? Regression: • Where is the point? Finding Points using Regression Voting • Train “Random Forest” to predict offsets Each patch fed into each tree to predict offset and weight Finding Points using Regression Voting • Scan regressor across region • Each patch produces 1 vote per tree • Accumulate votes in an array Fully automated femur detection • Tested on 839 radiographs (ARCOGEN) Error <0.9mm for 99% of cases Claudia Lindner Knee Radiographs Median 95%ile 99%ile Mean point-to-curve error: < 1mm for 99% of 500 images Fully automatic search results using AP knee radiographs. Claudia Lindner, Xenios Milidonis
  • 14. 14 Groupwise Registration • Accurate correspondences required to build shape/appearance models – Slow/hard to manually annotate data … … Tim Cootes 2011 Goal: Fully Automatic System • Build models from unlabelled images … Model Approach … Find the correspondences across the set of images Construct model in an ‘average’ reference frame Representing of Deformation • Use piece-wise linear warp field – Triangular/Tetrahedral mesh – Simple, compact, efficient – Trivially invertible Groupwise Algorithm • Initialisation: Affine registration • Generate control points • Repeat – Build model from current data – For each image • Optimise positions of control points • Until happy/dead/conference deadline etc Image Features Linear Normalisation ),max( ˆ mini ii i gg g   Local z-normalisation Raw Image  gg g i i ˆ  1) z-norm 2) Smoothed |Gx| 3) Smoothed |Gy|
  • 15. 15 Registering Faces • 293 individuals from XM2VTS • Evolution of robust estimate of mean: Example Modes Varying appearance model parameters (Note shadowing caused by glasses) Modes of model built from images without glasses: Hand Radiographs Registered Mean Zhang Pei 3D Registration • Registering 270 3D MR Brain Images • Evolution of the model mean: Summary • Statistical shape models – Powerful representations of objects – Usually only need small number of params • Model matching methods – ASM/CLM: Local search + Shape Regularisation – AAMs: Direct prediction of update steps • Groupwise Registration – Automatically build models from sets of images