Skip to content

invertAffineTransform

geometryfunctionOpenCV 5.0.0
import { invertAffineTransform } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSM, iM
FUNCTIONinvertAffineTransform
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Inverts an affine transformation.

The function computes an inverse affine transformation represented by 2 \times 3 matrix M:

\begin{bmatrix} a_{11} & a_{12} & b_1  \\ a_{21} & a_{22} & b_2 \end{bmatrix}

The result is also a 2 \times 3 matrix of the same type as M.

invertAffineTransform(M: Mat, iM: Mat): void;
M

Original affine transformation.

iM

Output destination, filled by the native operation. Output reverse affine transformation.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.