local2global.utilsΒΆ

Implementation of local2global algorithm

Functions

ensure_extension

check filename for extension and add it if necessary

nearest_orthogonal

Compute nearest orthogonal matrix to a given input matrix

orthogonal_MSE_error

Compute the MSE between two sets of orthogonal transformations up to a global transformation

procrustes_error

compute the procrustes alignment error between two sets of coordinates

relative_orthogonal_transform

Find the best orthogonal transformation aligning two sets of coordinates for the same nodes

relative_scale

compute relative scale of two sets of coordinates for the same nodes

seed

Change seed of random number generator.

transform_error

Compute the recovery error based on tracked transformations.

Classes

AlignmentProblem

Implements the standard local2global algorithm using an unweighted patch graph

Patch

Class for patch embedding

WeightedAlignmentProblem

Variant of the local2global algorithm where patch edges are weighted according to the number of nodes in the overlap.