Skip to content

linemod_ColorGradient

rgbdclassOpenCV 5.0.0
import { linemod_ColorGradient } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSlinemod_ColorGradient
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits linemod_Modality.

Modality that computes quantized gradient orientations from a color image.

Constructors and members

static create

linemod_ColorGradient.create: Constructor.

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.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

weak_threshold

weak threshold value for linemod_ColorGradient.

weak_threshold: number;

num_features

num features value for linemod_ColorGradient.

num_features: number;

strong_threshold

strong threshold value for linemod_ColorGradient.

strong_threshold: 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.