Tutorials on the Shape modelling toolbox: Difference between revisions

From BanghamLab
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
=Four ways to use ''AAMToolbox ''=
=Four ways to use ''AAMToolbox ''=
1) [[AAMToolbox Documentation#2 Creating shape models in 2D| '''Analysing shapes.''']] i.e. the arrangement of points around a shape<br><br>
1) [[AAMToolbox Documentation#2 Creating shape models in 2D| '''Analysing shapes.''']] i.e. the arrangement of points around a shape<br><br>
2) [[AAMToolbox Documentation#1 Creating shape models in 2D| '''Comparing shapes from samples of different groups''']] for example, comparing faces from different cartoon characters<br><br>
2) [[AAMToolbox Documentation#5 Viewing the data in shape space| '''Viewing the data in ''shape space''.''']] i.e. approximating the data with two principle components<br><br>
3) [[AAMToolbox Documentation#3 Analysing both shape and appearance in 2D|'''Analysing shape and appearance.''']] In addition to the points around a shape, analyse the appearance (grey scale or colour) within the shape.<br><br>  
3) [[AAMToolbox Documentation#1 Creating shape models in 2D| '''Comparing shapes from samples of different groups''']] for example, comparing faces from different cartoon characters<br><br>
4) [[AAMToolbox Documentation#4 Creating shape models in 3D|'''Analysing 3D shapes''']]  
4) [[AAMToolbox Documentation#3 Analysing both shape and appearance in 2D|'''Analysing shape and appearance.''']] In addition to the points around a shape, analyse the appearance (grey scale or colour) within the shape.<br><br>  
 
5) [[AAMToolbox Documentation#4 Creating shape models in 3D|'''Analysing 3D shapes''']]  
='''1''' Analysing 2D shapes using the Graphical User Interface=
<br><br>
 
'''How to use these tutorials.''' First [[AAMToolbox Download|download and install the AAMToolbox]]. A zip file containing the project (''PRJ_CartoonFaces'') is available [http://cmpdartsvr1.cmp.uea.ac.uk/downloads/software/PRJ_CartoonFaces.zip here]. Download and unzip into a directory. Then, from Matlab, change directory into the project and launch the AAMToolbox  
'''How to use the tutorial.''' First [[AAMToolbox Download|download and install the AAMToolbox]]. A zip file containing the project (''PRJ_CartoonFaces'') is available [http://cmpdartsvr1.cmp.uea.ac.uk/downloads/software/PRJ_CartoonFaces.zip here]. Download and unzip into a directory. Then, from Matlab, change directory into the project and launch the AAMToolbox  
  cd PRJ_CartoonFaces
  cd PRJ_CartoonFaces
  AAMToolbox  
  AAMToolbox  
Line 25: Line 24:
  Image:CB9.jpg
  Image:CB9.jpg
  </gallery>
  </gallery>
='''1''' '''How''' to analyse 2D shapes using the Graphical User Interface=
The process of analysing a set of images is:-
The process of analysing a set of images is:-
{| border="0" cellpadding="5" cellspacing="3"
{| border="0" cellpadding="5" cellspacing="3"
Line 39: Line 39:
#View the result by varying each important component in turn. We call this ''walking'' the shape model. This movie shows a walk.
#View the result by varying each important component in turn. We call this ''walking'' the shape model. This movie shows a walk.
#*[[AAMToolbox viewing statistical model|Tutorial on viewing statistical model.]]
#*[[AAMToolbox viewing statistical model|Tutorial on viewing statistical model.]]
|width="300pt"|<wikiflv width="300" height="300" logo="false"  loop="true" background="white">CartoonPC1.flv|CartoonPC1.png</wikiflv>
|width="300pt"|<wikiflv width="300" height="300" logo="false"  loop="true" background="white">CartoonPC1.flv|CartoonPC1.png</wikiflv><br>
Mean shape (points) joined by lines. The movie shows deviations from the mean by varying the principle component.
|}
|}
='''2''' Viewing the data in ''Shape-Space''=
='''2''' '''Viewing the results''' in ''Shape-Space''=


{| border="0" cellpadding="5" cellspacing="3"
{| border="0" cellpadding="5" cellspacing="3"
Line 51: Line 52:
|width="300pt"|<wikiflv width="300" height="300" logo="false"  loop="true" background="white">Movie-2012-02-15t10-48-49.flv|CartoonPC1.png</wikiflv>
|width="300pt"|<wikiflv width="300" height="300" logo="false"  loop="true" background="white">Movie-2012-02-15t10-48-49.flv|CartoonPC1.png</wikiflv>
|}
|}
='''3''' Comparing shapes from samples of different groups'=
='''3''' '''Comparing shapes''' from samples of different groups'=


{| border="0" cellpadding="5" cellspacing="3"
{| border="0" cellpadding="5" cellspacing="3"

Revision as of 19:05, 20 February 2012

Back to AAMToolbox Documentation

The models shown in these tutorials illustrate features of the AAMToolbox software. They are not designed to understand the shape and appearance modelling which is better done from the published literature for example.
Viewing these pages. Some versions of Firefox and Explorer do not create satisfactory prints even though you can view the pages with no problems. Chrome does appear to produce good printouts.

Four ways to use AAMToolbox

1) Analysing shapes. i.e. the arrangement of points around a shape

2) Viewing the data in shape space. i.e. approximating the data with two principle components

3) Comparing shapes from samples of different groups for example, comparing faces from different cartoon characters

4) Analysing shape and appearance. In addition to the points around a shape, analyse the appearance (grey scale or colour) within the shape.

5) Analysing 3D shapes

How to use these tutorials. First download and install the AAMToolbox. A zip file containing the project (PRJ_CartoonFaces) is available here. Download and unzip into a directory. Then, from Matlab, change directory into the project and launch the AAMToolbox

cd PRJ_CartoonFaces
AAMToolbox 

This project contains as set of faces that have been analysed using 2D shape models

1 How to analyse 2D shapes using the Graphical User Interface

The process of analysing a set of images is:-

  1. Create a new project. AAMToolbox project names are automatically prefaced with PRJ_. They have a particular directory structure and the images to be analysed need to be copied into the subdirectory called Cropped. It is best if they are all the same size.
  2. Create a point model template. Points are placed around the object of interest, i.e. around a face or leaf. The set of points constitute the point model. Every image will be marked up in the same way.
  3. Move the points to the corresponding positions in each image in turn. The positions must correspond to the same material points in each image, i.e. the tip of the leaf, the corner of an eye, or halfway along a line between the two ends of the mouth.
  4. Generate the shape model using principal component analysis (PCA)
  5. View the result by varying each important component in turn. We call this walking the shape model. This movie shows a walk.
<wikiflv width="300" height="300" logo="false" loop="true" background="white">CartoonPC1.flv|CartoonPC1.png</wikiflv>

Mean shape (points) joined by lines. The movie shows deviations from the mean by varying the principle component.

2 Viewing the results in Shape-Space

  1. PCA allows us to view the statistical model from a new angle: Shape Space. This movie shows a trajectory through shape space.
<wikiflv width="300" height="300" logo="false" loop="true" background="white">Movie-2012-02-15t10-48-49.flv|CartoonPC1.png</wikiflv>

3 Comparing shapes from samples of different groups'

  1. View the result by varying each important component in turn. We call this walking the shape model. This movie shows a walk.
<wikiflv width="300" height="300" logo="false" loop="true" background="white">ShapeVectorWalkShowShape-21-Jun-2011-14-28-24 VD.flv|ShapeVectorWalkShowShape-21-Jun-2011-14-28-24 VD_First.png</wikiflv>

1 B