Skip to content

DftFlags

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

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

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

Native enum entries for dft flags. Pass an entry to enum-typed arguments or its .value to numeric arguments.

Constructors and members

static DFT_INVERSE

performs an inverse 1D or 2D transform instead of the default forward transform.

DFT_INVERSE: DftFlagsValue<1>,

static DFT_SCALE

scales the result: divide it by the number of array elements. Normally, it is combined with DFT_INVERSE.

DFT_SCALE: DftFlagsValue<2>,

static DFT_ROWS

performs a forward or inverse transform of every individual row of the input matrix. This flag enables you to transform multiple vectors simultaneously and can be used to decrease the overhead (which is sometimes several times larger than the processing itself) to perform 3D and higher-dimensional transforms and so forth.

DFT_ROWS: DftFlagsValue<4>,

static DFT_COMPLEX_OUTPUT

performs an inverse transformation of a 1D or 2D complex array; the

DFT_COMPLEX_OUTPUT: DftFlagsValue<16>,

static DFT_REAL_OUTPUT

performs an inverse transformation of a 1D or 2D complex array; the result is normally a complex array of the same size, however, if the input array has conjugate-complex symmetry (for example, it is a result of forward transformation with DFT_COMPLEX_OUTPUT flag), the output is a real array; while the function itself does not check whether the input is symmetrical or not, you can pass the flag and then the function will assume the symmetry and produce the real output array (note that when the input is packed into a real array and inverse transformation is executed, the function treats the input as a packed complex-conjugate symmetrical array, and the output will also be a real array).

DFT_REAL_OUTPUT: DftFlagsValue<32>,

static DFT_COMPLEX_INPUT

specifies that input is complex input. If this flag is set, the input must have 2 channels. On the other hand, for backwards compatibility reason, if input has 2 channels, input is already considered complex.

DFT_COMPLEX_INPUT: DftFlagsValue<64>,

static DCT_INVERSE

performs an inverse 1D or 2D transform instead of the default forward transform.

DCT_INVERSE: DftFlagsValue<1>,

static DCT_ROWS

performs a forward or inverse transform of every individual row of the input matrix. This flag enables you to transform multiple vectors simultaneously and can be used to decrease the overhead (which is sometimes several times larger than the processing itself) to perform 3D and higher-dimensional transforms and so forth.

DCT_ROWS: DftFlagsValue<4>

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.