<p dir="ltr">This MATLAB package provides <b>FAPUX</b> implementation for <b>fast, accurate, and robust phase unwrapping solution</b>, designed to handle <b>challenging phase maps with discontinuities, and intricate spatial structures</b> (e.g., spiral shear phase maps). While it excels in complex scenarios where conventional algorithms often fail, it is <b>equally applicable to smooth and noise-free phase data</b>, making it a versatile tool for a wide range of applications.</p><p dir="ltr">It is particularly useful in <b>optical metrology, interferometry, SAR/InSAR imaging, and medical diagnostics</b>, where reliable phase recovery is essential.</p><p dir="ltr">The scripts support the paper <i>“ D. Khodadad, "Fast and accurate phase unwrapping for complex phase maps", Applied Optics, Vol. 64, No. 24, 2025 </i><a href="https://doi.org/10.1364/AO.567228" rel="noreferrer" target="_blank"><i>DOI: https://doi.org/10.1364/AO.567228</i></a><i>”</i> .</p><p dir="ltr">If you use this code, cite:</p><p><br></p><ul><li>D. Khodadad, "Fast and accurate phase unwrapping for complex phase maps," Applied Optics, Vol. 64, No. 24, 10 August 2025. https://doi.org/10.1364/AO.567228</li><li>D. Khodadad, "MATLAB code and example data for fast and accurate phase unwrapping of complex phase maps," figshare (2025). https://doi.org/10.6084/m9.figshare.29571782</li></ul><p><br></p>