xdem.coreg.AffineCoreg.from_matrix# classmethod AffineCoreg.from_matrix(matrix)[source]# Instantiate a generic Coreg class from a transformation matrix. Parameters: matrix (ndarray[Any, dtype[floating[Any]]]) – A 4x4 transformation matrix. Shape must be (4,4). Raises: ValueError – If the matrix is incorrectly formatted. Return type: AffineCoreg Returns: The instantiated generic Coreg class.