[−][src]Function opencv::core::mul_spectrums
pub fn mul_spectrums(
a: &dyn ToInputArray,
b: &dyn ToInputArray,
c: &mut dyn ToOutputArray,
flags: i32,
conj_b: bool
) -> Result<()>
Performs the per-element multiplication of two Fourier spectrums.
The function cv::mulSpectrums performs the per-element multiplication of the two CCS-packed or complex matrices that are results of a real or complex Fourier transform.
The function, together with dft and idft , may be used to calculate convolution (pass conjB=false ) or correlation (pass conjB=true ) of two arrays rapidly. When the arrays are complex, they are simply multiplied (per element) with an optional conjugation of the second-array elements. When the arrays are real, they are assumed to be CCS-packed (see dft for details).
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).
C++ default parameters
- conj_b: false