Skip to content

PCACompute1

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

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

ARGUMENTSdata, mean, eigenvectors, retainedVariance
FUNCTIONPCACompute1
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

wrap PCA::operator()

PCACompute1(data: Mat, mean: Mat, eigenvectors: Mat, retainedVariance: number): void;
data

data argument (Mat).

mean

Input/output value, modified by the native operation. mean argument (Mat).

eigenvectors

Output destination, filled by the native operation. eigenvectors argument (Mat).

retainedVariance

retained variance argument (number).

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.