Skip to content

transpose

Core and matricesfunctionOpenCV 5.0.0
import { transpose } from '@banou/opencv-wasm'

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

ARGUMENTSsrc, dst
FUNCTIONtranspose
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Transposes a matrix.

The function cv::transpose transposes the matrix src :

\texttt{dst} (i,j) =  \texttt{src} (j,i)

Note: No complex conjugation is done in case of a complex matrix. It should be done separately if needed.

transpose(src: Mat, dst: Mat): void;
src

input array.

dst

Output destination, filled by the native operation. output array of the same type as src.

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.