mirror of
https://github.com/opencv/opencv.git
synced 2026-11-19 07:45:26 -06:00
The sample allocated C as (|A.rows - B.rows| + 1) x (|A.cols - B.cols| + 1) and copied the top-left corner of the inverse DFT into it. That is neither the full nor the valid convolution. Allocate C with the full convolution size (A.rows + B.rows - 1) x (A.cols + B.cols - 1), which matches the DFT size used below. Fixes #4558