This is a MATLAB 2D finite-element-based DIC code I wrote to compare with our newly proposed AL-DIC algorithm .
2D_FE_Global_DIC MATLAB code was tested on MATLAB versions later than R2018a. Please download and unzip the code to the MATLAB working path. Then, execute the mail file main_FE_Global_DIC.m.
% Code Manual
It is already included in the code. It's also available at my Researchgate: https://www.researchgate.net/publication/345907429_Finite_Element_Global_Digital_Image_Correlation_FE-Global-DIC_Code_Manual_v10
% Comments and references
 For full details, and to use this code, please cite our paper:
Yang, J. and Bhattacharya, K. Exp.Mech. (2019) 59: 187. https://doi.org/10.1007/s11340-018-00457-0.
or request full text at:
 Welcome to compare this code with our proposed AL-DIC code, which combines both advantages of Local Subset DIC (fast, compute in parallel) and Global DIC (guarantee kinematic compatibility, see https://www.mathworks.com/matlabcentral/fileexchange/70499-augmented-lagrangian-digital-image-correlation-and-tracking.
 I also attach my EASF webinar to introduce AL-DIC/DVC algorithm and review local and global DIC/DVC methods:
 A code demo video of our ALDIC MATLAB code, which is very similar with this FE-Global-DIC code is available at:
Besides 2D-DIC, our new 3D-volumetric DVC code "ALDVC" (augmented Lagrangian Digital Volume Correlation) and FE-Global-DVC code to track deformations in volumetric images are also available at
Contact & support:
I appreciate your comments and ratings to help me further improve this code. If you have other questions and suggestions, feel free to email me: firstname.lastname@example.org
Jin Yang (2021). 2D Finite Element Global Digital Image Correlation (FE-DIC) (https://github.com/jyang526843/2D_FE_Global_DIC), GitHub. Retrieved .
Yang, J. and Bhattacharya, K. Augmented Lagrangian Digital Image Correlation. Exp.Mech. 59: 187, 2018. https://doi.org/10.1007/s11340-018-00457-0.
@Christopher Kevinly, You can try to search for a small value of the search area size first, and incrementally
increase that value until it exceeds the maximum x- and y-displacements. (You can see https://www.researchgate.net/publication/344796296_Augmented_Lagrangian_Digital_Image_Correlation_AL-DIC_Code_Manual Section 5 (code Section 3) for more details.)
Ji Dr. Yang,
I tried to use the code on Matlab R2021a, and when I run section 3, the code did ask "What is your initial guess search zone size (Pixels)" instead of "what is your upper bound for x-displacement". in this case, may I did try yo put 1000 pixels as a trial point, but the code shows error "Unrecognized function or variable 'qfactors'."
May I know if this issue is caused by the version of Matlab and how should I approach this issue?
Ir. Christopher Kevinly
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!