FFT on series of images
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi there!
I wish to perform an FFT on 10,000 images. Each pixel in the image, together with the same pixel from all the other images forms the series of data to be FFT. Is this possible? How do you import data from 10,000 files recursively?
I had code to do this is an older version of Matlab but now it's giving me the error "Undefined operator '==' for input arguments of type 'table'."
L = length (R);
Fs = 458.72
phase = 0
Frequency = 7
ZeroRef = R-ave;
Ref = sin(2*pi*Frequency*Time+phase);
Ref2 = cos(2*pi*Frequency*Time+phase);
PSD = Ref.*ZeroRef;
PSD2 = Ref2.*ZeroRef;
Y = fft(PSD,L,1);
Y2 = abs(Y/L);
Y1 = Y2(1:L/2+1); % L/2+1 when even, L/2+1.5 when odd %
Y1(2:end-1) = 2*Y1(2:end-1);
Z = fft(PSD2,L,1);
Z2 = abs(Z/L);
Z1 = Z2(1:L/2+1); % L/2+1 when even, L/2+1.5 when odd %
Z1(2:end-1) = 2*Z1(2:end-1);
A = fft(ZeroRef,L,1);
A2 = abs(A/L);
A1 = A2(1:L/2+1); % L/2+1 when even, L/2+1.5 when odd %
A1(2:end-1) = 2*A1(2:end-1);
f = Fs*(0:(L/2))/L;
Amplitude
Amplitude*2
PhaseDiff
It would be good if the amplitude from each pixel can be arranged back into its pixel position, with another file for phase difference at each pixel.
Thank you in advance for any and all pointers.
2 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!