Improve the 'filter()' function by using FFT
Framework for numerical computations, data analysis and visualisation
Brought to you by:
numere
The filter() function is a relatively slow convolution of the matrix with the filter kernel. Evaluate, whether and when it is reasonable to use FFT/iFFT to calculate the convolution.
As discussed lately, we have to evaluate, when it is faster to use FFT combined with the necessary extension of the matrices (with zeros, clamped or reflected values) instead of manual convolution. The break-even might be quite early so that it is reasonable to completely replace the old implementation.
Speed up was tested in the automatic SW tests. No deviation detected.
Anonymous
Diff:
Diff:
Diff:
Related
Commit: [r1345]
Diff: