Skip to content

ml_SVM_getDefaultGridPtr

mlfunctionOpenCV 5.0.0
import { ml_SVM_getDefaultGridPtr } from '@banou/opencv-wasm'

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

ARGUMENTSparam_id
FUNCTIONml_SVM_getDefaultGridPtr
RETURN TYPEml_ParamGrid | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Generates a grid for %SVM parameters.

ml_SVM_getDefaultGridPtr(param_id: number): ml_ParamGrid | null;
param_id

%SVM parameters IDs that must be one of the SVM::ParamTypes. The grid is generated for the parameter with this ID.

The function generates a grid pointer for the specified parameter of the %SVM algorithm. The grid may be passed to the function SVM::trainAuto.

Returns

The ml_ParamGrid | null result.

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.