public class GeneralisedProcrustesAnalysis extends Object
Constructor and Description |
---|
GeneralisedProcrustesAnalysis(float threshold)
Construct the
GeneralisedProcrustesAnalysis with the given
parameters. |
GeneralisedProcrustesAnalysis(float threshold,
int maxIters)
Construct the
GeneralisedProcrustesAnalysis with the given
parameters. |
Modifier and Type | Method and Description |
---|---|
PointList |
align(List<PointList> shapes)
Align the input shapes to the "mean" shape.
|
static PointList |
alignPoints(List<PointList> inputShapes,
float threshold,
int maxIters)
Align the input shapes to the "mean" shape using Generalised Procrustes Analysis.
|
protected static PointList |
alignPointsAndAverage(List<PointList> shapes,
PointList reference,
double referenceScaling,
Point2d referenceCog) |
public GeneralisedProcrustesAnalysis(float threshold, int maxIters)
GeneralisedProcrustesAnalysis
with the given
parameters. The alignment process is
iterative and stops after a given number of iterations (last parameter)
or when the Procrustes Distance between the current mean and previous
reference shape is less than a threshold (i.e. the rate of change is small) (first parameter).threshold
- the threshold on the Procrustes Distance at which to stop iteratingmaxIters
- the maximum number of iterations.public GeneralisedProcrustesAnalysis(float threshold)
GeneralisedProcrustesAnalysis
with the given
parameters. The alignment process is
iterative and stops after a default number of iterations (10)
or when the Procrustes Distance between the current mean and previous
reference shape is less than a threshold (i.e. the rate of change is small)threshold
- the threshold on the Procrustes Distance at which to stop iteratingpublic PointList align(List<PointList> shapes)
shapes
- The shapes to alignpublic static PointList alignPoints(List<PointList> inputShapes, float threshold, int maxIters)
inputShapes
- The shapes to alignthreshold
- the threshold on the Procrustes Distance at which to stop iteratingmaxIters
- the maximum number of iterations.