Not the same image after cuda FFT and iFFT

后端 未结 1 889
我在风中等你
我在风中等你 2021-01-27 18:58

I\'m trying to preform an FFT -> ramp filtering -> iFFT on a 2D image with CUDA. First, as a test I tried to do FFT and iFFt without any filters. After the FFT andthe iFFT the i

相关标签:
1条回答
  • 2021-01-27 19:37

    CUDA FFT->IFFT sequences require that you divide the resultant values by the number of elements in the transform, if you want to return back to the original data.

    From the documentation:

    cuFFT performs un-normalized FFTs; that is, performing a forward FFT on an input data set followed by an inverse FFT on the resulting set yields data that is equal to the input, scaled by the number of elements. Scaling either transform by the reciprocal of the size of the data set is left for the user to perform as seen fit.

    0 讨论(0)
提交回复
热议问题