You are on page 1of 11

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/330222747

Direct phase unwrapping method based on a local third-order polynomial fit

Article  in  Applied Optics · January 2019


DOI: 10.1364/AO.58.000436

CITATIONS READS
0 19

5 authors, including:

Alejandro Téllez-Quiñones Ricardo Legarda-Saenz


Centro de Investigación en Ciencias de Información Geoespacial, A.C. Universidad Autónoma de Yucatán
30 PUBLICATIONS   68 CITATIONS    34 PUBLICATIONS   320 CITATIONS   

SEE PROFILE SEE PROFILE

Juan Carlos Valdiviezo-N Miguel León-Rodríguez


Centro de Investigación en Ciencias de Información Geoespacial, México 18 PUBLICATIONS   30 CITATIONS   
29 PUBLICATIONS   138 CITATIONS   
SEE PROFILE
SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Urban monitoring View project

Interferometric SAR View project

All content following this page was uploaded by Alejandro Téllez-Quiñones on 08 January 2019.

The user has requested enhancement of the downloaded file.


Research Article Applied Optics 1

Direct phase unwrapping method based on a local


third-order polynomial fit
A LEJANDRO T ÉLLEZ -Q UIÑONES1,* , R ICARDO L EGARDA -S ÁENZ2 , A DÁN S ALAZAR -G ARIBAY1 , J UAN C.
VALDIVIEZO -N.1 , AND M IGUEL L EÓN -R ODRÍGUEZ3
1 CONACYT-CentroGeo (Mérida), Sierra Papacal-Chuburná Km 5, Mérida-Yucatán, México, 97302
2 CLIR at FMAT-UADY, Anillo Periférico N-Tablaje Cat. 13615, Mérida-Yucatán, México, 97203
3 Universidad Politécnica de Guanajuato, Av. Universidad Sur 1001, Cortazar-Guanajuato, México, 38496
* Corresponding author: atellezq@gmail.com

Compiled January 8, 2019

When recovering smooth phases by phase unwrapping algorithms, many non-iterative algorithms are
available. However, normally those algorithms offer approximations of the current phase that cannot
be accurate enough. This is because the majority of them are based on global approaches, instead of
local ones. Although the smooth estimations are not often expected in phase reconstructions for real
applications, a smooth initial guess could be useful for the robust iterative techniques. Therefore, based
on the most recent local polynomial approaches, we propose a simple least square fitting of the partial
derivatives of the phase, normally estimated from the wrapped operator, by considering local polynomial
models of the phase up to the third order. Synthetic and real data of wrapped phases are considered in
our work. © 2019 Optical Society of America
OCIS codes: (120.0120) Instrumentation, measurement, and metrology; (120.5050.) Phase measurement;(120.3180) Interferome-
try; (120.2650) Fringe analysis; (100.0100) Image processing; (100.5088) Phase unwrapping.
To cite this article: Applied Optics, Vol. 58, No. 2, pp.436-445 (2019)
https://doi.org/10.1364/AO.58.000436

1. INTRODUCTION use of partial derivatives of

ψ(m, n) = W [φ(m, n)] := atan2[s(m, n), c(m, n)], (1)


The theory on two-dimensional phase unwrapping conforms
an extensive field of study that has been covered by many au- where atan2 (or mod2π ) is an equivalent function to an inverse
thors [1–6]. The phase unwrapping problem consists of esti- tangent (a 2π-module function), such that −π < ψ(m, n) ≤ π.
mating a phase function φ = φ( x, y) from its wrapped version However, alternative methods that avoid the input ψ can be con-
ψ := W [φ], where W is the so-called wrapped operator [7]. Specif- sidered, as in the case of the iterative demodulation techniques
ically, when ideally assuming that |∆ x φ|, |∆y φ| < π (where [16–18] that involve the minimization of functionals like
∆ x φ = φ( x + ∆x, y) − φ( x, y), ∆y φ = φ( x, y + ∆y) − φ( x, y)), n
this problem derives from the integration of some particular par- U [Φm,n ] := ∑ [c( p, q) − cos (φ( p, q))]2
tial derivatives given by W [∂ψ/∂x ] = ∂φ/∂x and W [∂ψ/∂y] = ( p,q)∈Wm,n
o
∂φ/∂y, respectively. The unwrapping problem has been stud- + [s( p, q) − sin (φ( p, q))]2 ,
ied from the perspective of many physical applications that 
involve the recover of the argument of a complex signal, and


 phase values of set {φ( p, q)|( p, q) ∈ Wm,n },

among these interesting fields we find holography, optical inter- Φm,n := or coefficients from model
ferometry [8–13], and synthetic aperture radar (SAR) interfer- 

 φ( p, q) = c + c ( x − x ) + c (y − y ),

ometry [3–6, 14, 15]. In many of these applications, ignoring the 0 1 p m 2 q n
valuable information of the amplitude terms, the discretization (2)
φ(m, n) = φ( xm , yn ) per pixel (m, n) is immersed in estimations ignoring the possible carrier frequencies, smoothing parame-
of cos (φ(m, n)) and sin (φ(m, n)), given by images with values ters, and regularizing values. This minimization takes place on
c(m, n) = c( xm , yn ) and s(m, n) = s( xm , yn ), respectively. There- subsets of pixels Wm,n with available information that contain
fore, the aforementioned unwrapping problem starts from the (m, n), where Φm,n is understood as a vector of phase values
Research Article Applied Optics 2

to be estimated, or a vector of coefficients of some local poly- ( p9 , q9 ) = ( xm+1 , yn+1 ), belong to Lm,n , where the central ele-
nomial model of φ, normally of order one. Although the in- ment would be ( p5 , q5 ) = ( xm , yn ). If K = 25, then ( xm , yn )
put data in a demodulation is not rigorously ψ or its wrapped would be ( p13 , q13 ). On this lattice, it will be assumed that the
partial derivatives, in some informal sense, the demodulation phase φ to be estimated, behaves as a polynomial of certain de-
process can be considered as an unwrapping method when tak- gree. For our proposal, we are going to assume that φ behaves
ing into account such entries. This is consequence of the fact as
that cos (φ) = cos (ψ) and sin (φ) = sin (ψ). Something similar
happens when reconstructing the phase without unwrapping (a
φm,n ( x, y) := C0m,n + C1m,n ( x − xm ) + C2m,n (y − yn )
non-unwrapping method) as in [19, 20], where the estimations
of the partial derivatives of φ( x, y) are directly calculated from +C3m,n ( x − xm )2 + C4m,n ( x − xm )(y − yn ) + C5m,n (y − yn )2
the partial derivatives of c( x, y) and s( x, y). For instance,
+C6m,n ( x − xm )3 + C7m,n ( x − xm )2 (y − yn )
∂s ∂c ∂φ
c −s = , (3) +C8m,n ( x − xm )(y − yn )2 + C9m,n (y − yn )3 .
∂x ∂x ∂x
(4)
when ideally c = cos (φ) and s = sin (φ). Rigorously, any This is a third order polynomial with nine coefficients C m,n :=
method that constructs the phase from the wrapped partial (C1m,n , . . . , C9m,n )> (where > denotes vector transposition), and
derivatives of ψ is declared an unwrapping method, however, a piston term φm,n ( xm , yn ) = C0m,n . If we have an estimation
assuming that the unwrapping operation is merely a removal of of the piston in Lm,n , we only need to estimate the rest of the
2π-jump discontinuities of object ψ, direct integrations of forms coefficients, by a simple minimization of the error function
like Eq.(3) can be informally considered as unwrapping methods
when using c = cos (ψ) and s = sin (ψ).
Now, motivated in the local-polynomial approaches in [21– e := eU + eV ,
23], and the most recent works in [24, 25], we propose the least-
squares fitting of partial derivatives involved with the use of K  2
∂φm,n
third order polynomials, described in [26], as a possible unwrap- eU := ∑ ∂x
( pk , qk ) − Uk ,
(5)
ping algorithm. As we will see in the upcoming sections, the re- k =1
cursive or iterative methods in [22–25] cannot be compared with
our proposal, because our algorithm is a direct or a closed local- K  2
∂φm,n
estimation of the phase from its gradient, that could be used as eV : = ∑ ∂y
( pk , qk ) − Vk ,
an initial guess of such a robust or recursive methodologies. Our k =1
proposal is not a demodulation or a phase tracking technique as
exposed in [21–23], neither it is an unwrapping method based on where Uk = U ( pk , qk ), and Vk = V ( pk , qk ), are estimations of the
a state space analysis or a Kalman filter approach as in [24, 25]. partial derivatives ∂φ/∂x, and ∂φ/∂y, respectively, evaluated in
However, our method represents an interesting, non-iterative, the sampling points ( pk , qk ) ∈ Lm,n . In the context of a phase
and easy-to-program phase estimation, that eventually could unwrapping problem, these estimations are U = W [∂ψ/∂x ] and
be generalized or adapted as those more complex methodolo- V = W [∂ψ/∂y], correspondingly. Thus, a local minimizer of
gies. Although our proposal is a very simple multiple local function e = e(C m,n ) can be constructed from independent local
least-squares fitting, we have not seen similar descriptions in minimizers of the functions eU = eU ( a) and eV = eV (b), where
the specialized literature. Even in close references to our work, a := ( a1 , . . . , a6 )> := (C1m,n , C3m,n , C4m,n , C6m,n , C7m,n , C8m,n )> , and
where first and second order polynomials are considered, there b := (b1 , . . . , b6 )> := (C2m,n , C4m,n , C5m,n , C7m,n , C8m,n , C9m,n )> , re-
is no an specific proceeding on how the initial guesses of those it- spectively. If we consider the matrix variables
erative approaches are constructed. They are normally declared
in terms of unknown expected values [24, 25] or as zero matrices  
or vectors [22]. Thus, section 2 describes our proposal, and sec- 1 2uk vk 3u2k 2uk vk v2k
tion 3 provides some reconstruction examples using synthetic
 
 uk 2u2k uk vk 3u3k 2u2k vk uk v2k 
 
(with and without noise) and real data. Examples of our method  
compared with some other classic, non-iterative, unwrapping K  vk 2uk vk v2k 3u2k vk 2uk v2k v3k 

algorithms are also considered in section 3. Finally, in section 4, MU := ∑  ,
2 2u3k u2k vk 3u4k 2u3k vk u2k v2k 
k =1  u k
 
we point out some conclusions and directives for future work.  
2u2k vk uk v2k 3u3k vk 2u2k v2k uk v3k 
 
 uk vk
 
2. DESCRIPTION OF THE PROPOSAL v2k 2uk v2k v3k 3u2k v2k 2uk v3k v4k
On a square domain Ω = [ Xin f , Xsup ] × [Yin f , Ysup ] of posi- (6)
tions ( x, y), we have the discretization of a wrapped phase  
ψ(m, n) = ψ( xm , yn ), given by xm := Xin f + (m − 1)∆x with 1 uk 2vk u2k 2uk vk 3v2k
 
m = 1, . . . , M, and yn := Yin f + (n − 1)∆y with n = 1, . . . , N.  uk v2k 2uk vk u3k 2u2k vk 3uk v2k 
 
Here, the differential elements are ∆x := ( Xsup − Xin f )/( M − 1)
 
K  vk uk vk 2v2k u2k vk 2uk v2k 3v3k 

and ∆y := (Ysup − Yin f )/( N − 1), respectively, where the res- MV := ∑  ,
2 u3k 2u2k vk u4k 2u3k vk 3u2k v2k 
k =1  u k
 
olution of our images is MN-pixels. Now, let us consider a  
lattice of position coordinates Lm,n , centered at ( xm , yn ) with 
 uk vk u2k vk 2uk v2k u3k vk 2u2k v2k 3uk v3k 

certain number K of looks or sampling coordinates ( pk , qk )  
with k = 1, . . . , K. For instance, if K = 9, then the sam- v2k uk v2k 2v3k u2k v2k 2uk v3k 3v4k
pling points ( p1 , q1 ) = ( xm−1 , yn−1 ), ( p2 , q2 ) = ( xm−1 , yn ), . . . , (7)
Research Article Applied Optics 3

and where a := ( a1 , a2 , a3 )> := (C1m,n , C3m,n , C4m,n )> , and theoreti-


−1
    cally a = MU cU . Equivalent equations would be found for MV ,
1 1 cV , and b := (b1 , b2 , b3 )> := (C2m,n , C4m,n , C5m,n )> , concluding
   
 uk  uk −1
cV , that C1m,n = a1 , . . . , C4m,n = (1/2)( a3 + b2 ),
   
  from b = MV
and C5m,n = b3 . Finally, the easiest fit is achieved for a polyno-
   
K  vk
  K  vk
 
cU := ∑ Uk  cV := ∑ Vk 
 
, , (8) mial of order one as in [24, 25], where
 u2k  u2k
   
k =1  k =1 
φm,n ( x, y) := C0m,n + C1m,n ( x − xm ) + C2m,n (y − yn ), (12)
   
   
 uk vk   uk vk 
   
u2k u2k with average least squares solutions as

1 K 1 K
K k∑ K k∑
where uk := pk − xm and vk := qk − yn , then the vector solutions a := a1 := C1m,n = Uk , b := b1 := C2m,n = Vk .
−1 −1
a = MU cU and b = MV cV (least-squares solutions of eU and =1 =1
eV , respectively), suggest that (13)
We have programed our methodology by considering mainly
C1m,n = a1 , the third order model in Eq.(4), with the aim to know the behav-
C6m,n = a4 , ior of the third order polynomials, in comparison to the second
C2m,n = b1 , order polynomials, and the first order ones. Moreover, according
C7m,n = (1/2)( a5 + b4 ),
C3m,n = a2 , (9) to [24], a window with size L > 2 (K > 25 in our work) would
C8m,n = (1/2)( a6 + b5 ), be unnecessarily high, and although we could work with the
C4m,n = (1/2)( a3 + b2 ), smallest window (L = 1 or K = 9), we believe that is preferable
C9m,n = b6 .
C5m,n = b3 , to work with K = 25 in order to have an overdetermined system
of 9 unknowns that corresponds to the number of entries of
This is exactly the same process described in [26], on least- vector C m,n in the third order model. Moreover, according to the
squares fitting of Hartmann data, where the piston term was number of independent variables of the error functions eU and
not of interest. However, this time the information of the piston eV for the third order model, we could work with at least K = 6
is relevant because we need to estimate the constant term C0m,n sampling points, but this would represent a non-symmetrical
of our polynomial model in Eq.(4), on each lattice Lm,n . Let us window inducing a non-balanced local phase estimation in ab-
assume that we have estimated φ on a corner lattice Lm,n by con- sence of inconsistencies and noise.
sidering the piston term C0m,n = ψ( xm , yn ), and the information
of the partial derivatives in the sampling points of Lm,n , as pre- 3. RECONSTRUCTION EXAMPLES
viously described. If we work with a window of 5 × 5 = K = 25
pixels, this corner lattice would be L3,3 . Once we have obtained A. Synthetic example
the coefficients of φm,n in the corner lattice, and consequently all In order to appreciate the capabilities of our algorithm, we have
the values of φ on this lattice, we can follow with subsequent selected as a first reconstruction example a synthetic phase given
estimations on the first row of five pixels. For instance, in the by
next lattice Lm,n+1 (that is L3,4 ), the piston term is declared as φ( x, y) = 69( x2 + y2 ) exp [− x2 − y2 ], (14)
C0m,n+1 = φm,n ( xm , yn+1 ) because in theory φm,n ( xm , yn+1 ) = a volcano function defined on a square domain Ω = [−3.5, 3.5] ×
φm,n+1 ( xm , yn+1 ) and φm,n+1 ( xm , yn+1 ) = C0m,n+1 according to [−3.5, 3.5] with discretization M = N = 256. Among the classic
Eq.(4). In the new window Lm,n+1 , we can calculate again the algorithms that offer smooth solutions, we find the fast Fourier
coefficients of the model φm,n+1 , and with this new model we transform (FFT) based method, as described in [7]. Another inter-
can also redefine the common values of φ, previously calculated esting algorithm that assumes a global phase decomposition in
on Lm,n with the old model φm,n . At the end of all these consec- radial base functions (RBF) [13], can also produce smooth phase
utive estimations of φ on the first row of 5 pixels (until reach estimations. Since the unwrapping problem can be translated
L3,N −2 ), we can repeat the same process in a column-by-column in finding the solution of a Poisson equation with a Laplacian
fashion. Moreover, the same sequence could start first with an ρ estimated from U and V, the basic idea in the FFT method
estimation of φ on the first column of five pixels, followed by a consists in obtaining an estimation of φ from the periodic ex-
similar swept in a row-by-row way. tensions φ̃ and ρ̃. The periodic Laplacian ρ̃ is constructed by
On the other hand, the degree of the polynomial could be mirror reflections of the original Laplacian ρ, and an estimation
two as in [22, 23], in such a away that of φ̃ can be obtained from its FFT coefficients, because they are
in terms of the equivalent ones for ρ̃. In addition, in the case
φm,n ( x, y) := C0m,n + C1m,n ( x − xm ) + C2m,n (y − yn ) of the unwrapping algorithm that uses exponential radial base
functions (RBF method), the global phase model is assumed
+C3m,n ( x − xm )2 + C4m,n ( x − xm )(y − yn ) + C5m,n (y − yn )2 .
as a weighted linear combination of R = P × Q Gaussians
(10) exp {−[( x − x p )2 + (y − yq )2 ]/[2σ2 ]} with a fixed width or ra-
This would imply that dius σ = max {( Xsup − Xin f )/( P − 1), (Ysup − Yin f )/( Q − 1)},
    distributed equidistantly along the domain Ω where p =
1 2uk vk 1 1, . . . , P and q = 1, . . . , Q. The partial derivatives of the global
K   K  
MU := ∑  uk 2u2k uk vk  , cU := ∑ Uk  uk  , model must coincide with U and V per pixel, inducing a linear
   
k =1
  k =1
  system of R × R equations that can be solved for these weights.
vk 2uk vk v2k vk Due to their easy implementation and characteristics, the FFT
(11) and the RBF methods have been programed for comparison
Research Article Applied Optics 4

Fig. 2. Wrapped phase ψ for the volcano function in Eq.(14)


and its re-wrapped estimations with the FFT method ψFFT , the
RBF method ψRBF , and the proposal ψLTO , respectively.

free software, the computing time in seconds for the FFT based
Fig. 1. Synthetic phase φ given by Eq.(14) and its estimations;
method was t FFT = 8.0362, for RBF was t RBF = 168.5819, and
the FFT method φFFT , the RBF method φRBF , and the proposal
for LTO was t LTO = 38.3561, respectively. As expected, although
φLTO . Middle profiles at y = 0 are depicted in the bottom;
the FFT routine was not accurate enough, it was faster than
continuous line for φ, dashed line for φFFT , dot-dashed line for
the other methods, whereas the RBF method programed with
φRBF , and dotted line for φLTO .
R = 10 × 10 = 100 equidistant Gaussians (as suggested in [13])
was very slow. A better accuracy for the RBF methodology can
be achieved by considering more Gaussians, but its computing
purposes with our proposal; the local third order (LTO) method
time increases considerably. Therefore, a good balance between
described in section 2. For the volcano function, we can ob-
computing time and accuracy is observed in the proposal for
serve in Fig.(1) the synthetic surface φ and its estimations φFFT ,
this particular example.
φRBF , and φLTO , respectively. The original wrapped phase ψ
Furthermore, the FFT and RBF estimations seem to have
for volcano function and its re-wrapped estimations are shown
a problem of congruence with respect to ψ. This anomaly is
in Fig.(2). By assuming the surface matrices as column vectors
occasionally observed in phase unwrapping routines classified
with MN-entries, we can consider the normalized error between
as L2 -norm least squares algorithms [7] (FFT, RBF, and LTO are
the synthetic phase φ and any estimation φ̂ = φFFT , φRBF , φLTO ,
included in this family). This means that in some cases these
given by
algorithms offer re-wrapped solutions that do not coincide with
E = ||φ − φ̂||/(||φ|| + ||φ̂||), (15) the original ψ. This problem can be corrected by considering the
where || · || denotes Euclidean norm in R MN -space. This error additional post-processing congruence operation
varies between 0 and 1, where 0 represents the perfect estima- φ̃ = φ̂ + W [ψ − φ̂], (16)
tion, and 1, the worst result. The estimations in Fig.(1) have
been translated in z-direction according to a fixed reference applied to a previous least squares estimation φ̂, as suggested
position ( x, y) = (−3.5, 0), in other words, φ̂( x, y) has been in [7]. This operation improves the estimation with respect
replaced by φ̂( x, y) + φ(−3.5, 0) − φ̂(−3.5, 0) for all ( x, y) in Ω. to re-wrapped phase error, but sometimes, it produces unex-
This was in order to obtain the minimal normalized errors ob- pected phase solutions. For the previous reconstructions, this
served for all these methods. According to our results, the error post-processing step was not required by the LTO estimation.
for the FFT method was EFFT = 0.2294, for the RBF method However, in the FFT and RBF estimations where the congruence
was ERBF = 0.0629, and for the proposal was ELTO = 0.0061. operation took place, a minor improvement in phase error was
The accuracy of the estimation can be appreciated in the profile observed with EFFT = 0.1962 and ERBF = 0.0627, producing
graphics depicted in Fig.(1), where transversal sections at y = 0 deficient discontinuous results.
have been taken into account. On the other hand, it is interesting
to notice in Fig.(2) that, although ψRBF differs much from ψ in B. Simulation with noise
comparison to ψFFT , the RBF estimation produced an error less When additive random noise 0 ≤ σ(m, n) ≤ 1 is present in the
than the FFT one. Being programmed all these routines in Scilab phase, we can expect some variations in our results because our
Research Article Applied Optics 5

Fig. 3. Reconstruction of a noisy peaks function φNoisy with η = 2 (run 2) and different routines; the non-unwrapping method
φNU , the local first order estimation φLFO , the second order estimation φLSO , and the third order one φLTO . The synthetic noise
free surface φ is located at the top-left side, and all its estimations are sub-entitled, according the method used. The corresponding
wrapped versions of all these phase surfaces are located at the right.

proposal do not consider any additional step to counteract this defined on Ω = [−3, 3] × [−3, 3] with discretization M = N =
error source. Thus, in order to partially deal with this kind of 200, for the reconstruction of a noisy phase φNoisy at η = 2. For
corrupted data, we can be helped by a simple wrapped phase a comparison of the LTO approach with lower polynomial or-
filter as ders and alternative methods, we have programed the local first
order (LFO) and the local second order (LSO) fits, described in
ψFilt (m, n) = atan2[arg1 (m, n), arg2 (m, n)], (17) section 2, and the non-unwrapping (NU) method [19, 20], ex-
described in [7], where posed in section 1. After generating ψNoisy = W [φNoisy ] from the
corrupted peaks function, the filtered noisy wrapped element,
1 calculated by Eq.(17), has been considered as the input of all
arg1 (m, n) = ∑ sin [ψ(m + p, n + q)], these methods. The results with respect to processing times (in
p,q=−1
1
(18) seconds) and normalized errors, for two arbitrary reconstruction
arg2 (m, n) = ∑ cos [ψ(m + p, n + q)]. runs applied to this noisy example, are reported in Table(1).
p,q=−1

Alternatively to this pre-processing step, we could filter the Table 1. Processing times t and normalized errors E for the
wrapped partial derivatives (instead of ψ), by considering a reconstructions of the noisy peaks function (200 × 200 pixels)
Tikhonov regularizing mask [27] as proposed in [6], but the in two runs at η = 2.
effects of such processing can be analyzed in future works. Now,
Method t (run 1) E (run 1) t (run 2) E (run 2)
corrupted pattern simulations can be implemented when certain
percentage of noise 0 ≤ η ≤ 100 is added to the synthetic noise- NU 1.0562 0.2394 1.0438 0.1122
free phase φ. This is achieved by wrapping the noisy phase
LFO 10.3247 0.0704 10.2660 0.0366
φNoisy (m, n) = φ(m, n) + (η/100)|φ|max [−1 + 2σ(m, n)], (19) LSO 16.0170 0.0364 16.1295 0.0356
where |φ|max is the maximum absolute value of φ for all (m, n). LTO 22.6828 0.0342 22.7123 0.0249
As an example, we can consider the synthetic peaks function given
by
Graphics of the surface estimations of φ and its re-wrapped
φ( x, y) = 12(1 − x )2 exp [− x2 − (y + 1)2 ] patterns for run 2 are shown in Fig.(3). As we can see in this
figure, all the local approaches were good enough, with the
−40[(1/2) x − x2 − y2 ] exp [− x2 − y2 ] (20)
exception of the NU estimation. However, the best result was
−(4/3) exp [−( x + 1)2 − y2 ], achieved for the LTO method.
Research Article Applied Optics 6

Fig. 4. a) Normalized errors (E-errors) for the local polynomial estimations at different orders, obtained for Eq.(21) at different
frequencies ω; continuous line for order 1, dashed line for order 2, and dot-dashed line for order 3. b) E-errors for the polynomial
estimations obtained for the co-sinusoidal function with fixed ω = 1 and different percentages of noise η. c) E-errors as in b) with
fixed ω = 4. d) E-errors as in b) and c) with fixed ω = 8.

Onwards, in presence of noise, we can consider the local by


polynomial approaches and any other phase unwrapping algo-
rithm in this work with the addition of the preprocessing step φ( x, y) = 10 cos [ω ( x2 + y2 )1/2 ], (21)
given by the filter in Eq.(17). Taking into account this additional
defined on Ω = [−1, 1] × [−1, 1] with discretization M = N =
step, the noise sensitivity of the algorithms can be measured
100. In this case, different values like 0 ≤ ω ≤ 8 can generate
in terms of η, or alternatively, in terms of a signal to noise
phase forms with different fringe frequencies. If Eord denotes the
ratio (SNR) given by SNR = 20log10 [||φ||/||φ − φNoisy ||] (in
error for the local polynomial estimations of order ord = 1, 2, 3,
dB), where SNR = 63.4dB was achieved for the example in
that is, LFO, LSO, and LTO, respectively, then the sensitivity to
Fig.(3) with η = 2. Another forms to define the SNR, appar-
frequency ω for all these local fits can be observed in Fig.(4)-a).
ently in terms of the noise variance only, have been previously
Now, the sensitivity to noise for all these local approaches, when
considered in [24], and in a favorable but questionable case, we
considering the fixed value ω = 1 and levels of random noise
could think in replacing the Euclidean norms for |φ|max and
in the interval 0 ≤ η ≤ 30, is depicted in Fig.(4)-b). Equiva-
|φ − φNoisy |max in the aforementioned SNR formula, in order
lent graphics are shown in Figs.(4)-c), and d), when considering
to obtain SNR = 20log10 (100/η ). In other words, a version of
fixed frequencies ω = 4 and ω = 8, respectively. According
SNR exclusively in terms of η and independently of φ in any
to the graphics in Fig.(4), the second and the third local estima-
case. That would imply SNR ≈ 34dB for η = 2, a probably
tions seem to be more appropriate to deal with the frequency
debatable level of noise in terms of SNR. However, since a true
of the signal in Eq.(21). This means that an error less than 0.1
SNR should depend on the power of the signal (which depends
is obtained by the LSO and the LTO methods (item a)), along
on the form of φ and its discretization) and the power of the
the interval 0 ≤ ω < 8. However, in the presence of noise the
noise (in terms of the η-noise level), we are going to restrict our
dynamic range in frequency is reduced, considering an approxi-
noise sensitivity analysis to parameter η instead of SNR values,
mated tolerance of η = 11% of additive random noise for low
in order to be concise and to avoid ambiguities.
frequencies like 0 ≤ ω < 1 (item b)), and 8% for middle frequen-
cies like 1 ≤ ω < 4 (item c)). The LFO approach is quite sensitive
to both, frequency and noise, allowing only good estimations
C. Sensitivity to frequency and noise
for frequencies lower than 2 in absence of noise (item a)), and
In absence of noise, the polynomial degree of our local approach tolerating 7% of noise for low frequencies less than 1 (item b)).
could be useful when considering the relative fringe frequency Finally, although LSO and LTO seem to have similar properties
ω. This frequency can be understood as an amplitude parameter with respect to frequency and noise, a tolerance of 4% of noise
for the argument of the interest signal; in our case, the phase. As is observed in the LTO method for relatively high frequencies
a simple example, we can think in a co-sinusoidal function given such as 4 ≤ ω < 8 (item d)).
Research Article Applied Optics 7

D. Real data reconstruction Meth = NU, FFT, LTO (See Fig.(7)). So, after implementing a di-
A SAR fringe pattern ψ with M × N = 521 × 571 pixels has rect fitting between the model in Eq.(24) and all the unwrapped
been considered as an example of real data reconstruction. The estimations, considering 25 equidistant sampling points dis-
pattern corresponds to a wrapped deformation phase, which in tributed on s, we can find first initial guesses Φ0 for all these esti-
SAR language is called interferogram. The wrapped deformation mations. From these initial coefficients, the polynomial surfaces
phase is related to earthquake vibrations, and it was generated can be extended to the global lattice, then, the re-wrapped initial
and preprocessed with some standard steps applied to two satel- guesses defined on W can be also obtained (patterns ψ0Meth in
lite images of Sentinel 1 by using the free software called Sentinel Fig.(7), respectively). Finally, with some iterative minimization
Application Platform (SNAP) [28, 29]. This pattern is a subset of routine (Scilab optim tool in our case), the optimum guesses Φ∗
a big interferogram from Santiago Pinotepa Nacional-Oaxaca, can be achieved (patterns ψ∗Meth in Fig.(7)). Results in processing
a seismic region at the south of Mexico. In Fig.(5), the fringe times for finding the optimum iteratively and number of itera-
pattern ψ of Pinotepa-Oaxaca can be seen, where the result of tions carried out for each process, are reported in Table(2). As
our proposal is entitled as φLTO . For a comparison with other
methods, we have also programed the most basic algorithm on
phase unwrapping, the Itoh method [1, 7], whose result is given Table 2. Processing times (in seconds) and number of itera-
by φ Itoh in the same figure. The input of these two algorithms tions carried out in the optimization routines for different
was the filtered wrapped phase version of the original ψ, accord- initial guesses, according to the method.
ing to Eq.(17). In this example, the congruence operation was Method Time No. of iterations Optimum found?
applied in the LTO estimation, producing an expected solution.
On the other hand, although the Itoh estimations do not require NU 104.4316 387 Yes
the congruence operation, the Itoh’s algorithm output in both FFT 112.5225 403 No
cases, with and without congruence applied, was an inconsistent
estimation, as depicted in Fig.(5). LTO 70.7471 272 Yes

E. Hypothetical application in iterative procedures inferred from this table, a good initial guess can reduce time and
Let us consider a wrapped fringe pattern ψ (see Fig.(6)), induced number of iterations required for finding an optimal solution.
by the five order polynomial given by
4. DISCUSSION AND CONCLUSIONS
φ( x, y) = 0.9 −1.5x + 18( x2 + y2 ) − 12y4 − 36x2 y2 − 18x4

In this work, we presented a non-iterative phase unwrapping
+50xy4 − 60x3 y2 + 8x5 − 12( xy2 + x3 ) + 10x5 algorithm based on local third-order polynomial approximations
(the LTO method). The proposal in question, consists of making
−24y3 + 72x2 y + 30y5 − 60x2 y3 − 90x4 y ,

first an adjustment over a window of 5 × 5 pixels in some corner
(22) of the fringe pattern. Then, the piston term is propagated to
translated at point ( x, y) = (0.2, 0.2) and defined on subsequent windows of the same size, on a row or a column
Ω = [−1, 1] × [−1, 1] with discretization M = N = 200. with 5 pixels width, by updating the phase information from the
Now, considering the phase differences ∆ x φ(m, n) = φ(m + partial derivatives estimated by the wrapped operator.
1, n) − φ(m, n), ∆y φ(m, n) = φ(m, n + 1) − φ(m, n), and the Certainly, the local polynomial approaches in phase unwrap-
definition |∆φ|max := max{|∆ x φ(m, n)|, |∆y φ(m, n)||m, n = ping problems are not new, because in references like [21–25],
1, . . . , M, N }, the previous discretized five order polynomial the authors have worked with them, but only up to the second
satisfies |∆φ|max = 6.5835. In other words, ψ is a very high order and in the context of iterative procedures. Therefore, our
frequency pattern that exceeds the Nyquist constraint proposal represents the introduction of the third order models
for phase unwrapping algorithms in a non-iterative way. More-
|∆φ|max < π, (23) over, our methodology is also offering an explanation of how
could be estimated the initial model coefficients, in robust it-
required for a good sampling [7]. If we applied directly what- erative procedures like [21–25], from the main hypothesis: the
ever of our previous unwrapping algorithms to this particular local polynomial model used. On the other hand, the potential
example, we would fail for sure. However, the strategy pro- use of cubic interpolations can be useful in order to reduce the
posed in [30], about focusing our attention in a trust region or a computational cost of some iterative procedures, just like in [20],
fringe pattern subset ψ|s of low frequency, as that one appearing where a cubic model approach demonstrated similar results to a
in the right side of Fig.(6), could be useful in some way. For robust iterative oversampling routine based on the minimization
instance, under the assumption that the phase to be estimated of an error function. This cost reduction was also observed in
behaves as the 25th -order polynomial the election of an appropriate initial guess in the context of the
6 6
hypothetical iterative problem described in section 3-E. Since
φ( x, y) = ∑ ∑ c p,q x p−1 yq−1 , (24) we are proposing in some way the best local polynomial initial
guesses, not only in the third order case, but also in lower orders,
p =1 q =1
our proposal could be useful as an initial stage in the iterative
we can minimize the functional in Eq.(2) defined on the global algorithms in [21–25], when considering smooth phases.
lattice W := {(m, n)|m, n = 1, . . . , 200}, with independent An interesting question regarding the degree of the poly-
variable Φ := (c1,1 , c1,2 , . . . , c6,6 )> . In a trust region like s := nomial used refers to why we must consider the order three,
{(m, n)|m, n = 50, . . . , 150}, we can apply the NU, the FFT, instead of an order one or an order two. Well, the logical an-
and the LTO algorithms (theoretically without problem), ob- swer to this question is due to the fact that, with the local third
taining as a result, the re-wrapped estimations ψ Meth |s , where order approaches, we have the possibility of estimating points
Research Article Applied Optics 8

Fig. 5. Real data reconstruction of a SAR interferogram ψ from Pinotepa-Oaxaca. The unwrapped estimations with the Itoh and the
LTO algorithms are given by φ Itoh and φLTO , respectively. The re-wrapped result ψLTO is also depicted.

L = { x24 , . . . , x28 } can be locally interpolated by quadratic


functions like g( x ) = a0 + a1 x + a2 x2 or cubic models like
h( x ) = b0 + b1 x + b2 x2 + b3 x3 , respectively. When considering
the errors eg ( x ) = | g0 ( x ) − φ0 ( x )| and eh ( x ) = |h0 ( x ) − φ0 ( x )|
for both models, we can find that eh (0) = 1.3 × 10−5 is consid-
erably less than eg (0) = 3.9434 × 10−3 . Thus, to appreciate the
capabilities of our proposal in some interesting examples (vol-
cano and peaks functions), the LTO approach was compared with
some other classic non-iterative algorithms, like those based
on the use of fast Fourier transforms (the FFT method), radial
base functions (RBF algorithm), and direct integrations of par-
Fig. 6. Wrapped phase ψ of the five order polynomial in tial derivatives obtained from sine and cosine estimations (NU
Eq.(22) and its subset ψ|s of low frequency. method). Through another particular example (the co-sinusoidal
function), a brief analysis on the properties of the local approx-
imations, with respect to polynomial degree, was described in
this study. Based on this analysis, it is inferred that the approxi-
in the phase surface that represent changes of curvature in dif- mations of orders 2 and 3 (LSO, and LTO methods, respectively),
ferent directions. In one dimension, this is a clear advantage could be useful for the estimation of surfaces with relatively
normally observed in cubic approaches, such as occurs in cer- high frequency. However, in some cases the LTO approximation
tain cases of oversampling [20]. The third order fit could offer can offer better results than its LSO counterpart.
better results than its quadratic counterpart in absolute slope
errors for inflexion or saddle points. For instance, we can think On the other hand, since our algorithm consists in the appli-
in a phase φ( x ) = sin ( x ) defined on the interval [−π/2, π/2] cation of multiple and sequential polynomial fits, and it makes
with discretization N = 51. The central point x26 = 0 repre- a direct use of the information given by the wrapped partial
sents an inflexion point of φ, which in the five points lattice derivatives of ψ, in principle, it does not consider any previ-
Research Article Applied Optics 9

Fig. 7. Firs row: Re-wrapped estimations defined on the subset s for the non-unwrapping method ψNU |s , the FFT method ψFFT |s ,
and the LTO method ψLTO |s . Second and third rows: corresponding 25th -order polynomials for the initial Φ0 and the optimum Φ∗
guesses, respectively.

ous preprocessing step to improve the quality of the data when another interesting future directive could be the generalization
considering noise. However, as we could see, good enough esti- of the second and the third order approaches, in a similar way
mations were achieved with just the application of the simple to the Kulkarni’s state space analysis.
wrapped phase filter described by Eq.(17). With this additional
step, good results were obtained, even with the fringe pattern
that represented a reconstruction from real data of a SAR inter- REFERENCES
ferogram (the Pinotepa-Oaxaca fringe pattern). Nevertheless, 1. K. Itoh, “Analysis of the phase unwrapping algorithm,” Applied Optics,
research on other kind of filters applied to the estimated partial 21, 2470 (1982).
derivatives instead of the wrapped phase, like the regularizing 2. R.M. Goldstein, H.A. Zebker, and C.L. Werner, “Satellite radar interferom-
masks proposed in [6, 27], could be another interesting alterna- etry: Two-dimensional phase unwrapping,” Radio Science, 23, 713-720
tives for future adaptations. (1988).
3. G. Fornaro, G. Franceschetti, R. Lanari, and E. Sansosti, “Robust phase-
Finally, an analysis on the sensitivity of the local polynomial unwrapping techniques: a comparison,” JOSA A, 13, 2355-2366 (1996).
approaches, regarding the presence of possible additive random 4. T.J. Flynn, “Two-dimensional phase unwrapping with minimum weighted
noise, was also considered. In the particular example studied on discontinuity,” JOSA A, 14, 2692-2701 (1997).
the co-sinusoidal function, we could see that LSO and LTO meth- 5. M. Constantini, “A novel phase unwrapping method based on network,”
ods have similar properties, however, the LTO method could IEEE Transactions on Geoscience and Remote Sensing, 36, 813-821
(1998).
tolerate 4% of additive random noise for relatively high frequen-
6. I. Lyuboshenko and H. Maître, “Phase unwrapping for interferometric
cies. In contrast, the LFO approximation was very sensitive to
synthetic aperture radar by use of Helmholtz equation eigenfunctions
frequency and noise. In this particular first-order approximation, and the first Green’s identity,”, JOSA A, 16, 378-395 (1999).
the resultant least-squares coefficients were an average of the 7. D.C. Ghiglia and M.D. Pritt, Two-dimensional phase unwrapping: theory,
estimated partial derivatives (Eq.(13)), the so-called expected algorithms, and software, (John Wiley & Sons, Inc., 1998).
estimates described by equation (9) in the Kulkarnis’s work [24]. 8. J.M. Huntley and H. Saldner, “Temporal phase-unwrapping algorithm for
Therefore, based on this last reference, and in the current study, automated interferogram analysis,” Appl. Opt., 32, 3047-3052 (1993).
Research Article Applied Optics 10

9. J.L. Marroquin and M. Rivera, “Quadratic regularization functionals for


phase unwrapping,” JOSA A, 12, 2393-2400 (1995).
10. B. Ströbel, “Processing of interferometric phase maps as complex-
valued phasor images,” Appl. Opt., 35, 2192-2198 (1996).
11. K.A. Stetson, J. Wahid, and P. Gauthier, “Noise-immune phase un-
wrapping by use of calculated wrap regions,” Appl. Opt., 36, 4830-4838
(1997).
12. M. Rivera and J.L. Marroquin, “Half-quadratic cost functions for phase
unwrapping,”, Optics Letters, 29, 504-506 (2004).
13. J.V. Hernández, I.-de-la-R. Vargas, and E.-de-la-R. Miranda, “Radial
basis functions for phase unwrapping,” Computación y Sistemas, 14,
145-150 (2010).
14. C.W. Chen and H.A. Zebker, “Network approaches to two-dimensional
phase unwrapping: intractability and two new algorithms,” JOSA A, 17,
401-414 (2000).
15. C.W. Chen and H.A. Zebker, “Two-dimensional phase unwrapping with
use of statistical models for cost functions in nonlinear optimization,”
JOSA A, 18, 338-351 (2001).
16. M. Servin, J.L. Marroquin, and F.J. Cuevas, “Demodulation of a single
interferogram by use of a two-dimensional regularized phase-tracking
technique,” Appl. Opt., 36, 4540-4548 (1997).
17. J.C. Estrada, M. Servin, and J.L. Marroquin, “Local adaptable quadra-
ture filters to demodulate single fringe patterns with closed fringes,”,
Optics Express, 15, 2288-2298 (2007).
18. O.S. Dalmau-Cedeno, M. Rivera, and R. Legarda-Saenz, “Fast phase
recovery from a single closed-fringe pattern,” JOSA A, 25, 1361-1370
(2008).
19. G. Páez and M. Strojnik, “Phase-shifted interferometry without phase
unwrapping: reconstruction of a decentered wave front,” JOSA A, 16,
475-480 (1999).
20. A. Téllez-Quiñones and D. Malacara-Doblado, “Phase recovering with-
out phase unwrapping in phase-shifting interferometry by cubic and
average interpolation,” Appl. Opt., 51, 1257-1265 (2012).
21. V. Katkovnik, J. Astola, and K. Egiazarian, “Phase Local Approxima-
tion (PhaseLa) Technique for Phase Unwrap From Noisy Data,” IEEE
Transactions On Image Prpcessing, 17, 833-846, (2008).
22. C. Tian, Y. Yang, D. Liu, and Y. Zhuo, “Demodulation of single complex
fringe interferogram with a path independent regularized phase-tracking
technique,” Appl. Opt., 49, 170-179 (2010).
23. L. Kai and Q. Kemao, “A generalized phase tracker for demodulation of
a single fringe pattern,” Optics Express, 20, 12579-12592 (2012).
24. R. Kulkarni and P. Rastogi, “Local-polynomial-approximation-based
phase unwrapping using state space analysis,” Appl. Opt., 56, 29-34
(2017).
25. R. Kulkarni and P. Rastogi, “Phase unwrapping algorithm using poly-
nomial phase approximation and linear Kalman filter,” Appl. Opt., 57,
702-708 (2018).
26. A. Téllez-Quiñones, D. Malacara-Doblado, Z. Malacara-Hernández,
D.A. Gutiérrez-Hernández, and D. Malacara-Hernández, “Transversal
aberrations at arbitrary Hartmann-plane distances: application in the
least-squares fitting of Hartmann data,” Applied Optics, 56, 1215-1224
(2017).
27. M. Bertero and P. Boccacci, Introduction to Inverse Problems in Imag-
ing, (IOP Publishing Ltd, 1998).
28. A. Ferreti, A. Monti-Guarnieri, C. Pratti, and F. Rocca, InSAR Principles:
Guidelines for SAR Interferometry Processing and Interpretation, (ESA,
2007).
29. L. Veci, “Sentinel-1 Toolbox: TOPS Interferometry Tutorial,” (ESA, 2015)
https://sentinel.esa.int/web/sentinel/toolboxes/sentinel-1/tutorials
30. A. Téllez-Quiñones, D. Malacara-Doblado, and J. García-Márquez,
“Polynomial fitting model for phase reconstruction: interferograms with
high fringe density," Proc.SPIE 8493, doi:101117/12.956500

View publication stats

You might also like