Skip to content

EMStockhall/SUN-DIC

 
 

Repository files navigation

SUN-DIC

Stellenbosch University DIC Code

Important Notice

You are accessing a very early release of the Stellenbosch University DIC Code called SUN-DIC. Currently this code has the following key features and limitations. Please forward any problems and/or suggestions for improvement to the author. More detailed information about the implementation will be provided at a later stage.

Limitations

  1. Can currently only deal with 2D planar problems (a stereo version is planned)
  2. Can only specify a rectangular region of interest (ROI), but an all black background in the image pair can be used to deal with irregularly shaped domains
  3. There are currently no GUI available for the code

Key features

  1. Completely open source using standard Python libraries wherever possible
  2. Make use of the zero-mean normalized sum of squared differences (ZNSSD) correlation criterion
  3. Have an advanced starting strategy for automatically creating initial guesses at a small number of starting points using the Akaze feature detection algorithm
  4. Have both linear (affine) and quadratic shape functions available
  5. Have both an inverse compositional Gauss-Newton (IC-GN) and an inverse compositional Levenberg-Marquardt (IC-LM) solver implemented
  6. Have both an absolute and relative update strategy when considering multiple image pairs
  7. Calculate both displacements and strains
  8. Strains are calculated using a Savitzky-Golay smoothing operations
  9. Parallel computing

Installation

  1. Clone the repository
  2. Create a virtual environment
  3. Activate the virtual environment
  4. Install the required packages contained in the requirements.txt file Below are some pointers how to achieve this using either python/pip or anacoda

Using pip

  1. Create a new virtual environment for use with this package
python3 -m venv sundic
  1. Activate the virtual environment
source sundic/bin/activate
  1. Download and install the package
git clone https://github.com/gventer/SUN-DIC.git
pip install ./SUN-DIC

Using anacoda - from the command line

  1. Create a new virtual environment for use with this package
conda create -n sundic pip
  1. Activate the virtual environment
conda activate sundic
  1. Download and install the package
git clone https://github.com/gventer/SUN-DIC.git
pip install ./SUN-DIC

Usage

  1. Open the test_sundic.ipynb Jupyter Notebook for a detailed and complete working example
  2. Open this from the main SUN-DIC directory and be sure to use the virtual environment you created above
  3. Note that the general work flow is to modify the setting.ini file, perform the DIC analysis and finally to post-process the results

API Documentation

API Documentation can be found at the following github pages:

https://gventer.github.io/SUN-DIC

Acknowledgementss

License

This project is licensed under the MIT License - see the LICENSE file for details

Authors

Gerhard Venter

About

Stellenbosch University DIC Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 65.8%
  • Python 34.2%