phasediffvar
Description
returns the phase derivative variance var = phasediffvar(phasemat,K)var of a
phasemat image. The variance is defined over a square window of width
K. The output var enables the use of
var as a quality map in the unwrap2 2D
phase unwrapping function. Set the QualityMAP=var
Name-value pair in the unwrap2
function.
Examples
Input Arguments
Output Arguments
Algorithms
For each pixel located at (m,n), the phase derivative variance is
defined by
where
zm,n : Phase derivative variance at pixel
(m,n)K : Length or width (in pixels) of a rectangular window.
K2: Number of pixels in rectangular window.
Δxi.j: wrapped phase difference between the pixel values in x-direction for pixel (I,j).
Δ*xm,n: mean of wrapped phase difference in x-direction for window size K centered at (m,n).
Δyi.j: wrapped phase difference between the pixel values in y-direction for pixel (i,j).
Δ*ym,n: mean of wrapped phase difference in y-direction for window width K centered at (m,n).
References
[1] Ghiglia, Dennis C., and Mark D. Pritt. Two-Dimension Phase Unwrapping: Theory, Algorithms and Software. New York: John Wiley & Sons, 1998.
Version History
Introduced in R2026a


