PCG_unwrap_2D(ph_nii, ph_file, mask_nii, max_iter, epsi_con, N)
This phase unwrapping algorithm is based on the theory and c++ code from: "Two-Dimensional Phase Unwrapping, Theory, Algorithms, and Software" written by Dennis C. Ghiglia and Mark D. Pritt
This program uses weighted least-squares phase unwrapping technique (i.e. weighted Laplace unwrapping) with a solution using iterative algorithm, namely preconditioned conjugate gradient (PCG).
In order to get rid of the residual phase ambiguities after unwrapping process (which occur for all least-squares approaches) a congruence operation is applied.
In order to run this script the following files from MATLAB exchange server are required:
1) http://de.mathworks.com/matlabcentral/fileexchange/8797-tools-for-nifti-and-analyze-image
2) https://de.mathworks.com/matlabcentral/fileexchange/30853-field-mapping-toolbox/content/vector.m
3) http://www.mathworks.com/matlabcentral/fileexchange/25634-fast--n-easy-smoothing/content/smoothn.m
4) http://de.mathworks.com/matlabcentral/fileexchange/26040-dct-and-dst--+-inverse--in-arbitrary-dimension/content/dctn.m
Cite As
Barbara Dymerska (2026). PCG_unwrap_2D(ph_nii, ph_file, mask_nii, max_iter, epsi_con, N) (https://www.mathworks.com/matlabcentral/fileexchange/57666-pcg_unwrap_2d-ph_nii-ph_file-mask_nii-max_iter-epsi_con-n), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Object Analysis >
Tags
Acknowledgements
Inspired by: Tools for NIfTI and ANALYZE image, smoothn, DCT and DST (+ inverse) in arbitrary dimension, Field Mapping Toolbox
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0 |
|
