ml_TrainData_getSubVector
import { ml_TrainData_getSubVector } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSvec, idx
FUNCTIONml_TrainData_getSubVector
RETURN TYPEMat
Extract from 1D vector elements specified by passed indexes.
ml_TrainData_getSubVector(vec: Mat, idx: Mat): Mat;vecinput vector (supported types: CV_32S, CV_32F, CV_64F)
idx1D index vector
Returns
The Mat result. Release returned native handles with using or delete(), including handles nested in results.
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.