GMatDesc
import { GMatDesc } 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.
\addtogroup gapi_meta_args
Constructors and members
static new
FIXME: Maybe it's real questionable to have it here
new(): GMatDesc;4 available overloads
new(d: number, c: number, s: Size): GMatDesc;new(d: number, c: number, s: Size, p: boolean): GMatDesc;new(d: number, dd: IntVector): GMatDesc;new(): GMatDesc;dd argument (number).
cc argument (number).
ss argument (Size).
pp argument (boolean).
dddd argument (IntVector).
The GMatDesc result. Release returned native handles with using or delete(), including handles nested in results.
Upstream declaration ↗Upstream declaration 2 ↗Upstream declaration 3 ↗
static from2
Create an owned GMatDesc instance with the supplied configuration.
\addtogroup gapi_meta_args
from2(_0: number, _1: IntVector): GMatDesc | null;_00 argument (number).
_11 argument (IntVector).
The GMatDesc | null 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;The this result.
depth
FIXME: Default initializers in C++14
depth: number;chan
chan value for GMatDesc.
chan: number;size
NB.: no multi-dimensional cases covered yet
size: Size;planar
NB.: no multi-dimensional cases covered yet
planar: boolean;dims
FIXME: Maybe it's real questionable to have it here
dims: IntVector;withSizeDelta
Meta combinator: return a new GMatDesc which differs in size by delta (all other fields are taken unchanged from this GMatDesc) FIXME: a better name?
withSizeDelta(delta: Size): GMatDesc;deltadelta argument (Size).
The GMatDesc result. Release returned native handles with using or delete(), including handles nested in results.
withSizeDelta1
Meta combinator: return a new GMatDesc which differs in size by delta (all other fields are taken unchanged from this GMatDesc)
This is an overload.
withSizeDelta1(dx: number, dy: number): GMatDesc;dxdx argument (number).
dydy argument (number).
The GMatDesc result. Release returned native handles with using or delete(), including handles nested in results.
withSize
Return a matrix descriptor with a new image width and height, retaining its other layout attributes.
withSize(sz: Size): GMatDesc;szsz argument (Size).
The GMatDesc result. Release returned native handles with using or delete(), including handles nested in results.
withDepth
Meta combinator: return a new GMatDesc with specified data depth. (all other fields are taken unchanged from this GMatDesc)
withDepth(ddepth: number): GMatDesc;ddepthddepth argument (number).
The GMatDesc result. Release returned native handles with using or delete(), including handles nested in results.
withType
Meta combinator: return a new GMatDesc with specified data depth and number of channels. (all other fields are taken unchanged from this GMatDesc)
withType(ddepth: number, dchan: number): GMatDesc;ddepthddepth argument (number).
dchandchan argument (number).
The GMatDesc result. Release returned native handles with using or delete(), including handles nested in results.
asPlanar
Meta combinator: return a new GMatDesc with planar flag set (no size changes are performed, only channel interpretation is changed (interleaved -> planar)
asPlanar(): GMatDesc;The GMatDesc result. Release returned native handles with using or delete(), including handles nested in results.
asPlanar1
Meta combinator: return a new GMatDesc reinterpreting 1-channel input as planar image (size height is divided by plane number)
asPlanar1(planes: number): GMatDesc;planesplanes argument (number).
The GMatDesc result. Release returned native handles with using or delete(), including handles nested in results.
asInterleaved
Meta combinator: return a new GMatDesc with planar flag set to false (no size changes are performed, only channel interpretation is changed (planar -> interleaved)
asInterleaved(): GMatDesc;The GMatDesc result. Release returned native handles with using or delete(), including handles nested in results.
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.