sfm_meanAndVarianceAlongRows
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
Computes the mean and variance of a given matrix along its rows.
sfm_meanAndVarianceAlongRows(A: Mat, mean: Mat, variance: Mat): void;AInput NxN matrix.
meanOutput destination, filled by the native operation. Output Nx1 matrix with computed mean.
varianceOutput destination, filled by the native operation. Output Nx1 matrix with computed variance.
It computes in the same way as woud do
reducebut 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.