Skip to content

ximgproc_covarianceEstimation

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_covarianceEstimation } from '@banou/opencv-wasm'

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

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

Computes the estimated covariance matrix of an image using the sliding window forumlation.

ximgproc_covarianceEstimation(src: Mat, dst: Mat, windowRows: number, windowCols: number): void;
src

The source image. Input image must be of a complex type.

dst

Output destination, filled by the native operation. The destination estimated covariance matrix. Output matrix will be size (windowRowswindowCols, windowRowswindowCols).

windowRows

The number of rows in the window.

windowCols

The number of cols in the window. The window size parameters control the accuracy of the estimation. The sliding window moves over the entire image from the top-left corner to the bottom right corner. Each location of the window represents a sample. If the window is the size of the image, then this gives the exact covariance matrix. For all other cases, the sizes of the window will impact the number of samples and the number of elements in the estimated covariance matrix.

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.