A free 2D & 3D DIC (Digital Image Correlation) MOIRE software

The current version is V0.958a. (05/12/2016)

[You must login first to see the software] 

This software contains lots of robust functions for image analysis and processing, deformation, shape, and motion measurement. However, since most users are interested in DIC, the videos below show only how to use DIC. Please be noted that the menu in the newest version is slightly different from the one in the video. Opticist.org needs your comments and input to make this DIC program better. 

The software is developed with Visual C++ 2015, you may need to install Visual C++ 2015 Redistributable Package (included in the zip file) first before run the program.

A short manual can be downloaded at: http://faculty.cua.edu/wangz/Publications/2DDIC_manual.pdf

Detailed instructions on how to calibrate stereo cameras and conduct stereo vision will be added in June 2016. 

Here are two demo video clips of the software.


Hi Admin,


Thank you very much for the Moire software.


Could you please provide instructions to use 3D DIC application in this software.

It will help my research alot.

Thank you,



Reply to 3D DIC


Your request sounds interesting.

I will ask admin and make a draft manual first before post it.

Please wait.

Thank you.

Initial problems

We have recently come across the Moire software for DIC analysis we require on a series of images which go together to form a time lapse video.

We have followed the techniques shown in the demo videos but we are not getting anywhere.

The images we are using are 256 colour BITMAP images of about 3.5 MB.

We have used a boundary which is the whole image, by using the button on the left hand side. The output of the analysis is only shown in a tiny area of the image, also the second image (not the reference) is showing exactly the same image, as opposed to the different image we started with.

I have found this software quite difficult to use but we have been recommended to use this so I am trying to work out what is going on.

If anyone can help that would be great, I can provide the images we are trying to analyse if needs be.



Andrew W

Reply to Initial problems

Hello Andrew,

Sorry for reply you late. Can you send us your original images and images after analysis? You can put the images to somewhere and I can download it in case gmail allows only 25MB

My email: 29nguyen@cardinalmail.cua.edu

Thank you.

Hieu Nguyen. 

sample files

Hi, how can i get sample file? they arenot  in the opticist_0.955b.zip file after extraction

We might have found a bug in the new version

Dear developer,

Thanks for offering the Moire software, and we have been using it for half a year.

Recently in the use of it (Version 0.955&0.955b) , we found there was something wrong with the exported data and the image information.

For example, to do the 2D-DIC analysis in 2 pictures, we draw a rectangular boundary with x from 273 to 974, y from 177 to 719; and after calculating, we export the strain data. In the exported data file, offset exsists in the y value range, which becomes 306-842 instead of 177-719. 

In our analysis, that happens in both V0.955 and V0.955b, but when we change to the earlier v0.953e, that does not happen any more.

Hope you can help us find out the reason for that situation and thank you!



Moire user in CHINA

email: ettaup@hotmail.com

Re: We might have found a bug in the new version

We have checked the program, and it seems fine. The reason you got an output range from 306-842 is because of the origin of the coordinate.

When you save the displacement or strain data, there is a pop-up
dialog to ask you where the origin is. The computer coordinate uses the
top-left corner as origin, so the x axis is to the right and y-axis is
downward. If you use left-corner as origin, the y range will be 177-719.

On the other hand, if you use the conventional coordinate system,
where bottom-left corner is the origin, the y-axis will be upward, in this
case, the output range will be height-1-719 to height-1-177 (they may not be
exactly 719 or 177 depending on how the edges are handled). This is why you got 306-842.


In DIC analysis, we treat upward movement as positive displacement, and this is why 2D-DIC suggests using bottom-left corner as the

didplacement measurement


thanks for the software, I am trying to find the displacement, I have 30*30 images and it seems very difficult to analyse these by using the software you provided.

is it possible to measure displacement of the two images which are in size 30*30 using this software.?

Re: displacement measurement

Do you mean 30*30 pixels?

Help with the software

It is easy to download the software and Visual C++.  It looks very promissing but for the beginner it is not user friendly. The videos are not helpful for would be users.It would be helpful if the videos had voice!.  It would be helpful if you provided files for the help section or a demonstration example of the use of the software.

Em. Prof. Jasson Gryzagoridis

Mech. Eng. Dept.

University of Cape Town

Display Strain results on Ref Image

Dear Admin,

first of all I want to thank you for this great Software.

I'm starting working with Opticist 0.955 and I would like to know if there is a way to display the results of the strains on the Ref. Image (like in the video tutorial)?

When I display the strains I got only the results in the Boundary Box and there is no image in the Backround.

Is there also a way to save the image of the strain field with including the legend?

kind regards



Strain Output Problem

Dear Admin,
Recently, I used the DIC Software to identify the full-field strain distributed on the surface of a specimen subjected to bending and shear together. However, the resulting colored contours representing the strain distribution are mixed up together resulting in an ambiguous and unclear understanding of the stress distribution. What I have explained is clearly illustrated in the images being accessible through the links below
Also, it would be greatly appreciated if I could get my test images once again analyzed by you and receive the necessary guidance. The links corresponding to the reference and deformed images are provided below.

Hi Reza

I think you results are good. The stress is not uniform. I analyzed your 2 images and got similar results as yours.


- Sim -

speckle pattern


Firstly thank you for your software. It helps me a lot.

However, I am not sure about the speckle pattern. You said speckle pattern is the most important thing for DIC. How can I get speckle pattern? 



Hi Mandy

You can use Matlab and write a piece of code that generates a random matrix and save it as an image file. That image will look like speckle pattern.


- Sim -

invalid reference point !!!

Hi ! I am trying to analyse two skin photos before and after applying tension. The first error that comes up during this process is the message which tells that the reference point is not valid !!! Then sometimes the windows stop the process and just once it was managed to go to the end of process but the final post analysis images were completely black. I would be grateful if anybody can help me how I can fix these problems.

Re: invalid reference point !!!

Did you generate a ROI boundary file? If so, you can try to use manual seed and manual initial guess. If this does not solve your problem, please send images to wangz AT cua DOT edu

Digital Image Correlation source code

This is the problem of MOIRE. It has few bugs and there is no way to fix them because source code is not shared. Furthermore, the help is not available from Admin for long long time.

Use the code given at http://www.mathworks.com.au/matlabcentral/fileexchange/12413

I am using it and very happy with it. I am developing some extensions of it and will be helpful for future users.

Ghulam Mubashar Hassan.

invalid reference point !!!

Hi ! I am trying to analyse two skin photos before and after applying tension. The first error that comes up during this process is the message which tells that the reference point is not valid !!! Then sometimes the windows stop the process and just once it was managed to go to the end of process but the final post analysis images were completely black. I would be grateful if anybody can help me how I can fix these problems.

Source Code of Digital Image Correlation

Dear All,

I have observed recently that there is no free source code of Digital Image Correlation using Newton-Raphson method. Is there anyone who has knowledge of open source software of it. 

I have currently found open source code of Digital Image Correlation in Matlab but it isn't using Newton-Raphson method. 

Can anyone help me in this regard. Any help or comment will be highly appreciated.


Ghulam Mubashar Hassan.

Dear Ghulam Can you share

Dear Ghulam

Can you share your source code of Digital Image Correlation in Matlab with me?

thank you!



Help regarding installation of the Software

I have downloaded the software and am trying to install it.... But i dont know why, it is not getting installed. As soon as i try to install it, it shuts down. I also installed the Visual C++ before trying with the DIC software.......Can somebody please guide me regarding this.....


IIT Madras

domdom's picture

strain data on reference and deformed image

What is the difference between having the strain on the deformed image or the reference image? I should have one strain data between the deformed and the reference image , why there are two strain data ?


RE: strain data on reference and deformed image

Reference image shows U displacement, and target one shows V results.

domdom's picture

need help so badly

I am a new user; please I need help so badly. I am working on a research and I should find the strain field. I have images for tension test, the size of images are (4310X2868) gray scale with 256 colors. Once I run the code it gives me negative values for strain in V displacement. I should not have negative values because it is tension test. I resized the images using irfanview to (600X399) but I still have the same problem. The results are not satisfied. One more issue, I strain calculation there is an order “Differential Gage Input” “Differential Gage Value” what is this value and what I should use ? the default value is 10 so do I use 10? Is this code is good to find the displacement and strain in metal plate elastic region under tension test ?? Can anyone solve my problem please? Note: the original images were NEF format then I converted it to DNG then TIFF to BMP.

One more thing, the metal plate connections that I am using has slots or holes all around. Is this okay and will not affect the code and the results?<?xml:namespace prefix = o />

Thanks in advance


domdom's picture

out of memory

Hello Admin,
when i click on ok for the box of Load E/B from an image (Rcmd) then i get a message say Out of memory.

what is the memory of the computer i should have please ?



domdom's picture




Displacement of points

Hi all,

I would like to measure the displacement of few points on the image.

Is it possible to do it by selecting few points only or give position of these points in terms of X and Y and the measure their displacement in deformed image. 

Please suggest me.

Thank you.

Ghulam Mubashar Hassan.

Ghulam Mubashar Hassan.

RE: Displacement of points

Our web site seems having a bug: it cannot handle your ID well. I have changed your ID from gmjally to 21101141.

For your question, you can perform a full-field analysis, and get the results at those points of your interest.  To get the "real" DIC results at those points, you can set "Calculation step" (unde TAB "Subset II") to 1. 

Thank you. 

Thank you.

I have reference and deformed images. The links are



MOIRE DIC does not work on it. I increased the subset size to 41 but it does not work. I know that deformation is much smaller than 4 pixels in it. Image Correlation function in matlab works fine with it. 

I will appreciate if you may please share the reasons. 

Thank you.

Ghulam Mubashar Hassan.

RE: Thank you.

The patterns are not typical ones for DIC. They need larger subset, try 61 or larger. You may also want to use "manual searching" for initial guess. I tested with 61 and manual searching, the program works well.  

In addition, you can try changing other parameters to get ideal results. 

BTW, our new SIFT+iRANSAC also works well with these two images. We will release the new version later this month.



Have you released new version. May I have a link of it. 

Thank you.


Ghulam Mubashar Hassan.

Image Output

Is there a way to change the output of an image or combine the two to have vertical and horizontal displacement in one output?

RE: Image Output

The software has a simple function to plot the deformed shape, but not to show the resultant displacements in color map.  You can output the U- and V-field displacements, and write a simple Matlab code to get your desired results.

Accuracy Validation

[This comment was posted by gmjally, and format has been corrected by Admin]


I am trying to validate the resutls of all existing DIC software/toolbox. I am starting with 2D DIC. I am trying to validate this software but am not getting good results as it proposes on website (accuraccy more than 0.01 of a pixel). I am using all procedures mentioned in video and documentation.

I am generating digital images with random patterns and adding known desplacements using mechanics equations. The images have varying displacements. 

I am trying to find displacement of each pattern(speckle). 

Using MOIRE, I am getting displacements for half of an image but cannot recognize displacement for rest of the image, while I know that entire image has displacement.

Can anyone help me that where am I going wrong or what will be correct procedure. 

I have done the same with Matlab DIC and another software and it works well. Any imput will be highly appreciated.

Thank you.


RE: Accuracy Validation

Please upload the images so that we can investigate the reason.

RE: Images used for validation Analysis

Your user ID contains a keyword that affects the display of the web pages, so I deleted your message.

In regard to your question, the reason is that you did not use a boundary/edge file. 

Accuracy Validation

Hmm. yes, I found those images wierd on web page. Thanks for removing. I can send you link of them if you need.

Regarding problem, I am drawing or selecting boundary/edge from selection options on left hand panel. Then on selection, I ask to use current E/B condition. 

I do the same process for same image at low resolution i.e. 500X500 and it works well. 

I have changed the subset size too but it did not help the cause.

I have observing that MOIRE DIC does not work well with high resolution images i.e. 2000X2000, 1000X1000 (with some images, it works else usually not).

Please share your thoughts.

Thank you.


Ghulam Mubashar Hassan.



Thank you for your software. I am trying to determine displacement of pixels between two images, and I have been able to import the images and conduct the DIC analysis, however the unit output says Unit:system, not mm as the demo video shows. How can I change the units to be in mm?

Thank you!

RE: Unit:system

The unit is pixel.

What is the difference

What is the difference between the two image outputs? Is one vertical and one horizontal displacement? Is there a way to change the output of an image or combine the two to have vertical and horizontal displacement in one output (if that is, in fact what they are)?

errors in camera calibration

Hello, I'm trying to use the software, and there are two problems:

1.Firstly I chose 20 images, there was an application error:"The instruction at "0x7c918f71"referenced memory at "0x40a53895".The memory could not be "written"."; but if I chose only 5 images, OK.

2. Then when proceeding the photos, there is always a Reminder and Warning!:"The program failed to detect all the centroids correctly. Do you want to modify some parameters and try again"...

Could you please tell me what should I do?

Great thanks for you help in advance!!

Comme le soleil est tjr là, pour quoi pas bonne sourir chaque jour Cool

RE: errors in camera calibration

Make sure that you have good images. You can find samples here: http://opticist.org/node/160

Calibration board for camera calibration

Hello, I've read your paper which presents an advanced geometric camera calibration method, and I would like to try it. As there isn't calibration board with concentric circles in my lab, is it possible to use a board with just some circles? Will the accuracy suffers?

Thanks a lot in advance!!

Comme le soleil est tjr là, pour quoi pas bonne sourir chaque jour Cool

RE: Calibration board for camera calibration

Print the pattern (a Word file) enclosed in the zip file, and attach it to a flat plate/board. You can use a regular paper, but it can be much better if you have a full-sheet shipping label.

thanks a lot

Thanks for your response so rapide!!!


And the calibration board you use in the paper is also made in this way, right?

Comme le soleil est tjr là, pour quoi pas bonne sourir chaque jour Cool

Problems with boundary condicitons

Hello! Thanks for this great software! I'll use it in my PhD studies of composite materials. 

I have found a problem with the definition of boundaries, in fact, the DIC analysis is done outside of boundary condition and not inside them. More strange is the fact that i've been using it one day and it worked well but after that, i cant do a correct DIC analysis due to boundary problems. 


RE: Problems with boundary condicitons

Please make sure that the boundaries or borders are closed, and there is no "leaking". If this does not help, try to select the seed point manually as follows: in the "Analysis Parameter" dialog, under tab "Adv II", check "Manual seed selection". If necessary, you can also check "Manual searching" for initial guess (under tab "Guess").

Thanks for your speed! I

Thanks for your speed!

I create the boundary using rectangle tool so i think that a possible leaking is not the problem. However, I'm going to use the options you've told me. I hope that it'll work. Thanks you very much!

Boundary problems

I've just try all of your option and I have always the same problem...

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer