matMulDeriv
import { matMulDeriv } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Computes partial derivatives of the matrix product for each multiplied matrix.
matMulDeriv(A: Mat, B: Mat, dABdA: Mat, dABdB: Mat): void;AFirst multiplied matrix.
BSecond multiplied matrix.
dABdAOutput destination, filled by the native operation. First output derivative matrix d(A*B)/dA of size
\texttt{A.rows*B.cols} \times {A.rows*A.cols}.dABdBOutput destination, filled by the native operation. Second output derivative matrix d(A*B)/dB of size
\texttt{A.rows*B.cols} \times {B.rows*B.cols}.The function computes partial derivatives of the elements of the matrix product
A*Bwith regard to the elements of each of the two input matrices. The function is used to compute the Jacobian matrices in #stereoCalibrate but can also be used in any other similar optimization function.
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.