batch_umeyama

lib.align.aligned_face.batch_umeyama(source: ndarray, destination: ndarray, estimate_scale: bool) ndarray

A batch implementation to estimate N-D similarity transformation with or without scaling.

Parameters:
  • source (ndarray) – (B, M, N) array source coordinates.

  • destination (ndarray) – (M, N) array destination coordinates.

  • estimate_scale (bool) – Whether to estimate scaling factor.

Returns:

  • (B, N + 1, N + 1) The homogeneous similarity transformation matrix. The matrix contains NaN

  • values only if the problem is not well-conditioned.

Return type:

ndarray

References