Skip to content

CharVectorVector

Core and matricesclassOpenCV 5.0.0
import { CharVectorVector } from '@banou/opencv-wasm'

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

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

An owned native vector. Append values with push_back, read them with get, and release the vector with using or delete(). Native object elements returned by get require separate disposal.

Constructors and members

static new

Create an empty owned native vector. Dispose it with using or delete().

new(): CharVectorVector;
Returns

The CharVectorVector result. Release returned native handles with using or delete(), including handles nested in results.

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.

push_back

Append one element, copying its native value into this vector.

push_back(_0: CharVector): void;
_0

0 argument (CharVector).

resize

Change the vector length, filling new entries with the supplied value.

resize(_0: number, _1: CharVector): void;
_0

0 argument (number).

_1

1 argument (CharVector).

size

Return the number of elements in this native vector.

size(): number;
Returns

The number result.

get

Read an element by index. Object elements are returned as owned native handles that require disposal.

get(_0: number): CharVector | undefined;
_0

0 argument (number).

Returns

The CharVector | undefined result. Release returned native handles with using or delete(), including handles nested in results.

set

Replace an element by index and return whether the assignment succeeded.

set(_0: number, _1: CharVector): boolean;
_0

0 argument (number).

_1

1 argument (CharVector).

Returns

The boolean result.

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.