1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Move divSpectrums to core module.

This commit is contained in:
Alexander Smorkalov
2026-05-24 17:28:53 +03:00
parent ac1ed5c160
commit 1c44eaf8bd
9 changed files with 489 additions and 493 deletions
+16
View File
@@ -2284,6 +2284,22 @@ or not (false).
CV_EXPORTS_W void mulSpectrums(InputArray a, InputArray b, OutputArray c,
int flags, bool conjB = false);
/** @brief 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.
*
* @param a first input array.
* @param b second input array of the same size and type as src1 .
* @param c output array of the same size and type as src1 .
* @param 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.
* @param conjB optional flag that conjugates the second input array before the multiplication (true)
* or not (false).
*/
CV_EXPORTS_W void divSpectrums(InputArray a, InputArray b, OutputArray c,
int flags, bool conjB = false);
/** @brief Returns the optimal DFT size for a given vector size.
DFT performance is not a monotonic function of a vector size. Therefore, when you calculate