Skip to content

idft

Core and matricesfunctionOpenCV 5.0.0
import { idft } from '@banou/opencv-wasm'

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

Calculates the inverse Discrete Fourier Transform of a 1D or 2D array.

idft(src, dst, flags) is equivalent to dft(src, dst, flags | #DFT_INVERSE) .

Note: None of dft and idft scales the result by default. So, you should pass #DFT_SCALE to one of dft or idft explicitly to make these transforms mutually inverse. See: dft, dct, idct, mulSpectrums, getOptimalDFTSize

idft(src: Mat, dst: Mat, flags: number, nonzeroRows: number): void;
3 available overloads
idft(src: Mat, dst: Mat): void;
idft(src: Mat, dst: Mat, flags: number): void;
idft(src: Mat, dst: Mat, flags: number, nonzeroRows: number): void;
src

input floating-point real or complex array.

dst

Output destination, filled by the native operation. output array whose size and type depend on the flags.

flags

operation flags (see dft and #DftFlags).

nonzeroRows

number of dst rows to process; the rest of the rows have undefined content (see the convolution sample in dft description.

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.