3D matrix fftshift on gpu

조회 수: 1 (최근 30일)
Humam Helfawi
Humam Helfawi 2018년 8월 20일
댓글: Edric Ellis 2018년 8월 21일
I have an 3D matrix 512*512*100. I want to apply fftshift on each page of it using the GPU. What I am doing right now is:
G = rand(512,512,100, 'gpuArray');
for i=1:100
G(:,:,i) = fftshift(G(:,:,i));
end
Is there a faster way to apply fftshift without doing it in a loop? For example, fft2 can be applied directly to an 3D array performing the operation on each page separately. However, fftshift does not work like that. Furthermore, fftshift is not supported by pageFun.
Any suggestion?
  댓글 수: 1
Edric Ellis
Edric Ellis 2018년 8월 21일
Answered here: https://stackoverflow.com/questions/51935549/fftshift-on-a-3d-matrix-on-gpu

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by