Skip to content

linemod_Modality

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

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

ARGUMENTSConstructor or factory
CLASSlinemod_Modality
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.

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_type

modality type argument (EmbindString).

Returns

The linemod_Modality | null result.

static create1

Load a modality from file.

create1(fn: FileNode): linemod_Modality | null;
fn

fn argument (FileNode).

Returns

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;
Returns

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;
src

The source image. Type depends on the modality.

mask

Optional mask. If not empty, unmasked pixels are set to zero in quantized image and cannot be extracted as features.

Returns

The linemod_QuantizedPyramid | null result.

name

Return the serialized name identifying this LINEMOD feature modality.

name(): string;
Returns

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;
fn

fn 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.