PCACompute
import { PCACompute } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
wrap PCA::operator()
PCACompute(data: Mat, mean: Mat, eigenvectors: Mat, maxComponents: number): void;2 available overloads
PCACompute(data: Mat, mean: Mat, eigenvectors: Mat): void;PCACompute(data: Mat, mean: Mat, eigenvectors: Mat, maxComponents: number): void;datadata argument (Mat).
meanInput/output value, modified by the native operation. mean argument (Mat).
eigenvectorsOutput destination, filled by the native operation. eigenvectors argument (Mat).
maxComponentsmax components 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.