GeneralizedProcrustesAnalysis

class menpo.transform.GeneralizedProcrustesAnalysis(sources, target=None)[source]

Bases: MultipleAlignment

Class for aligning multiple source shapes between them.

After construction, the AlignmentSimilarity transforms used to map each source optimally to the target can be found at transforms.

Parameters:
  • sources (list of PointCloud) – List of pointclouds to be aligned.
  • target (PointCloud) –

    The target PointCloud to align each source to. If None, then the mean of the sources is used.

    Default: None

  • Raises
  • -------
  • ValueError – Need at least two sources to align
mean_aligned_shape()[source]

Returns the mean of the aligned shapes.

Type:PointCloud
mean_alignment_error()[source]

Returns the average error of the recursive procrustes alignment.

Type:float