Fast 2D phase unwrapping implementation in MATLAB
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Fast unwrapping 2D phase image using the algorithm given in:
M. A. Herraez, D. R. Burton, M. J. Lalor, and M. A. Gdeisat, "Fast two-dimensional phase-unwrapping algorithm based on sorting by reliability following a noncontinuous path", Applied Optics, Vol. 41, Issue 35, pp. 7437-7444 (2002).
Features and advantages:
* Fast algorithm (takes approx. 0.5s to unwrap 512x512 non-noisy and noisy image in my computer)
* Support ignored regions, by setting NaN to the ignored regions.
If using this code for publication, please kindly cite the following:
* M. A. Herraez, D. R. Burton, M. J. Lalor, and M. A. Gdeisat, "Fast two-dimensional phase-unwrapping algorithm based on sorting by reliability following a noncontinuous path", Applied Optics, Vol. 41, Issue 35, pp. 7437-7444 (2002).
* M. F. Kasim, "Fast 2D phase unwrapping implementation in MATLAB", https://github.com/mfkasim91/unwrap_phase/ (2017).
This algorithm is also available from GitHub (https://github.com/mfkasim91/unwrap_phase/)
Cite As
Firman (2026). Fast 2D phase unwrapping (https://github.com/mfkasim1/unwrap_phase), GitHub. Retrieved .
Acknowledgements
Inspired by: 2D Weighted Phase Unwrapping
General Information
- Version 1.1.0.0 (4.24 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.1.0.0 | Further optimizing the performance by: * reducing cell operations, and
The result is it is now around 2x as fast for no-noise case, and much faster in noisy case (more than 5x faster). |
||
| 1.0.0.0 | Update the description
Upload the image thumbnail |
