# Point distribution model

The point distribution model is a model for representing the mean geometry of a shape and some statistical modes of geometric variation inferred from a training set of shapes.

## Background

It has been developed by Cootes,[1] Taylor et al.[2] and became a standard in computer vision for the statistical study of shape[3] and for segmentation of medical images[2] where shape priors really help interpretation of noisy and low-contrasted pixels/voxels. The latter point leads to active shape models (ASM) and active appearance models (AAM).

Point distribution models rely on landmark points. A landmark is an annotating point posed by an anatomist onto a given locus for every shape instance across the training set population. For instance, the same landmark will designate the tip of the index finger in a training set of 2D hands outlines. Principal component analysis (PCA), for instance, is a relevant tool for studying correlations of movement between groups of landmarks among the training set population. Typically, it might detect that all the landmarks located along the same finger move exactly together across the training set examples showing different finger spacing for a flat-posed hands collection.

## Details

First, a set of training images are manually landmarked with enough corresponding landmarks to sufficiently approximate the geometry of the original shapes. These landmarks are aligned using the generalized procrustes analysis, which minimizes the least squared error between the points.

${\displaystyle k}$ aligned landmarks in two dimensions are given as

${\displaystyle \mathbf {X} =(x_{1},y_{1},\ldots ,x_{k},y_{k})}$.

It's important to note that each landmark ${\displaystyle i\in \lbrace 1,\ldots k\rbrace }$ should represent the same anatomical location. For example, landmark #3, ${\displaystyle (x_{3},y_{3})}$ might represent the tip of the ring finger across all training images.

Now the shape outlines are reduced to sequences of ${\displaystyle k}$ landmarks, so that a given training shape is defined as the vector ${\displaystyle \mathbf {X} \in \mathbb {R} ^{2k}}$. Assuming the scattering is gaussian in this space, PCA is used to compute normalized eigenvectors and eigenvalues of the covariance matrix across all training shapes. The matrix of the top ${\displaystyle d}$ eigenvectors is given as ${\displaystyle \mathbf {P} \in \mathbb {R} ^{2k\times d}}$, and each eigenvector describes a principal mode of variation along the set.

Finally, a linear combination of the eigenvectors is used to define a new shape ${\displaystyle \mathbf {X} '}$, mathematically defined as:

${\displaystyle \mathbf {X} '={\overline {\mathbf {X} }}+\mathbf {P} \mathbf {b} }$

where ${\displaystyle {\overline {\mathbf {X} }}}$ is defined as the mean shape across all training images, and ${\displaystyle \mathbf {b} }$ is a vector of scaling values for each principal component. Therefore, by modifying the variable ${\displaystyle \mathbf {b} }$ an infinite number of shapes can be defined. To ensure that the new shapes are all within the variation seen in the training set, it is common to only allow each element of ${\displaystyle \mathbf {b} }$ to be within ${\displaystyle \pm }$3 standard deviations, where the standard deviation of a given principal component is defined as the square root of its corresponding eigenvalue.

PDM's can be extended to any arbitrary number of dimensions, but are typically used in 2D image and 3D volume applications (where each landmark point is ${\displaystyle \mathbb {R} ^{2}}$ or ${\displaystyle \mathbb {R} ^{3}}$).

## Discussion

An eigenvector, interpreted in euclidean space, can be seen as a sequence of ${\displaystyle k}$ euclidean vectors associated to corresponding landmark and designating a compound move for the whole shape. Global nonlinear variation is usually well handled provided nonlinear variation is kept to a reasonable level. Typically, a twisting nematode worm is used as an example in the teaching of kernel PCA-based methods.

Due to the PCA properties: eigenvectors are mutually orthogonal, form a basis of the training set cloud in the shape space, and cross at the 0 in this space, which represents the mean shape. Also, PCA is a traditional way of fitting a closed ellipsoid to a Gaussian cloud of points (whatever their dimension): this suggests the concept of bounded variation.

The idea behind PDM's is that eigenvectors can be linearly combined to create an infinity of new shape instances that will 'look like' the one in the training set. The coefficients are bounded alike the values of the corresponding eigenvalues, so as to ensure the generated 2n/3n-dimensional dot will remain into the hyper-ellipsoidal allowed domain—allowable shape domain (ASD).[2]