justinblaber / ncorr_2d_matlab Goto Github PK
View Code? Open in Web Editor NEW2D Digital Image Correlation Matlab Software
Home Page: https://www.ncorr.com
License: BSD 3-Clause "New" or "Revised" License
2D Digital Image Correlation Matlab Software
Home Page: https://www.ncorr.com
License: BSD 3-Clause "New" or "Revised" License
I am a student from Aalborg university, and my group and I has as part of a project created "support" program for processing a large amount of data in NCORR.
And as part of this we would like the capability of opening NCORR preloaded with the video that the support program formats to frames.
I am able to load both the reference and the roi image, but I am having difficulties loading the current images. I have tried a few things but cant find any documentation on how the matrix should be formatted.
We recently uploaded it to Github if it has any interrest:
https://github.com/Krille945/Image-sequencer-for-NCORR
Hope that you are able to help with this.
Sincerely,
Christopher Endelt
After using Ncorr, how should we extract the x, y, displacements, strains and correlation coefficients from the contour plots ?
Although I have installed PCT toolbox and openmp configurations seems to be fine, as I run handles_ncorr = ncorr
, I get this error:
Files compiled, but it was determined that OpenMP
is not actually supported. Please reinstall Ncorr in
single threaded mode or use a compiler which
supports OpenMP
Please see that all commands are successful.
>> mex -c standard_datatypes.cpp
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex -c ncorr_datatypes.cpp
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex -c ncorr_lib.cpp
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formmask.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formregions.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formboundary.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formthreaddiagram.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formunion.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_extrapdata.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_adddisp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_convert.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_dispgrad.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_testopenmp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_calcseeds.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_rgdic.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_testopenmp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj COMFLAGS="$COMFLAGS /openmp /DNCORR_OPENMP"
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_calcseeds.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj COMFLAGS="$COMFLAGS /openmp /DNCORR_OPENMP"
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_testopenmp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj COMFLAGS="$COMFLAGS /openmp /DNCORR_OPENMP"
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> type('ncorr_installinfo.txt')
1,4
Hi Justin,
Wondering if it would be possible to perform the DIC only in a horizontal (u) direction to improve the computation time. I've applied image rectification prior to uploading them onto the reference and current image so that they are horizontally aligned, such that only u-displacement map is necessary. How would we go about executing this?
Hello,
I have been using ncorr around 2 years, but today what i realized that my department will no longer make matlab available for students. Is there any way to run ncorr without matlab ? Thanks
Can this theoretically work in Octave? This might be good to boost the utility
of your program in the open software universe.
I tried to run this in Octave by following the manual, but I encountered errors.
handles_ncorr = ncorr;
parse error near line 3356 of file /home/jerome/github/ncorr_2D_matlab/ncorr.m
syntax error
function [handle_name,outstate] = gui_sethandle(pos_parent)
Hi Justin Blaber,
I am Dongdi Yin from Southwest Jiaotong University. We are working on HRDIC based on SEM. We have got very nice strain maps using Ncorr for small size SEM images (up to 6749x5229 pixels). However, when we tried to analyze larger size SEM images, such as 8818x6871 pixels, an error occurred, which seems a run out of memory error. The screenshot of the error message is attached below.
We are using MATLAB 2021b. 20 cores are set for the OpenMP multithreading.
The computer we used: Intel® Xeon® Gold 6230R Processor (35.75M Cache, 2.10 GHz, 26 cores)+192GB DDR4 memory.
Many thanks and Happy New Year!
Looking forward to hearing from you
Kind regards
Dongdi Yin
This isn't really an issue in the code, but more of request.
Do you plan on updating Ncorr to be able to plot the Lagrangian strain on the current image? This would greatly increase users' ability to present data to audiences.
This happens in Matlab 2017b and Ubuntu 16.04. Solution is to use LD_PRELOAD
before calling Matlab:
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/local/MATLAB/R2017b/bin/matlab
How could I output the displacement gradients such as du/dx and du/dy? I need them to compute cauhy strain.
Dear Blaber:
Recently I learned your 2D-DIC matlab software-ncorr,and I watch your video,but after I watch the "2D Digital Image Correlation using Ncorr -MATLAB- - Tutorial -PART 2",I find your Ncorr_post matlab software is a very useful tool.I search it in the web,but I didn't find it.I especially need it now,can you send it to me by email?
Thanks a lot!!!
After loading the data from ncorr post to ncorr post CStools, I encountered a problem related to colormap. The error comes in caxis (line 108), where it gives me a message like this: "Error using caxis (line 108) must be a two-element row vector," whereas I have followed all the steps of the manuals from YouTube. Please help me figure out how to sort out this problem.
Hi
I was trying to compile ncorr on visual studio 2019.
But there is an error in code!
How can I fix it?
Threre are several places in code with this issue
template <typename T_container>
inline typename sub_iterator<T_container>::sub_iterator& sub_iterator<T_container>::operator++() {
this->chk_valid_increment();
// increment sub_p, then determine position from it
++sub_p;
this->p = this->A_ptr->sub2ind(sub_p % sub_h + r_sub1_2D.first, sub_p / sub_h + r_sub2_2D.first);
return *this;
}
and the error is :
overloaded function "ncorr::details::sub_iterator<T_container>::sub_iterator" is not a type name
Hello! Recently I am getting the error stated in the title, when I try to load data I have already saved via Ncorr and then I have to re-run the analysis to get to the contour plots. Does anyone have the same problem and could suggest a solution?
Thank you in advance.
Anastasia
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.