linemod_Modality
import { linemod_Modality } 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.
Interface for modalities that plug into the LINE template matching representation.
\todo Max response, to allow optimization of summing (255/MAX) features as uint8
Constructors and members
static create
Create modality by name.
The following modality types are supported:
- "ColorGradient"
- "DepthNormal"
create(modality_type: EmbindString): linemod_Modality | null;modality_typemodality type argument (EmbindString).
The linemod_Modality | null result.
static create1
Load a modality from file.
create1(fn: FileNode): linemod_Modality | null;fnfn argument (FileNode).
The linemod_Modality | 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.
process
Form a quantized image pyramid from a source image.
process(src: Mat, mask: Mat): linemod_QuantizedPyramid | null;2 available overloads
process(src: Mat): linemod_QuantizedPyramid | null;process(src: Mat, mask: Mat): linemod_QuantizedPyramid | null;srcThe source image. Type depends on the modality.
maskOptional mask. If not empty, unmasked pixels are set to zero in quantized image and cannot be extracted as features.
The linemod_QuantizedPyramid | null result.
name
Return the serialized name identifying this LINEMOD feature modality.
name(): string;The string result.
read
Load LINEMOD modality, detector or class configuration from the supplied file storage. File paths refer to this instance's virtual filesystem.
read(fn: FileNode): void;fnfn argument (FileNode).
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.