International Journal of Biomedical Imaging / 2011 / Article / Alg 1

Research Article

Image Processing Techniques for Assessing Contractility in Isolated Neonatal Cardiac Myocytes

Algorithm 1

𝐯 ⇐ i m a g e a c q u i s i t i o n           % using inverted phase contrast microscope
𝑁 ⇐ f r a m e s ( 𝐯 )                   % number of frames in video
𝑓 ⇐ 𝑣 ( 𝐱 , 1 )                       % read first frame
π‘š ⇐ m a s k                      % construct binary mask
𝑣 ( 𝐱 , 1 ) = π‘š 𝑣 ( 𝐱 , 1 ) % apply binary mask to first frame
𝑉 ( 𝐱 , 1 ) = P F F T ( 𝑣 ( 𝐱 , 1 ) ) % apply polar FFT to first frame
𝐢 ( 1 ) ⇐ 1 % correlation coefficient of first frame
𝐟 𝐨 𝐫 𝑖 = 2 t o 𝑁   do
  𝑣 ( 𝐱 , 𝑖 ) = π‘š 𝑣 ( 𝐱 , 𝑖 )               % apply binary mask to each frame
  𝑉 ( 𝐱 , 𝑖 ) = P F F T ( 𝑣 ( 𝐱 , 𝑖 ) )              % apply polar FFT to each frame
  𝐢 ( 𝑖 ) = C O R R ( 𝑉 ( 𝐱 , 1 ) , 𝑉 ( 𝐱 , 𝑖 ) )         % correlation coefficient of each frame
end for