linemod_ColorGradient
import { linemod_ColorGradient } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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_thresholdWhen quantizing, discard gradients with magnitude less than this.
num_featuresHow many features a template must contain.
strong_thresholdConsider as candidate features only gradients whose norms are larger than this.
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;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.