Skip to content

linemod_Match

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

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

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

Represents a successful template match.

Constructors and members

static new

Create an owned linemod_Match object. Release native handles with using or delete().

new(x: number, y: number, similarity: number, class_id: EmbindString, template_id: number): linemod_Match;
2 available overloads
new(): linemod_Match;
new(x: number, y: number, similarity: number, class_id: EmbindString, template_id: number): linemod_Match;
x

x argument (number).

y

y argument (number).

similarity

similarity argument (number).

class_id

class id argument (EmbindString).

template_id

template id argument (number).

Returns

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

x

linemod_Match.x: x offset

x: number;

y

linemod_Match.y: y offset

y: number;

similarity

similarity value for linemod_Match.

similarity: number;

class_id

Object class identifier associated with this template match.

set class_id(value: EmbindString);
2 available overloads
get class_id(): string;
set class_id(value: EmbindString);
value

value argument (EmbindString).

Returns

The string result.

template_id

template id value for linemod_Match.

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