Skip to content

ml_TrainData_getSubVector

mlfunctionOpenCV 5.0.0
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
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Extract from 1D vector elements specified by passed indexes.

ml_TrainData_getSubVector(vec: Mat, idx: Mat): Mat;
vec

input vector (supported types: CV_32S, CV_32F, CV_64F)

idx

1D 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.