We have previously discussed rigid and non-rigid image alignment algorithms for calcium imaging data. If you have the image processing toolbox, a particularly compact solution for non-rigid image registration can be written in ~20 lines of code or so. The code below returns a displacement field for each frame in the image sequence (output variable ‘disp’) that needs…
Read More