opencv::imgproc

Function div_spectrums_def

Source
pub fn div_spectrums_def(
    a: &impl ToInputArray,
    b: &impl ToInputArray,
    c: &mut impl ToOutputArray,
    flags: i32,
) -> Result<()>
Expand description

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.

§Parameters

  • a: first input array.
  • b: second input array of the same size and type as src1 .
  • c: 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).

§Note

This alternative version of div_spectrums function uses the following default values for its arguments:

  • conj_b: false