File Exchange

image thumbnail

Digital Image Correlation and Tracking

version 2.1.0.0 (7.21 MB) by Melanie Senn
Calculate displacement, strain and stress from image sequences

48 Downloads

Updated 02 Jul 2016

View License

This package contains a compilation of .m files for 2D strain and stress measurement from image sequences. The individual functions are decribed in the enclosed documentation (DICT.html).
For special questions please send an email to:
melanie.senn@iwm.fraunhofer.de or chris.eberl@iwm.fraunhofer.de.
We gratefully acknowledge the financial support of the EU project iSTRESS (FP7-NMP-2013-LARGE-7, Grant Agreement N. 604646).

Cite As

Melanie Senn (2019). Digital Image Correlation and Tracking (https://www.mathworks.com/matlabcentral/fileexchange/50994-digital-image-correlation-and-tracking), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (14)

Liviney

RAN LIU

Enzoh Langi

Thank you for providing this code. I came across your code and found that it will be very useful for my work though had a challenge when I started running it. I am using R2018a. kindly find error I got;

>> open cpcorr
>> DIC
Undefined function or variable 'Preprocessing_ResizeFcn'.

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('Preprocessing_ResizeFcn',hObject,eventdata,guidata(hObject))

Error using matlab.ui.internal.legacyMoveGUI (line 15)
Error while evaluating Panel SizeChangedFcn.

Undefined function or variable 'Preprocessing_ResizeFcn'.

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('Preprocessing_ResizeFcn',hObject,eventdata,guidata(hObject))

Error using matlab.ui.internal.legacyMoveGUI (line 15)
Error while evaluating Panel SizeChangedFcn.

Undefined function or variable 'Preprocessing_ResizeFcn'.

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('Preprocessing_ResizeFcn',hObject,eventdata,guidata(hObject))

Error while evaluating Panel SizeChangedFcn.

Undefined function or variable 'Preprocessing_ResizeFcn'.

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('Preprocessing_ResizeFcn',hObject,eventdata,guidata(hObject))

Error while evaluating Panel SizeChangedFcn.

Undefined function or variable 'Preprocessing_ResizeFcn'.

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('Preprocessing_ResizeFcn',hObject,eventdata,guidata(hObject))

Error while evaluating Panel SizeChangedFcn.

Index in position 1 exceeds array bounds.

Error in GenerateFileList>GenerateFileListManually (line 97)
StartFileNumber = str2num(cell2mat(Answer(1,1)));

Error in GenerateFileList (line 12)
[FileNameBase,PathNameBase,FileNameList]=GenerateFileListManually(ImageExtensions);

Error in DIC>BTNGenerateFileList_Callback (line 42)
[handles.FileNameList]=GenerateFileList;

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('BTNGenerateFileList_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback.

Error using cd
Path must be a string scalar or character vector.

Error in GenerateFileList>GenerateFileListAutomatically (line 33)
cd(ImageFolder);

Error in GenerateFileList (line 14)
[FileNameBase,PathNameBase,FileNameList]=GenerateFileListAutomatically(ImageExtensions);

Error in DIC>BTNGenerateFileList_Callback (line 42)
[handles.FileNameList]=GenerateFileList;

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('BTNGenerateFileList_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback.

Error using cd
Path must be a string scalar or character vector.

Error in GenerateFileList>GenerateFileListAutomatically (line 86)
cd(PathNameBase)

Error in GenerateFileList (line 14)
[FileNameBase,PathNameBase,FileNameList]=GenerateFileListAutomatically(ImageExtensions);

Error in DIC>BTNGenerateFileList_Callback (line 42)
[handles.FileNameList]=GenerateFileList;

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('BTNGenerateFileList_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback.

Output argument "FileNameList" (and maybe others) not assigned during call to "GenerateFileList".

Error in DIC>BTNGenerateFileList_Callback (line 42)
[handles.FileNameList]=GenerateFileList;

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('BTNGenerateFileList_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback.

>>

Hi,
Thank you for the code. I have a problem just at the beginning of the process. How do I fix the error? This error has been seen by others. I'm using R2017a.

Subscripted assignment dimension mismatch.

Error in GenerateFileList>GenerateFileListAutomatically (line 78)
FileNameList(Counter+1,:)=NextFileName;

Error in GenerateFileList (line 14)
[FileNameBase,PathNameBase,FileNameList]=GenerateFileListAutomatically(ImageExtensions);

Error in DIC>BTNGenerateFileList_Callback (line 42)
[handles.FileNameList]=GenerateFileList;

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('BTNGenerateFileList_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

Hi
I have some trouble with Setting of Region of Intrest. While loading ROI i am getting error message as
Error using waitfor
Error while evaluating uicontrol Callback
As i am using Win10 and R2013a if possible kindly help out me in this
Thanks and Regards.

JEng

Hi,

I have some trouble with the image quality checking.

First, the dialog opens only a UI to select folders. Not files. Should it be this way?

Second, if I select the folder containing the image series, the loaded picture is displayed unusable small.

I am using Win10 and R2017a, both 64bit and am very thankful for any suggestions on what I could modify.

xiao liu

Hi,

Thank you for offering DIC code.
I have a problem when I am trying to use DIC function. The error message is shown below:

How should I fix these errors?

Undefined function or variable 'Preprocessing_ResizeFcn'.

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('Preprocessing_ResizeFcn',hObject,eventdata,guidata(hObject))
Error using DIC>DIC_OpeningFcn (line 28)
Error while evaluating Panel SizeChangedFcn

Undefined function or variable 'Preprocessing_ResizeFcn'.

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DIC (line 15)
gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DIC('Preprocessing_ResizeFcn',hObject,eventdata,guidata(hObject))
Error using movegui (line 113)
Error while evaluating Panel SizeChangedFcn

car442

Hi, I have been having trouble cleaning up markers with std. I would load the stv files from "File" and then go to "Markers" and "clean" and the corresponding options but the GUI kept promping me to load stv file. I wonder what might have caused this?

Thansk

Tijmen

Hello,

Thanks for providing this DIC code for everyone to use.

I have one question:
If I use 10 images, with the first one as a reference, I get 9 strain values, with the strain = 0 for the second image (first deformed image, and first strain value). Why is this? Are the displacements from the reference to the first deformed image not counted in the strain calculation?

Thanks alot for your answer,

Best regards,
Tijmen

Ken Hyman

Melanie Senn

Dear Camille,

thank you for your interest in our code. The calculation of the different types of strain is still the same as in the 2010 version. The only thing we updated in the 1D average strain calculation is a third column (in the strain file) that corresponds to the y-intercept of the line fit (displacement over marker position).
Or what differences in which strain type do you observe?

Best regards,
Melanie

Dear Melanie,

I would like to thank you for your version of DIC and tracking.
I was wondering if you brought any modification in the strain calculation from Christoph Eberl code? I performed analysis with both using the same grid but I don't get the same results. Do you have any idea where it may result from?

Thanks in advance,

Camille

Updates

2.1.0.0

Bugfix: cleaning by displacement vs. position plot

2.0.0.0

stress calculation, reference image, logging results, silent mode for automation, GPU processing, extended cleaning

2.0.0.0

stress calculation, reference image, logging results, silent mode for automation, GPU processing, extended cleaning

1.0.0.0

Documentation updated (link to calibration example)

1.0.0.0

Contacts added

1.0.0.0

Acknowledgements added.

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

Inspired by: Digital Image Correlation and Tracking

code/