The wide use of phase stepping interferometry has greatly facilitated the development of phase unwrapping technique. When used in digital optical profiler
the phase unwrapping algorithm must be more general and robust
and has high efficiency. The two typical algorithms: the traditional algorithm and the least-squares algorithm have been discussed and examined by testing of an optical disk with the digital optical profiler we have developed. The experimental result shows that the least-squares algorithm is reliable and ideal.