Tutorial for align slices in stack

This is a tutorial explaining how to do the slice alignment using the "Align slices in stack..." function of the Template Matching plugin. 

Stack before alignment

Stack after alignment

Updates

- 2011/5/13: Boundary area for searching landmark

The selected landmark (ROI) will be searched against the whole image if this value was set to 0 (by default). Otherwise, the landmark will only be searched against an area around the defined ROI (size of the searching area will be "ROI+the entered pixel value").

- 2011/5/13: Subpixel registration

Implement a Gaussian peak fitting algorithm (adopted from the JPIV package), so that the location of the correlation peak could have subpixel precision. Subsequent subpixel image translation was done by ImageJ's native translation function with bilinear or bicubic interpolation method.