GeneralizedProcrustesAnalysis¶
-
class
menpo.transform.
GeneralizedProcrustesAnalysis
(sources, target=None, allow_mirror=False)[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
, optional) – The targetPointCloud
to align each source to. IfNone
, then the mean of the sources is used. - allow_mirror (bool, optional) – If
True
, the Kabsch algorithm check is not performed, and mirroring of the Rotation matrix is permitted.
Raises: ValueError
– Need at least two sources to align-
mean_aligned_shape
()[source]¶ Returns the mean of the aligned shapes.
Type: PointCloud
- sources (list of