File Exchange

image thumbnail

Basic DIC / PIV toolkit

version 1.0.0 (22.7 KB) by S Wildeman
Digital image correlation (DIC) and optical flow (OF) toolkit for synthetic Schlieren imaging, PIV or deformation tracking.


Updated 08 Nov 2019

GitHub view license on GitHub

* Fast and accurate normalized cross correlation and correlation peak detection
* Uses different size interrogation windows in first and second image, to prevent zero-displacement bias often encountered in equal window size implementations.
* Support for fixed, non-rectangular ROI specification (taken into account in correlation normalization)
* Modular design for easy incorporation existing scripts/workflow, or creating custom warping schemes
* Allows for combination of DIC (for large displacements) and optical flow (for subpixel fine tuning), see included example
* Mostly supports GPUArrays

Use cases:
* Mostly for small (~0.01 px) to moderate (~10 px) particle displacements with not too large rotations or virtual strains. For extreme image deformations more advanced software such as Ncorr is probably more suitable.

* Add the main folder and its sub folders to your Matlab path.

* See example scripts in "examples" folder or type "help <functionname>".

Cite As

S Wildeman (2020). Basic DIC / PIV toolkit (, GitHub. Retrieved .

Wildeman, Sander. “Real-Time Quantitative Schlieren Imaging by Fast Fourier Demodulation of a Checkered Backdrop.” Experiments in Fluids, vol. 59, no. 6, Springer Science and Business Media {LLC}, May 2018, doi:10.1007/s00348-018-2553-9.

View more styles

Comments and Ratings (0)

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