Problemcore
Phase unwrapping
Also called 2D phase unwrapping.
Recover a continuous phase from values known only modulo 2 pi, as in interferometric SAR, MRI field maps and optical interferometry.
- Model
- Real RAM
Phase unwrapping is the problem of recovering a phase from its wrapped values , which are known only modulo . Many sensors measure a complex number and keep only its angle, as in the analytic signal. Examples are an interferogram in SAR interferometry, a field map in MRI, a fringe pattern in optical interferometry and a hologram. The angle lies in , and the physics is in the continuous phase. In one dimension the problem is easy when the samples are dense enough: sum the wrapped differences (Itoh 1982). In two dimensions the wrapped differences are in general not the gradient of any image. The points where they fail to be are the residues, and every method must choose where to put the error. Least squares is fast but not congruent. Minimum L1 is a minimum cost flow problem. Minimum L0, the fewest wrong edges, is NP-hard (Chen and Zebker 2000).
In plain words
A clock hand shows the minutes but not the hour. If you look at the clock often enough, you can count the turns and know the full time. If you look too rarely, you miss turns and cannot tell.
A wrapped phase is the same: every pixel shows the angle of a clock hand, and the task is to count the turns. Neighbouring pixels usually differ by less than half a turn, so you add up the small steps. In an image there are many paths between two pixels. Noise and real jumps make some paths count one turn more than others. Phase unwrapping is the art of choosing the turns so that the result is smooth and the few errors are in the right places.
Definition
Wrapping. with the integer that puts the value in . A function is congruent to if at every sample.
Input. Wrapped values on the vertices of a graph, usually a line of samples or a grid of pixels with , and optionally a weight for each edge (a quality map or a coherence).
Wrapped gradient. For an edge , .
Residues. On a grid, the sum of around a square is with . A square with is a residue. If there are no residues, is the gradient of a unique image up to a constant, and that image is congruent to .
Output. A function , usually required to be congruent to , whose differences match in some sense:
where for the term counts the edges with a nonzero error. For and the minimum is usually taken over congruent only, so that the unknowns are integers (see Reductions). For the minimum is taken over all real images, and the minimizer is in general not congruent.
Itoh's condition. If the true phase satisfies on every edge, then , there are no residues, and summing along any path from a fixed vertex gives up to one multiple of .
Variants
- One dimension. A single sum of wrapped differences, exact under Itoh's condition.
- Two and three dimensions. Images and volumes, with residues on squares (and residue lines in 3D).
- Weighted and masked. Weights from a quality map or from the coherence lower the influence of noisy edges, and masks remove pixels with no signal.
- Congruent or not. Path-following and network flow methods return congruent results. Least squares returns a smooth result that is not congruent where there are residues.
- Temporal and multi-frequency unwrapping. Several measurements with different wavelengths, or a time series, resolve the turns pixel by pixel without spatial paths.
- Absolute phase. All formulations fix only up to one constant per connected region. The absolute value needs outside information, for example a control point.
Examples
One dimension. The true phase wraps to . The wrapped differences are , because . Their running sum gives back . With the true phase , the step of 4 is more than : , and the sum gives . The two phases cannot be told apart from the data.
A residue. Take the image . The wrapped differences around the square are , , and in the direction of the loop, with the sum : one residue with . No image has these four differences. A congruent solution must change one of them by , so the minimum L0 cost is 1. The least squares solution instead shares the error equally: each difference is wrong by , and the result is not congruent. Both answers are shown on the pages of Goldstein's algorithm and least squares unwrapping.
A vortex. The angle on a grid has a residue at the central square. Every path around it gains one full turn, so no continuous phase exists there. A cut from the centre to the border is the honest answer.
Known algorithms
| Method | Formulation | Congruent | Time |
|---|---|---|---|
| Itoh summation | 1D, exact under Itoh's condition | yes | |
| Goldstein branch cuts | cuts between residues, then flood fill | yes | |
| Quality guided flood fill | path order from a quality map | yes | |
| Least squares (Ghiglia and Romero 1994) | , DCT Poisson solver | no | |
| Weighted least squares | with weights, preconditioned conjugate gradients or multigrid | no | iterative |
| Minimum cost flow (Costantini 1998) | yes | polynomial | |
| Minimum weighted discontinuity (Flynn 1997) | weighted count of discontinuities | yes | iterative |
| Statistical cost network flow | costs from a model of SAR data | yes | heuristic |
Here is the number of residues and the box radius of Goldstein's method.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Goldstein branch cut algorithm | O(N + R b^3 + R sqrt(N)) worst | O(N) extra | congruentdeterministicnot exactiterative | 1 language |
| Least-squares phase unwrapping | O(m n log(m n)) worst | O(m n) extra | deterministicnot exactnot linear in dataiterative | 1 language |
Bounds
- Lower bound. Every method reads all samples, so time.
- One dimension. , and the answer is unique up to under Itoh's condition (theorem).
- No residues. by any path-following method. Path-following, least squares and minimum L1 all return the sum of along paths, up to a constant (theorem).
- . with a fast DCT for the unweighted problem (theorem).
- . Polynomial, by a minimum cost flow (Costantini 1998).
- . NP-hard (Chen and Zebker 2000). Greedy cut placement such as Goldstein's is not optimal: a example on its page needs 3 wrong edges where 2 are enough.
Reductions
Minimum L1 to minimum cost flow. Write a congruent result as with integers . A function with these differences exists if and only if, around every square, the sum of is zero, that is . On the dual graph, whose nodes are the squares and one outside node, and whose arcs cross the primal edges, this says that is a flow whose net outflow at each square is . So the residues are supplies and demands, the outside node balances them, and the cost is linear in the flow on each arc in each direction. Minimum cost flow has integral optimal solutions, which gives integer (Costantini 1998).
Minimum L0 and cuts. For the cost counts the arcs with nonzero flow. That is a fixed charge flow problem, and Chen and Zebker (2000) proved it NP-hard. Branch cut methods such as Goldstein's are heuristics for it: the edges with lie on the cuts.
Least squares to the Poisson equation. For the normal equations are the discrete Poisson equation with Neumann boundary conditions, with the divergence of on the right hand side (Ghiglia and Romero 1994).
Applications
- SAR interferometry. The interferometric phase measures height or ground motion. It must be unwrapped before it can be turned into metres.
- MRI. Field maps, phase contrast velocity, water and fat separation and quantitative susceptibility mapping all start from a wrapped phase.
- Optical metrology. Fringe projection profilometry, interferometric testing of surfaces and digital holography.
- Doppler ultrasound. The Kasai estimator returns a velocity modulo the aliasing limit . Aliased colour Doppler images are unwrapped in space or in time.
- Adaptive optics. Wavefront sensors that measure wrapped phase differences.
References
- Kazuyoshi Itoh, Analysis of the phase unwrapping algorithm, Applied Optics 21(14), 1982, 2470, one-dimensional unwrapping by summing wrapped differences and the condition that the true differences lie in (-pi, pi) (general locator)
- Richard M. Goldstein, Howard A. Zebker and Charles L. Werner, Satellite radar interferometry: two-dimensional phase unwrapping, Radio Science 23(4), 1988, 713, residues and branch cuts in two dimensions (general locator)
- Dennis C. Ghiglia and Louis A. Romero, Robust two-dimensional weighted and unweighted phase unwrapping that uses fast transforms and iterative methods, Journal of the Optical Society of America A 11(1), 1994, 107, the least squares formulation and its solution by fast cosine transforms (general locator)
- Mario Costantini, A novel phase unwrapping method based on network programming, IEEE Transactions on Geoscience and Remote Sensing 36(3), 1998, 813 to 821, the minimum L1 problem as a minimum cost flow problem (general locator)
- Curtis W. Chen and Howard A. Zebker, Network approaches to two-dimensional phase unwrapping: intractability and two new algorithms, Journal of the Optical Society of America A 17(3), 2000, 401, the NP-hardness of the minimum L0 problem (general locator)
- Thomas J. Flynn, Two-dimensional phase unwrapping with minimum weighted discontinuity, Journal of the Optical Society of America A 14(10), 1997, 2692, the minimum weighted discontinuity problem and an exact method for it (general locator)
- Dennis C. Ghiglia and Mark D. Pritt, Two-Dimensional Phase Unwrapping: Theory, Algorithms, and Software, Wiley, 1998, the chapters on path-following methods and on minimum-norm methods
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag DPEQW9 Edit this page History Report an error Markdown