Reported in https://github.com/scipy/scipy/issues/15495, ndimage.zoom is bugged and introduces a linear phase (shift) in images. This destroys the accuracy of the DM model when upsample != 1. A simple crop/zero-pad in the Fourier domain implements the same thing we get out of ndimage.zoom call, assuming the influence function is band-limited (a constraint we can pass along to the user without any trouble). The impact on performance may be non-trivial, but with MKL FFTs should be quite fast.
Reported in https://github.com/scipy/scipy/issues/15495, ndimage.zoom is bugged and introduces a linear phase (shift) in images. This destroys the accuracy of the DM model when
upsample != 1
. A simple crop/zero-pad in the Fourier domain implements the same thing we get out of ndimage.zoom call, assuming the influence function is band-limited (a constraint we can pass along to the user without any trouble). The impact on performance may be non-trivial, but with MKL FFTs should be quite fast.