Digital Image Correlation and Tracking

Calculate displacement and strain from a series of images
Updated 19 Nov 2010

View License

Compilation of .m files to calculate strain from images independent of physical size of the samples. Strain can be calculated in horizontal as well as vertical direction. The functions were developed at the Johns Hopkins University by Rob Thompson, Daniel Gianola and me, all of us part of the Group of Kevin Hemker. Dan is now at the UPenn ( and I am now at the Karlsruhe Institute of Technology (, Germany) and will continue to work on the code. Sven Bundschuh just entered the authors guild and provided a new grid_generator.m and some essential changes.
If you have special questions please check the header of the .m file and email the responsible person:

Have fun with the functions.

We used only windows systems so far. Linux Users need to copy cpcorr.m and findpeak.m into their work folder and change it there. After renaming it (e.g. cpcorr2.m) the calling lines should be changed, too, in the functions automate_image.m and RTCorrCode.m. Parallel Computing Toolbox is optional.

Cite As

Christoph Eberl (2024). Digital Image Correlation and Tracking (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Corrected RTCorr_Code.m, added code to deal with large displacements larg_displ.m, corrected grid_generator.m, updated guide.

Accuracy of the correlation code is greatly enhanced,
added new functions,
updated others for speed and functionality
added multicorr support in automate_image_mp_2009b in combination with the parallel computing Toolbox,
updated description

Was not compatible with 2007a/b