2D Phase Unwrapping

An Octave & Matlab implementation of the phase unwrapping solution described in: Vyacheslav V. Volkov and Yimei Zhu, Deterministic phase unwrapping in the presence of noise, Opt. Lett. 28, 2156-2158, 2003, for two-dimensional images. This elegant and beautiful unwrapping solution works well for wrapped phase images that are correctly sampled and do not have phase gradients exceeding 2π / pixel. In many applications these conditions are easy to meet. In cases where a solution cannot be found, the approximate solution can still be useful as a starting point for refinement by other phase unwrapping algorithms.