This set of MATLAB scripts requires:
- an AVI format video of the ant behavior (recommended resolution 0.22 mm/px, 30 fps).
- a background image (.tiff) saved in the same folder that shows the trail without the ant. If you don’t have this, one will be created from the maximum intensity projection, but it may not work as well.
Download all .m files into a folder and run MainProgram.m in MATLAB