batch_create_matrices
- lib.align.aligned_utils.batch_create_matrices(size: int, rotation: npt.NDArray[np.float32], scale: npt.NDArray[np.float32] | None = None, translation: npt.NDArray[np.float32] | None = None) npt.NDArray[np.float32]
Generate affine transformation matrices for the given rotations, scales and translations
- Parameters:
size (int) – The size of the image that the matrix is transforming to
rotation (npt.NDArray[np.float32]) – A 1D batch of rotation amounts or
Nonefor no rotation. Default:Nonescale (npt.NDArray[np.float32] | None) – A 1D batch of scale amounts or
Nonefor no scaling. Default:Nonetranslation (npt.NDArray[np.float32] | None) – A 2D batch of (x, y) translation amounts or
Nonefor no translation. Default:None
- Return type:
The (3, 3) transformation matrices for the requested transform