Code covered by the BSD License  

Highlights from
Kalman filter for noisy movies

Be the first to rate this file! 16 Downloads (last 30 days) File Size: 2.79 MB File ID: #26334

Kalman filter for noisy movies

by Rob Campbell

 

09 Jan 2010

Applies a Kalman filter to the time domain of an image sequence.

| Watch this File

File Information
Description

Run exampleFilter.m to see how the algorithm performs on a sample of moderately noisy 2-photon imaging data. This function is a faster, vectorised, version of Java code written by C.P. Mauer as part of an ImageJ plugin (see below).

function imageStack=Kalman_Stack_Filter(imageStack,percentvar,gain)
 
  Purpose
  Implements a predictive Kalman-like filter in the time domain of the image stack. Algorithm taken from Java code by C.P. Mauer. http://rsb.info.nih.gov/ij/plugins/kalman.html
 
  Inputs
  imageStack - a 3d matrix comprising of a noisy image sequence. Time is
               the 3rd dimension.
  gain - the strength of the filter [0 to 1]. Larger gain values means more
         aggressive filtering in time so a smoother function with a lower
         peak. Gain values above 0.5 will weight the predicted value of the
         pixel higher than the observed value.
  percentvar - the initial estimate for the noise [0 to 1]. Doesn't have
               much of an effect on the algorithm.
 
  Output
  imageStack - the filtered image stack
 
  Note:
  The time series will look noisy at first then become smoother as the
  filter accumulates evidence.
  
  Rob Campbell, August 2009

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
image processing Rob Campbell 11 Jan 2010 11:18:12
movie Rob Campbell 11 Jan 2010 11:18:12
noise reduction Rob Campbell 11 Jan 2010 11:18:12
filter Rob Campbell 11 Jan 2010 11:18:12
kalman Rob Campbell 13 May 2010 10:30:06

Contact us at files@mathworks.com