File Exchange

image thumbnail

2D Finite Element Global Digital Image Correlation (FE-DIC)

version 1.0.4 (15.7 MB) by Jin Yang
Finite-element-based global DIC method (guarantee global kinematic compatibility and decrease noise by adding regularization penalties).


Updated 19 Apr 2021

From GitHub

View Version History

View license on GitHub

This is a MATLAB 2D finite-element-based DIC code I wrote to compare with our newly proposed AL-DIC algorithm [2].

% =========================================
% Installation
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:

% =========================================
% Comments and references
[1] For full details, and to use this code, please cite our paper:
Yang, J. and Bhattacharya, K. Exp.Mech. (2019) 59: 187.
or request full text at:

[2] 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

[3] I also attach my EASF webinar to introduce AL-DIC/DVC algorithm and review local and global DIC/DVC methods:


[4] 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:

Cite As

Jin Yang (2021). 2D Finite Element Global Digital Image Correlation (FE-DIC) (, GitHub. Retrieved .

Yang, J. and Bhattacharya, K. Augmented Lagrangian Digital Image Correlation. Exp.Mech. 59: 187, 2018.

Comments and Ratings (9)


@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 Section 5 (code Section 3) for more details.)

Christopher Kevinly

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?

Thank you

Sincerely yours
Ir. Christopher Kevinly

Dong Zhang

jie wu

Jay Zhang


Jialiang Tao




Great work!

MATLAB Release Compatibility
Created with R2018a
Compatible with R2018a and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!