Skip to content

linemod_ColorGradient_create

rgbdfunctionOpenCV 5.0.0
import { linemod_ColorGradient_create } from '@banou/opencv-wasm'

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

ARGUMENTSweak_threshold, num_features, strong_threshold
FUNCTIONlinemod_ColorGradient_create
RETURN TYPElinemod_ColorGradient | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

linemod_ColorGradient_create: Constructor.

linemod_ColorGradient_create(weak_threshold: number, num_features: number, strong_threshold: number): linemod_ColorGradient | null;
weak_threshold

When quantizing, discard gradients with magnitude less than this.

num_features

How many features a template must contain.

strong_threshold

Consider as candidate features only gradients whose norms are larger than this.

Returns

The linemod_ColorGradient | 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.