get_matrix_scaling
- lib.align.aligned_utils.get_matrix_scaling(matrix: ndarray) tuple[int, int]
Given a matrix, return the cv2 Interpolation method and inverse interpolation method for applying the matrix on an image.
- Parameters:
matrix (ndarray) – The transform matrix to return the interpolator for
- Returns:
The interpolator and inverse interpolator for the given matrix. This will be (Cubic, Area) for
an upscale matrix and (Area, Cubic) for a downscale matrix
- Return type:
tuple[int, int]