ACTIVE SHAPE MODELS Yogesh Singh Rawat SOC NUS September 19, 2012 - - PowerPoint PPT Presentation

active shape models
SMART_READER_LITE
LIVE PREVIEW

ACTIVE SHAPE MODELS Yogesh Singh Rawat SOC NUS September 19, 2012 - - PowerPoint PPT Presentation

ACTIVE SHAPE MODELS Yogesh Singh Rawat SOC NUS September 19, 2012 Active Shape Models T.F.Cootes, C.J.Taylor, D.H.Cooper, J.Graham, Active Shape Models: Their Training and Application. Computer Vision and Image Understanding, V16,


slide-1
SLIDE 1

ACTIVE SHAPE MODELS

Yogesh Singh Rawat SOC NUS

September 19, 2012

slide-2
SLIDE 2

Active Shape Models

 T.F.Cootes, C.J.Taylor, D.H.Cooper, J.Graham, “Active

Shape Models: Their Training and Application.” Computer Vision and Image Understanding, V16, N1, January, pp. 38-59, 1995.

slide-3
SLIDE 3

What we will talk about?

 Modeling of objects which can change shape.

slide-4
SLIDE 4

Example

Image Source - Google Images

slide-5
SLIDE 5

Example

Image Source - Google Images

slide-6
SLIDE 6

Example

Image Source - Google Images

slide-7
SLIDE 7

Example

Image Source - Google Images

slide-8
SLIDE 8

Problem

 Not a new problem, has been solved before.  New method to solve the problem.  Better then earlier methods.

slide-9
SLIDE 9

Possible Shapes of Human Body

Image Source - Google Images

slide-10
SLIDE 10

Is This Possible?

slide-11
SLIDE 11

Is This Possible?

Model - YES

slide-12
SLIDE 12

Is This Possible?

Real Life - NO

slide-13
SLIDE 13

Is This Possible?

Motivation for this work

slide-14
SLIDE 14

Existing Models

 “Hand Crafted” Models  Articulated Models  Active Contour Models – “Snakes”  Fourier Series Shape Models  Statistical Models of Shape  Finite Element Models

slide-15
SLIDE 15

Problem with Existing Models

 Nonspecific class deformation

 An object should transform only as per the

characteristics of the class.

slide-16
SLIDE 16

Problem with Existing Models

 If two shape parameters are correlated over a set

  • f shapes then their variation does not restrict

shapes to any set of class.

slide-17
SLIDE 17

Problem with Existing Models

No restriction on deformation Not a robust model

slide-18
SLIDE 18

Goals

 Deform to characteristics of the class represented  “Learn” specific patterns of variability from a training set  Specific to ranges of variation  Searches images for represented structures  Classify shapes  Robust (noisy, cluttered, and occluded image)

slide-19
SLIDE 19

Point Distribution Model

 Captures variability of training set by calculating mean shape

and main modes of variation

 Each mode changes the shape by moving landmarks along

straight lines through mean positions

 New shapes created by modifying mean shape with weighted

sums of modes

slide-20
SLIDE 20

PDM Construction

Manual Labeling Alignment Statistical Analysis

slide-21
SLIDE 21

Labeling the Training Set

 Represent shapes by points  Useful points are marked called “landmark points”  Manual Process

slide-22
SLIDE 22

Aligning the Training Set

 xi is a vector of n points describing the the ith shape in the set:

xi=(xi0, yi0, xi1, yi1,……, xik, yik,……,xin-1, yin-1)T

 Minimize:

“weighted sum of squares of distances between equivalent points”

slide-23
SLIDE 23

Aligning the Training Set

 Minimize:

Ej = (xi – M(sj, θj)[xk] – tj)TW(xi – M(sj, θj)[xk] – tj)

 Weight matrix used: 1 1 − − =

      = ∑

n l R k

kl

V w

 More significance is given to those points which are

stable over the set.

slide-24
SLIDE 24

Alignment Algorithm

 Align each shape to first shape by rotation, scaling,

and translation

 Repeat

 Calculate the mean shape  Normalize the orientation, scale, and origin of the

current mean to suitable defaults

 Realign every shape with the current mean

 Until the process converges

slide-25
SLIDE 25

Mean Normalization

 Guarantees convergence  Not formally proved  Independent of initial shape aligned to

slide-26
SLIDE 26

Aligned Shape Statistics

 PDM models “cloud” variation in 2n

space

 Assumptions:

 Points lie within “Allowable Shape

Domain”

 Cloud is ellipsoid (2n-D)

slide-27
SLIDE 27

Statistics

 Center of ellipsoid is mean shape  Axes are found using PCA

 Each axis yields a mode of variation  Defined as , the eigenvectors of covariance matrix

, such that ,where is the kth eigenvalue of S

=

=

N i

N

1

1

i

x x

k

p

=

=

N i T i

d d N

1

1 x x S

i

k k k

p Sp λ =

k

λ

slide-28
SLIDE 28

Approximation

 Most variation described by t-modes  Choose t such that a small number of modes

accounts for most of the total variance

=

=

n k k T 2 1

λ λ  If total variance =

=

=

t i i A 1

λ λ

T A

λ λ ≅

and the approximated variance = , then

slide-29
SLIDE 29

Generating New Example Shapes

 Shapes of training set approximated by:

Pb x x + =

slide-30
SLIDE 30

Generating New Example Shapes

 Shapes of training set approximated by:

where is the matrix of the first t eigenvectors and is a vector of weights

 Vary bk within suitable limits for similar shapes

Pb x x + =

) (

t 2 1

...p p p P =

T t

b b b ) ... (

2 1

= b

k k k

b λ λ 3 3 ≤ ≤ −

slide-31
SLIDE 31

Experiments

 Applied to:

 Resistors  “Heart”  Hand  “Worm” model

slide-32
SLIDE 32

Resistor Example

Training Set

slide-33
SLIDE 33

Resistor Example

 32 points  3 parameters

capture variability

slide-34
SLIDE 34

Resistor Example (cont.’d)

 Lacks structure  Independence of

parameters b1 and b2

 Will generate “legal”

shapes

slide-35
SLIDE 35

Resistor Example (cont.’d)

slide-36
SLIDE 36

Resistor Example (cont.’d)

slide-37
SLIDE 37

Resistor Example (cont.’d)

slide-38
SLIDE 38

“Heart” Example

 66 examples  96 points

 Left ventricle  Right ventricle  Left atrium

 Traced by

cardiologists

slide-39
SLIDE 39

“Heart” Example

slide-40
SLIDE 40

“Heart” Example (cont.’d)

slide-41
SLIDE 41

“Heart” Example (cont.’d)

 Varies Width  Varies Septum  Varies LV  Varies Atrium

slide-42
SLIDE 42

Hand Example

 18 shapes  72 points  12 landmarks at

fingertips and joints

slide-43
SLIDE 43

Hand Example (cont.’d)

 96% of variability due

to first 6 modes

 First 3 modes  Vary finger movements

slide-44
SLIDE 44

“Worm” Example

 84 shapes  Fixed width  Varying curvature and

length

slide-45
SLIDE 45

“Worm” Example (cont.’d)

 Represented by 12

point

 Breakdown of PDM

slide-46
SLIDE 46

“Worm” Example (cont.’d)

 Curved cloud  Mean shape:

 Varying width  Improper length

slide-47
SLIDE 47

“Worm” Example (cont.’d)

 Linearly

independent

 Nonlinear

dependence

slide-48
SLIDE 48

“Worm” Example

 Effects of varying first 3

parameters:

 1st mode is linear approximation

to curvature

 2nd mode is correction to poor

linear approximation

 3rd approximates 2nd order

bending

slide-49
SLIDE 49

PDM Improvements

 Automated labeling  3D PDMs  Multi-layered PDMs  Chord Length Distribution Model

slide-50
SLIDE 50

PDMs to Search an Image - ASMs

 Estimate initial position of model  Displace points of model to “better fit” data  Adjust model parameters  Apply global constraints to keep model “legal”

slide-51
SLIDE 51

Adjusting Model Points

 Along normal to model boundary proportional to

edge strength

slide-52
SLIDE 52

Adjusting Model Points

 Vector of adjustments:

T n n

dY dX dY dX d ) , ,..., , (

1 1 − −

= X

slide-53
SLIDE 53

Calculating Changes in Parameters

 Initial position:  Move X as close to new position (X + dX)  Calculate dx to move X by dX  Update parameters to better fit image  Not usually consistent with model constraints  Residual adjustments made by deformation

c

s M X x X + = ] )[ , ( θ

) ( ) ( ] )[ , ( ), 1 ( ( x X X X x x d d d d ds s M

c c

+ = + + + + θ θ

where

, ] ))[ , ( , )) 1 ( ((

1

x y x − − + =

θ θ d ds s M d

c

d d s M X X x y − + = } )[ , ( θ

slide-54
SLIDE 54

Model Parameter Space

 Transforms dx to parameter space giving allowable

changes in parameters, db

 Recall:

 Find db such that  = (

) yields

 Update model parameters within limits

Pb x x + =

) ( b b P x x x d d + + ≈ +

Pb x +

x b b P x d d − + + ) (

x P b d d

T

=

slide-55
SLIDE 55

ASM Application to Hand

 72 points  Clutter and occlusions  8 degrees of freedom  Adjustments made finding

strongest edge

 100, 200, 350 iterations

slide-56
SLIDE 56

ASM Application to Hand

slide-57
SLIDE 57

ASM Application to Hand

slide-58
SLIDE 58

Applications

 Medical  Industrial  Surveillance  Biometrics

slide-59
SLIDE 59

Conclusions

 Object identification and location is robust.  Constraint to be similar to shapes of the training sets.

slide-60
SLIDE 60

Extension

Active Appearance Model

1.

T.F.Cootes, G.J. Edwards and C.J.Taylor. "Active Appearance Models", in Proc. European Conference on Computer Vision 1998 (H.Burkhardt & B. Neumann Ed.s). Vol. 2, pp. 484-498, Springer, 1998

2.

T.F.Cootes, G.J. Edwards and C.J.Taylor. "Active Appearance Models", IEEE PAMI, Vol.23, No.6, pp.681-685, 2001

slide-61
SLIDE 61

Active Appearance Model

Model “Shape” “texture”

slide-62
SLIDE 62

Active Appearance Model

slide-63
SLIDE 63

THANK YOU

slide-64
SLIDE 64

References

1.

Cootes, Taylor, Cooper, Graham, “Active Shape Models: Their Training and Application.” Computer Vision and Image Understanding, V16, N1, January, pp. 38-59, 1995.

2.

T.F.Cootes, G.J. Edwards and C.J.Taylor. "Active Appearance Models", in Proc. European Conference on Computer Vision 1998 (H.Burkhardt & B. Neumann Ed.s). Vol. 2, pp. 484-498, Springer, 1998

3.

T.F.Cootes, G.J. Edwards and C.J.Taylor. "Active Appearance Models", IEEE PAMI, Vol.23, No.6, pp.681-685, 2001