Skip to content

sfm_meanAndVarianceAlongRows

sfmfunctionOpenCV 5.0.0
import { sfm_meanAndVarianceAlongRows } from '@banou/opencv-wasm'

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

ARGUMENTSA, mean, variance
FUNCTIONsfm_meanAndVarianceAlongRows
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Computes the mean and variance of a given matrix along its rows.

sfm_meanAndVarianceAlongRows(A: Mat, mean: Mat, variance: Mat): void;
A

Input NxN matrix.

mean

Output destination, filled by the native operation. Output Nx1 matrix with computed mean.

variance

Output destination, filled by the native operation. Output Nx1 matrix with computed variance.

It computes in the same way as woud do reduce but with \a Variance 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.