Skip to content

idct

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

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

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

idct(src, dst, flags) is equivalent to dct(src, dst, flags | DCT_INVERSE).

See: dct, dft, idft, getOptimalDFTSize

idct(src: Mat, dst: Mat, flags: number): void;
2 available overloads
idct(src: Mat, dst: Mat): void;
idct(src: Mat, dst: Mat, flags: number): void;
src

input floating-point single-channel array.

dst

Output destination, filled by the native operation. output array of the same size and type as src.

flags

operation flags.

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.