idft
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;srcinput floating-point real or complex array.
dstOutput destination, filled by the native operation. output array whose size and type depend on the flags.
flagsoperation flags (see dft and #DftFlags).
nonzeroRowsnumber 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.