3D matrix fftshift on gpu

1 visualización (últimos 30 días)
Humam Helfawi
Humam Helfawi el 20 de Ag. de 2018
Comentada: Edric Ellis el 21 de Ag. de 2018
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 comentario
Edric Ellis
Edric Ellis el 21 de Ag. de 2018
Answered here: https://stackoverflow.com/questions/51935549/fftshift-on-a-3d-matrix-on-gpu

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by