The following Matlab project contains the source code and Matlab examples used for procrustes analysis.
by Kendall (1984) and more
% this is the implementation for Procrusstes Shape Analysis
% compute shape distance
% mean shape of group of shapes
% PC of group of shapes
% Permutation test of mean