Fourier Analysis of an image sequence

classic Classic list List threaded Threaded
3 messages Options
Jerome Carpenter Jerome Carpenter
Reply | Threaded
Open this post in threaded view
|

Fourier Analysis of an image sequence

Hello all,
I have an image sequence and would like to take a Fourier Transform of each pixel in time (through the sequence). The goal is to generate frequency and phase maps of a field of beating cilia. I'm currently using ImageJ and the time series analyzer to get average intensity over ROIs, and Matlab for the fourier transform, but would like to go pixel by pixel. Any advice on image analysis packages/plugins to accomplish this?  

Thanks!
Jerome  
Shalin Mehta Shalin Mehta
Reply | Threaded
Open this post in threaded view
|

Re: Fourier Analysis of an image sequence

Hi Jerome,
Interesting analysis problem. MATLAB with all its signal processing
tools should be adequate.

Just to be sure that I understood your goal correctly, I try to rephrase it:
" Goal is to see temporal frequencies at which the cilia beat.
Therefore, you want to see temporal frequencies observed in each pixel
of the field of images of cilia. The temporal frequency of a given
pixel is a good indication of frequency with which 'cilia crosses'
that pixel. "

Following is a pseudo-code in MATLAB, which may work.

for i=1:noSlices
  timeseq(:,:,i)=imread([fileprefixstring num2str(i)]); %Read files in
a 3D matrix. % XY represent space, Z represents time.
end

% Obtain the spectrum along the Z-dimension.
centershiftedtimeseq=ifftshift(timeseq,3); %second argument specifies
shift along 3rd dim.
centershiftedspectrum=fft(timeseq,3); %Take 1D FFT along 3rd dim.
recenteredspectrum=fftshift(centershiftedspectrum,3); % Recenter the spectrum.

The last 3D matrix contains the magnitude and phase of the spectrum
along each XY position in field of view. You may wonder why bother
with ifftshift and fftshift. I have some thoughts on that on this
post: http://shalin.wordpress.com/2009/12/06/fftifft/

hope this works,
Shalin

mobile: +65-90694182
blog: shalin.wordpress.com

Bioimaging Lab, Block-E3A, #7-10
Div of Bioengineering, NUS Singapore 117574
website: http://www.bioeng.nus.edu.sg/optbioimaging/colin/people.asp#shalinm



On Sat, Feb 6, 2010 at 11:52 AM, Jerome Carpenter <[hidden email]> wrote:
> Hello all,
> I have an image sequence and would like to take a Fourier Transform of each
> pixel in time (through the sequence). The goal is to generate frequency and
> phase maps of a field of beating cilia. I'm currently using ImageJ and the
> time series analyzer to get average intensity over ROIs, and Matlab for the
> fourier transform, but would like to go pixel by pixel. Any advice on image
> analysis packages/plugins to accomplish this?
> Thanks!
> Jerome
Christian Schumann Christian Schumann
Reply | Threaded
Open this post in threaded view
|

AW: [CONFOCALMICROSCOPY] Fourier Analysis of an image sequence

In reply to this post by Jerome Carpenter
Hi Jerome,
 
MATLAB is the tool I'd use. Depending on your image format, you can use the LOCI Bio-Formats tools and the bfopen script to get the complete time sereis into MATLAB. After organizing the images as 3D-array, you can use MATLAB's fft function along the time axis of your array (there's an optional argument that can be passed to the fft specifying the dimension along which to compute the transform). This will be pixel-wise automtatically.
 
Regards,
Christian
 
Dr. Christian Schumann
INM
Leibniz-Institut für Neue Materialien gGmbH
Campus D2 2
66123 Saarbrücken
 
Telefon: +49 681 9300-327
Telefax: +49 681 9300-223
E-Mail:  [hidden email]
Homepage: www.inm-gmbh.de <http://www.inm-gmbh.de/>
------------------------------------------------------------------------
Sitz der Gesellschaft: Saarbrücken     Rechtsform: gGmbH
Amtsgericht Saarbrücken, HRB 8525
Geschäftsführer: Prof. Dr. Eduard Arzt (Vorsitz), Prof. Dr. Michael Veith, Jochen Flackus
Kuratoriumsvorsitzender: StS Peter Hauptmann
USt.-ID: DE 138167776
------------------------------------------------------------------------
 

________________________________

Von: Confocal Microscopy List im Auftrag von Jerome Carpenter
Gesendet: Sa 06.02.2010 04:52
An: [hidden email]
Betreff: [CONFOCALMICROSCOPY] Fourier Analysis of an image sequence


Hello all,
I have an image sequence and would like to take a Fourier Transform of each pixel in time (through the sequence). The goal is to generate frequency and phase maps of a field of beating cilia. I'm currently using ImageJ and the time series analyzer to get average intensity over ROIs, and Matlab for the fourier transform, but would like to go pixel by pixel. Any advice on image analysis packages/plugins to accomplish this?  

Thanks!
Jerome