AAMToolbox viewing one population in shape space

From BanghamLab
Revision as of 20:07, 21 February 2012 by AndrewBangham (talk | contribs)
Jump to navigation Jump to search

Back to Tutorial pages

What is Shape Space?

Mean shape

The pink diamond shows the position of the mean cartoon shape plotted in shape space.

Each spot represents one of the input point models (images).

Each point model represents 38 points i.e. 38*2=76 values in the normal two dimensional viewing space OR a single point in 72 dimensional space. However, we cannot visualise 78 dimensional space so we have used PCA to choose a view point (a rotation of the space) such that we can see the two principle components. This allows us to visualise and focus on the significant (in the sense of accounting for the most variance) parameters. Of course, it might be another component that is most significant in biological terms. It is also quite possible that the biologically important parameters are correlated non-linearly in which case they could be invisible in this project because they are distributed into the new components as awkwardly as they were in the original data.

Shape space
Shape Space: the principle component is plotted on the x-axis (abscissa) and the component that accounts for the second largest amount of variation is plotted on the y-axis (ordinate). Pink diamond shows the position of the mean shape. The other points

How do we view shape space?

From the AAMToolbox interface click the View Shape Space button.

Shape Space Viewer

  1. First Add samples (Add button).
  2. Load the sample data (point models).
  3. Plot Data, optionally make the axis equal (to keep a balanced view)
    • Change Colour (far right button) to select a colour
    • Ellipse to draw an ellipse around most of the data

Exploring further.

Exploring the data in shape space, where are the samples?

Each' pink circle marker represents a data sample'. Right clicking on a marker opens a context menu. Here we have selected to view the associated original image and its point model (shown to the left).

Showing the PC values causes them to be echoed to the command window.

Shape space
Shape Space context menu for the markers. The top-left sample has been selected and the associated image/point model is shown on the left.

What is the distance between samples?

Right clicking on a marker opens a context menu. Here we have selected to view the distance between the two visible markers. The distances (and squared distances) for each of the components is shown in the right.

Showing the PC values causes them to be echoed to the command window.

Shape space
Shape Space: distance between two points.

Can we interpolate between samples?

Here we have selected to add a 'vector' (arrow) between one point and another.

Click on the Vectors button in the Shape Space Viewer interface and the vector will be displayed as an arrow. Click on a sequence of samples to create a path through shape space.

Shape space
Shape Space: distance between two points.