Skip to content

divSpectrums

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

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

ARGUMENTSa, b, c, flags
FUNCTIONdivSpectrums
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Performs the per-element division of the first Fourier spectrum by the second Fourier spectrum.

The function cv::divSpectrums performs the per-element division of the first array by the second array. The arrays are CCS-packed or complex matrices that are results of a real or complex Fourier transform.

divSpectrums(a: Mat, b: Mat, c: Mat, flags: number, conjB: boolean): void;
2 available overloads
divSpectrums(a: Mat, b: Mat, c: Mat, flags: number): void;
divSpectrums(a: Mat, b: Mat, c: Mat, flags: number, conjB: boolean): void;
a

first input array.

b

second input array of the same size and type as src1 .

c

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

flags

operation flags; currently, the only supported flag is cv::DFT_ROWS, which indicates that each row of src1 and src2 is an independent 1D Fourier spectrum. If you do not want to use this flag, then simply add a 0 as value.

conjB

optional flag that conjugates the second input array before the multiplication (true) or not (false).

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.