surfa.transform.affine_equal#

surfa.transform.affine_equal(a, b, matrix_only=False, tol=0.0)#

Test whether two affine transforms are equivalent.

Parameters
  • a (Affine) – Input affine transforms.

  • b (Affine) – Input affine transforms.

  • matrix_only (bool) – Only compare matrix data, ignoring source and target information.

  • tol (float) – Absolute error tolerance between affine matrices.

Returns

Returns True if the affines are equal.

Return type

bool