AAMToolbox simplify point model: Difference between revisions

From BanghamLab
Jump to navigation Jump to search
(Created page with 'Back to Tutorial pages<br> 700px|Model Viewer<br><br> ===<span style="color:FireBrick;">Finding…')
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Tutorials on the Shape modelling toolbox#1|Back to Tutorial pages]]<br>
[[Tutorials on the Shape modelling toolbox#1|Back to Tutorial pages]]<br>
==<span style="color:Navy;">'''What does it mean''' to best fit the shape model to a particular image point model</span>==
All the point models were used to find the shape model. If there were just two dimensions, this would be similar to fitting a straight line to ''y=ax'' by finding ''a''.  In the Cartoons shape model, there are 34*2=68 dimensions yielding 68 components. However, most of these represent noise and the Stats Model Generator found that 95% of the variance could be accounted for by just 5 of the components. So we should (actually, might is a better word) be able to represent any of the point models that we used to build the shape model.  Here, we '''project a particular point model into shape space, take the 5 principle components (setting the rest to zero), and project the result back into our normal viewing space'''. The result should look similar to the point model itself.<br><br>


[[File:Walk_model_AAMToolbox.png|700px|Model Viewer]]<br><br>
[[File:Loading_point_model_walk_AAMToolbox.png|700px|Loading a point model into ModelViewer]]<br>
===<span style="color:FireBrick;">Finding the best fit to the point model of an image</span>===
In the act of''' loading an image file''' (highlighted in sub-window). Red ellipses highlight the buttons needed to load an image - actually the point model associated with an image - calculate the associated weights and reset the model back to the mean again. It is important to reset back to the mean before each import.<br>
{| border="0" cellpadding="5" cellspacing="3"
The reset is required because each time a point model is imported, it's deviation from the mean is added to the current model. Thus, to add the deviations for one place in shape space to another, first load the other (reference shape) by using the ''Import Ref. shape'' button.<br><br>
|- valign="top"
[[File:Deviations_of_a_particular_point_model_AAMToolbox.png|700px|Point model in ModelViewer]]<br>
|width="700pt"|The dots on the right represent the mean positions of the landmarks averaged over all the images in the model. These points mean more to us once they are joined by lines (see above screenshot). Capturing that higher meaning requires more analysis or, as in this case, human interaction (when we created the template).<br><br>Note that the point models had been normalised to the''' same scale, same rotation and same translational''' position.<br>
Result of Calculating the Weights (see button) . Notice that the bars representing the principle components have been adjusted to show how far this approximation to the point model deviates from the mean.<br><br>
|width="200pt"|[[File:Mean_shape.png|200px|The Model generator control panel]]
 
|}
Here, we have referred to''' shape space but what is it'''? Project into shape space? See next tutorial.

Latest revision as of 20:39, 20 February 2012

Back to Tutorial pages

What does it mean to best fit the shape model to a particular image point model

All the point models were used to find the shape model. If there were just two dimensions, this would be similar to fitting a straight line to y=ax by finding a. In the Cartoons shape model, there are 34*2=68 dimensions yielding 68 components. However, most of these represent noise and the Stats Model Generator found that 95% of the variance could be accounted for by just 5 of the components. So we should (actually, might is a better word) be able to represent any of the point models that we used to build the shape model. Here, we project a particular point model into shape space, take the 5 principle components (setting the rest to zero), and project the result back into our normal viewing space. The result should look similar to the point model itself.

Loading a point model into ModelViewer
In the act of loading an image file (highlighted in sub-window). Red ellipses highlight the buttons needed to load an image - actually the point model associated with an image - calculate the associated weights and reset the model back to the mean again. It is important to reset back to the mean before each import.
The reset is required because each time a point model is imported, it's deviation from the mean is added to the current model. Thus, to add the deviations for one place in shape space to another, first load the other (reference shape) by using the Import Ref. shape button.

Point model in ModelViewer
Result of Calculating the Weights (see button) . Notice that the bars representing the principle components have been adjusted to show how far this approximation to the point model deviates from the mean.

Here, we have referred to shape space but what is it? Project into shape space? See next tutorial.