From: wallerlaura on
Best way is to get the book "Two-Dimensional Phase Unwrapping" by D.Ghiglia
and M.Pritt. They have lots of different methods, so will help you choose
the best method for your data. They also include C code for the methods,
but I used the well-defined psudeo-code to write my own (simpler) Matlab
scripts, since matlab already has lots of the functions they use. That
makes it easily batch processable.