The invention discloses a method for detecting and correcting an unpacking
phase error based on phase distribution, and the method is suitable for obtaining the phase when phase unpacking is carried out by adopting an information assistance method. The method mainly comprises the following steps of setting a threshold based on the gradient distribution of an unpacking phase, and obtaining a phasediagram edge; determining all points in which unpacking phase errors may exist by the detected
phase diagram edge and a region enclosed by a closed edge; and performing error correction on these points, and obtaining the correct phase distribution. According to the method of the invention, due to the fact that two processes of
phase error detection and correction are separated, effective labelingof phase discontinuous regions is also realized in the
phase error detection, so that there is no need to use
mass chart guidance to avoid the discontinuous regions during
phase correction, and the method has robustness and efficiency.