title: Applying a temporal Gaussian filter to a series of images
body: <p>I was wondering how I would go about applying a Gaussian filter between two images in MATLAB. I understand for a spatial Gaussian filter on one image, you would do something like the following:</p>
  
  <pre><code>gauss_filter = fspecial('gaussian', [3 3], 1.5);
  processed = imfilter(image, gauss_filter, 'replicate');
  </code></pre>
  
  <p>But the algorithm I am trying to implement for optical flow (from the Trucco and Verri text) describes applying a Gaussian filter with sigma = 1.5 frames across the temporal dimension in a sequence of frames. </p>
  
  <p>Is there a way to do this in MATLAB? I think maybe a 3d Gaussian filter would work, but I'm not sure if that is the correct way of doing this or how I would go about creating/applying such a filter.</p>