CUFFT + ROI

Is there a way to perform cufft(R2C & C2R) for a specific region of interest in a bigger array using offsets?

For example,Consider a image of 1920x1080 size. I would like to perform FFT for ROI of 720x960 in that image. Is there a way to perform FFT directly on the ROI data, Without copying the ROI data into separate array ?

I have tried using cufftPlanMany but i got incorrect results.

Thanks in Advance.

Yes, it’s possible using advanced data layout:

[url]cuFFT :: CUDA Toolkit Documentation

“The advanced data layout feature allows transforming only a subset of an input array…”