Professional Documents
Culture Documents
Deconvolving Images With Unknown Boundaries Using The Alternating Direction Method of Multipliers
Deconvolving Images With Unknown Boundaries Using The Alternating Direction Method of Multipliers
8, AUGUST 2013
Abstract— The alternating direction method of multipliers approaches make use of variable splitting, which allows a
(ADMM) has recently sparked interest as a flexible and efficient straightforward treatment of various priors/regularizers [1],
optimization tool for inverse problems, namely, image decon- such as those based on frames or on total-variation (TV) [36],
volution and reconstruction under non-smooth convex regular-
ization. ADMM achieves state-of-the-art speed by adopting a as well as the seamless inclusion of several types of constraints
divide and conquer strategy, wherein a hard problem is split (e.g., positivity) [23], [38]. ADMM is closely related to other
into simpler, efficiently solvable sub-problems (e.g., using fast techniques, namely the so-called Bregman and split Bregman
Fourier or wavelet transforms, or simple proximity operators). methods [10], [26], [43] and Douglas–Rachford splitting [9],
In deconvolution, one of these sub-problems involves a matrix [14], [19], [21].
inversion (i.e., solving a linear system), which can be done
efficiently (in the discrete Fourier domain) if the observation Several ADMM-based algorithms for imaging inverse prob-
operator is circulant, i.e., under periodic boundary conditions. lems require, at each iteration, solving a linear system [2], [10],
This paper extends ADMM-based image deconvolution to the [23], [33], [39]. This fact is simultaneously a blessing and a
more realistic scenario of unknown boundary, where the obser- curse. On the one hand, the matrix in this system is related to
vation operator is modeled as the composition of a convolution the Hessian of the objective function, thus carrying second
(with arbitrary boundary conditions) with a spatial mask that
keeps only pixels that do not depend on the unknown boundary. order information; arguably, this fact justifies the excellent
The proposed approach also handles, at no extra cost, problems speed of these methods, which have been shown (see [2]) to
that combine the recovery of missing pixels (i.e., inpainting) with be considerably faster than the classical iterative shrinkage-
deconvolution. We show that the resulting algorithms inherit thresholding (IST) algorithms [16], [22] and even than their
the convergence guarantees of ADMM and illustrate its perfor- accelerated versions [7], [8], [42]. On the other hand, this
mance on non-periodic deblurring (with and without inpaint-
ing of interior pixels) under total-variation and frame-based system (typically of huge size) limits the applicability to
regularization. problems where it can be efficiently solved For ADMM-
based image deconvolution algorithms [2], [10], [23], [39], the
Index Terms— Image deconvolution, alternating direction
method of multipliers (ADMM), boundary conditions, nonperi- system matrix can be cheaply inverted using the fast Fourier
odic deconvolution, inpainting, total variation, frames. transform (FFT), as long as the convolution is cyclic/periodic
(or assumed to be so), thus diagonal in the discrete Fourier
I. I NTRODUCTION domain. However, as explained next, periodicity is a wrong
assumption for most real imaging problems.
T HE ALTERNATING direction method of multipliers
(ADMM), originally proposed in the 1970’s [25],
emerged recently as a flexible and efficient tool for sev-
In deconvolution, the pixels located near the boundary of
the observed image depend on pixels (of the unknown image)
located outside of its domain. The typical way to formalize
eral imaging inverse problems, such as denoising [23], [38],
this issue is to adopt a so-called boundary condition (BC).
deblurring [2], inpainting [2], reconstruction [34], motion
• The periodic BC (the use of which, in image deconvo-
segmentation [44], to mention only a few classical prob-
lems (for a comprehensive review, see [9]). ADMM-based lution, dates back to the 1970s [6]) assumes a periodic
convolution; its matrix representation is circulant,1 diag-
Manuscript received August 27, 2012; revised April 5, 2013; accepted onalized by the DFT1 , which can be implemented via the
April 9, 2013. Date of publication April 16, 2013; date of current version FFT. This computational convenience makes it, arguably,
May 24, 2013. This work was supported in part by Fundação para
a Ciência e Tecnologia, under Grants PTDC/EEA-TEL/104515/2008, the most commonly adopted BC.
PEst-OE/EEI/LA0008/2011, PTDC/EEI-PRO/1470/2012, and the fellowship • The zero BC assumes that all the external pixels have
SFRH/BPD/69344/2010. The associate editor coordinating the review of this zero value, thus the matrix representing the convolution
manuscript and approving it for publication was Dr. Xin Li.
M. S. C. Almeida is with the Instituto de Telecomunicações, Instituto is block-Toeplitz, with Toeplitz blocks [31]. By analogy
Superior Técnico, Lisboa 1049-001, Portugal and also with the ISCTE- with the BC for ordinary or partial differential equa-
Instituto Universitário de Lisboa, Lisboa 1649-026, Portugal (e-mail: mariana. tions that assumes fixed values at the domain boundary,
almeida@lx.it.pt).
M. A. T. Figueiredo is with the Instituto de Telecomunicações, Instituto this is commonly referred to Dirichlet BC [31].
Superior Técnico, 1049-001 Lisboa, Portugal (e-mail: mario.figueiredo@
lx.it.pt). 1 In fact, when dealing with 2D images, these matrices are block-circulant
Color versions of one or more of the figures in this paper are available with circulant blocks, thus diagonalized by the 2D discrete Fourier transform
online at http://ieeexplore.ieee.org. (DFT). For simplicity, we refer to such matrices simply as circulant and to
Digital Object Identifier 10.1109/TIP.2013.2258354 the 2D DFT simply as DFT.
1057-7149/$31.00 © 2013 IEEE
ALMEIDA AND FIGUEIREDO: DECONVOLVING IMAGES WITH UNKNOWN BOUNDARIES 3075
problems. The next section will then show how this approach Assuming periodic BC, matrix A is circulant, thus factors into
can be extended to deal with unknown boundaries.
A = U∗ U (19)
A. Frame-Based Synthesis Formulation where U and U∗ are the unitary matrices representing the DFT
There are two standard ways to formulate frame-based reg- and its inverse, and is the diagonal matrix of the DFT
ularization for image deconvolution, both exploiting the fact coefficients of the convolution kernel. Using (19), matrix F
that natural images have sparse representations on wavelet2 defined in (18) can be written as
frames: the synthesis and analysis formulations [2], [20], [37].
−1
F = U∗ ∗ ||2 + (μ2 /μ1 )I U, (20)
The synthesis formulation expresses the estimated image
x as a linear combination of the elements of some wavelet where ||2 denotes the squared
absolute values−1 of the entries
frame (an orthogonal basis or an overcomplete dictionary), of . Since the product ∗ ||2 + (μ2 /μ1 )I involves
i.e.,
x = Wz, with
z given by only diagonal matrices, it can be computed with only O(n)
1 cost, while the products by U and U∗ (DFT and its inverse)
z = arg min
y − AWz
22 + λφ(z), (9) can be computed with O(n log n) cost, using the FFT; thus,
z∈Rd 2
computing F and multiplying by it has O(n log n) cost.
where y ∈ Rn is a vector containing all the pixels (in lexico- The leading cost of each application of (17) (line four of
graphic order) of the observed image, A ∈ Rn×n is a matrix Algorithm 2) is either the O(n log n) cost associated with
representation of the (periodic) convolution, the columns of F or the cost of the products by W∗ and W. For most
matrix W ∈ Rn×d (d ≥ n) are the elements of the adopted tight frames used in image restoration (e.g. undecimated
frame, φ is a regularizer encouraging
z to be sparse (a typical wavelet transforms, curvelets, complex wavelets), these prod-
choice, herein adopted, is φ(z) =
z
1 ), and λ > 0 is the ucts correspond to direct and inverse transforms, for which
regularization parameter [2], [20], [24]. The first term in (9) fast O(n log n) algorithms exist [28]. In conclusion, under
results from assuming the usual observation model periodic BC and for a large class of frames, each iteration
y = Ax + n, (10) of Algorithm 2 for solving (9) has O(n log n) cost. Finally,
convergence of this instance of Algorithm 2 is established in
where x = Wz, and n is a sample of white Gaussian noise the following proposition.
with unit variance (any other value may be absorbed by λ). Proposition 2: The instance of Algorithm 2, with the defi-
Clearly, problem (9) has the form (2), with J = 2 and nitions in (11)–(14), with line four computed as in (17), and
1 the proximity operators in line six as given in (15) and (16),
g1 : Rn → R, g1(v) =
y − v
22 (11) converges to a solution of (9).
2
Proof: Since g1 and g2 are proper, closed, convex
g2 : Rd → R, g2 (z) = λ
z
1 (12)
(1) (1)
functions, so is the objective function in (9). Because g2 is
H ∈R , n×d
H = AW (13) coercive, so is the objective function in (9), thus its set of
(2)
H ∈R d×d
, H(2) = I. (14) minimizers is not empty [15]. Matrix H(2) = I obviously has
full column rank, which implies that G also has full column
The proximity operators of g1 and g2 , key components of
rank; that fact combined with the fact that g1 and g2 are proper,
Algorithm 2 for solving (9), have simple expressions,
closed, convex functions, and that a minimizer exists, allows
y + μ1 v invoking Proposition 1 which concludes the proof.
proxg1 /μ1 (v) = , (15)
1 + μ1
proxg2 /μ2 (z) = soft z, λ/μ2 , (16)
B. Frame-Based Analysis Formulation
where “soft” denotes the soft-threshold function in (8). Line In the frame-based analysis approach, the problem is for-
four of Algorithm 2 (the other key component) has the form mulated directly with respect to the unknown image (rather
μ2 −1 ∗ ∗ (1) μ2 (2) than its synthesis coefficients)
zk+1 ← W∗ A∗ AW + I W A ζ + ζ . (17)
μ1 μ1 1
x = arg min
y − Ax
22 + λ
Px
1 , (21)
As shown in [2], if W corresponds to a Parseval frame [28], x∈Rn 2
i.e., if3 WW∗ = I (although possibly W∗ W = I), the where A is as in (9) and P ∈ Rm×n (m ≥ n) is the
Sherman–Morrison–Woodbury inversion formula can be used analysis operator of a Parseval frame, i.e., satisfying4 P∗ P = I
to write the matrix inverse in (17) as (although possibly PP = I, unless the frame is an orthonormal
μ1
−1
basis) [28]. Problem (21) has the form (2), with J = 2, g1
I − W∗ A∗ AA∗ + (μ2 /μ1 )I A W . (18)
μ2 and g2 as given in (11) and (12), respectively, and
F
H(1) ∈ Rn×n , H(1) = A (22)
2 We use the generic term “wavelet” to mean any wavelet-like multiscale
(2)
representation, such as “curvelets,” “beamlets,” or “ridgelets” [28]. H ∈R m×n
, H(2) = P. (23)
3 In fact, the frame only needs to be tight [28], i.e., WW∗ = ωI; without
loss of generality, we assume ω = 1, which yields lighter notation. Recently, 4 As above, the frame is only required to be tight, i.e., P∗ P = ωI; since
a method for relaxing the tight frame condition was proposed in [33]. ω = 1 can be obtained simply by normalization, there is no loss of generality.
ALMEIDA AND FIGUEIREDO: DECONVOLVING IMAGES WITH UNKNOWN BOUNDARIES 3079
Since the proximity operators of g1 and g2 are the same 1) As shown in [39], [41], the matrix to be inverted in line
as in the synthesis case (see (15) and (16)), only line four of four of Algorithm 2 can be written as
Algorithm 2 has a different form
n
μ2 ∗ −1
∗ (1) μ2 ∗ (2) μ1 A∗ A + μ2 D∗j D j =
zk+1 ← A∗ A + P P A ζ + P ζ . (24) j =1
μ1 μ1
μ1 A A + μ2 (Dh )∗ Dh + (Dv )∗ Dv ,
∗
(31)
Since P∗ P = I and A = U∗ U,
the matrix inverse is simply:
where Dh , Dv ∈ Rn×n are the matrices collecting the
μ2 −1
−1
A∗ A + I = U∗ ||2 + (μ2 /μ1 )I U, (25) first and second rows, respectively, of each of the n
μ1 matrices Di ; that is, Dh computes all the horizontal
differences and Dv all the vertical differences. With
which has O(n log n) cost, since ||2 + (μ2 /μ1 )I is a
diagonal matrix and the products by U and U∗ (the DFT and periodic BC, the matrices in (31) can be factorized as
its inverse) can be computed using the FFT. A = U∗ U, Dh = U∗ h U, Dv = U∗ v U, (32)
In conclusion, under periodic BC and for a large class
of frames, each iteration of Algorithm 2 for solving (21) where , h , and v are diagonal matrices. Thus, the
has O(n log n) cost. Finally, convergence of this instance of inverse of the matrix in (31) can be written as
Algorithm 2 is claimed in the following proposition.
−1
Proposition 3: The instance of Algorithm 2, with the defin- U∗ μ1 ||2 + μ2 |h |2 + μ2 |v |2 U ≡ K, (33)
itions in (11), (12), (22), and (23), with line four computed as which involves a diagonal inversion, with O(n) cost, and
in (24)–(25), and the proximity operators in line six as given the products by U and U∗ (the direct and inverse DFT),
in (15) and (16), converges to a solution of (21). which have O(n log n) cost (by FFT).
Proof: Since g1 and g2 are proper, closed, convex func- 2) The sum yielding the vector to which this inverse is
tions, so is the objective function in (9). Because g2 is coercive applied (line four of Algorithm 2) is
and P is the analysis operator of a tight frame, ker(P) = {0}
(where ker(P) is the null space of matrix P), the objective
n+1
n
function in (9) is coercive, thus its set of minimizers is not μ j (H( j ))∗ ζ ( j ) = μ1 A∗ ζ (1) + μ2 D∗j ζ ( j +1)
empty [15]. Matrix H(2) = P has full column rank, thus the j =1 j =1
∗ (1) h ∗ h v ∗ v
same is true of G; combining that with g1 and g2 being proper, = μ1 A ζ + μ2 (D ) δ + μ2 (D ) δ
closed, and convex, and given the existence of a minimizer,
allows invoking Proposition 1 to conclude the proof. where δ h , δ v ∈ Rn contain the first and second
component, respectively, of all the ζ ( j ) vectors, for
j = 1, . . . , n. As seen above, the product by A∗ has
C. Total Variation O(n log n) cost via the FFT, while the products by (Dh )∗
and (Dv )∗ (which correspond to local differences) have
The classical formulation of TV-based image deconvolution
O(n) cost.
consists in a convex optimization problem
3) The proximity operator of g1 is as given in (15).
1 n 4) The proximity operator of gi (v) = λ
v
2 , for i =
x = arg min
y − Ax
22 + λ
Di x
2 , (26) 2, . . . , n + 1, is the so-called vector-soft function [39],
x∈Rn 2
i=1 [41]
λ λ
where x ∈ Rn , y
∈ Rn ,
λ > 0, and A ∈ Rn×n have the same v
prox gi (v) = v-soft v, = max
v
2 − , 0 ,
meanings as above, and each Di ∈ R2×n is the matrix that μi μi
v
2 μi
computes the horizontal and vertical differences
at pixel i (also
with the convention that 0/
0
2 = 0.
with periodic BC) [39], [41]. The sum ni=1
Di x
2 = TV(x)
defines the so-called total-variation5 (TV) of image x. Plugging all these equalities into Algorithm 2 yields Algo-
Problem (26) has the form (2), with J = n + 1, and rithm 3, which is similar to the one presented in [39].
Finally, convergence of Algorithm 3 is addressed in the
1 following proposition.
g1 : Rn → R, g1 (v) =
y − v
22 , (27)
2 Proposition 4: Consider problem (26) and assume that
gi : R2 → R, gi (v) = λ
v
2 , for i = 2, . . . , n + 1, (28) 1 ∈ ker(A). Then Algorithm 3 converges to a solution of
H(1) ∈ Rn×n , H(1) = A, (29) (26).
Proof: Since g1, . . . , gn+1 (27)–(28) are proper, closed,
H(i) ∈ R2×n , H(i) = Di−1 , for i = 2, . . . , n + 1, (30)
convex functions, so is the objective function in (26). That
For matrix ϒ (see (5)), we adopt μ2 = · · · = μn+1 > 0. 1 ∈ ker(A) implies coercivity of the objective function in
The main steps of the resulting instance of Algorithm 2 for (26), thus
existence of∗minimizer(s),
∗ was shown in [12]. Matrix
solving (26) are as follows. G = A∗ , D∗1 , . . . , D
∗n can be written
as a permutation
∗ of
the rows of A∗ , D∗ , where D = (Dh )∗ , . . . , (Dv )∗ ; since
5 In fact, this is the so-called isotropic discrete approximation of the Dx = 0 ⇔ x = α1 (α ∈ R), if 1 ∈ ker(A), then G has
continuous total-variation [11], [36]. full column rank. Finally, since Algorithm 3 is an instance of
3080 IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 22, NO. 8, AUGUST 2013
where M ∈ {0, 1}m×n (with m < n) is a masking matrix, i.e., proxg1 /μ1 (v) = arg min
Mu − y
22 + μ1
u − v
22 (39)
u
−1
∗
a matrix whose rows are a subset of the rows of an identity = M ∗ M + μ1 I M y + μ1 v ; (40)
matrix. The role of M is to observe only the subset of the
image domain in which the elements of Ax do not depend notice that, due to the special structure of M, matrix M∗ M
on the boundary pixels; consequently, the BC assumed for the is diagonal, thus the inversion in (40) has O(n) cost, the
convolution represented by A is irrelevant, and we may adopt same being true about the product M∗ y, which corresponds to
periodic BCs, for computational convenience. extending the observed image y to the size of
x, by creating
−1a
Assuming that A models the convolution with a blurring fil- boundary of zeros around it. Of course, both M∗ M + μ1 I
ter with a limited support of size (1 + 2 l) × (1 + 2√
l), and √
that and M∗ y can be pre-computed and then used throughout the
x and Ax represent square images of √ dimensions n × n, algorithm, as long as μ1 is kept constant. We refer to this
then matrix M ∈ Rm×n , with m = ( n − 2 l)2 , represents the approach as mask decoupling (MD).
removal of a band of width l of the outermost pixels of the In conclusion, the proposed MD-based ADMM algorithm
full convolved image Ax. for image deconvolution with unknown boundaries, under
Problem (34) can be seen as hybrid of deconvolution frame-based synthesis regularization, is Algorithm 2 with line
and inpainting [13], where the missing pixels constitute the four implemented as in (17) and the proximity operators in
unknown boundary. If M = I, model (34) reduces to a standard line six given by (40) and (16). We refer to this algorithm
periodic deconvolution problem. Conversely, if A = I, (34) as FS-MD (frame synthesis mask decoupling). As with the
becomes a pure inpainting problem. Moreover, the formulation periodic BC, the leading cost is O(n log n) per iteration.
(34) can be used to model problems where not only the Finally, convergence of the FS-MD algorithm is guaranteed
boundary, but also other pixels, are missing, as in standard by the following proposition (the proof of which is similar to
image inpainting. that of Proposition 2).
ALMEIDA AND FIGUEIREDO: DECONVOLVING IMAGES WITH UNKNOWN BOUNDARIES 3081
Proposition 5: Algorithm FS-MD (i.e., the instance of Following the MD approach introduced for the synthesis
Algorithm 2 with the definitions in (38) and (12)–(14), with formulation, we map Problem (44) into the form (2), by using
line four computed as in (17), and the proximity operators in g1 as defined in (38), and keeping H(1) , H(2) , and g2 as in the
line six as given in (40) and (16)) converges to a solution of periodic BC case: (22), (23), and (12), respectively.
(35). The only difference in the resulting instance of Algorithm 2
2) Using the Reeves–Šorel Technique: An alternative to the is the use of the proximity operator of the new g1, as given in
approach just presented of decoupling the convolution from (40). In conclusion, the proposed ADMM-based algorithm for
the masking operator is to use the method of [35], [40] to image deconvolution with unknown boundaries, under frame-
tackle the inversion (37). Following [35], notice that based analysis regularization, is simply Algorithm 2, with line
four implemented as in (24)–(25), and the proximity operators
MAW
AW = S , (41) in line six given by (40) and (16). We refer to this algorithm as
B
FA-MD (frame analysis mask decoupling). The computational
where B contains the rows of AW that are missing from MAW cost of the algorithm is O(n log n) per iteration, as in the
(recall that the rows of M are a subset of those of an identity periodic BC case. Convergence of FA-MD is addressed by the
matrix) and S is a permutation matrix that puts these missing following proposition (the proof of which is similar to that of
rows in their original positions in AW. Noticing that Proposition 3).
Proposition 6: Algorithm FA-MD (i.e., Algorithm 2 with
MAW
W∗ A∗ AW = W∗ A∗ M∗ , B∗ S∗ S the definitions in (38), (22), (23), and (12), with line four
B
computed as in (24)–(25), and the proximity operators in line
= W∗ A∗ M∗ MAW + B∗ B (42) six as given in (40) and (16)) converges to a solution of (44).
(S is a permutation matrix, thus S∗ S = I), the inverse of (37) 2) Using the Reeves–Šorel Technique: Consider Problem
can be written (with γ = μ2 /μ1 ) as (44) and map into the form (2) using (11)–(12), (23), and
∗ ∗ ∗ −1
∗ ∗ −1 H(1) ∈ Rn×n , H(1) = MA. (45)
W A M MAW + γ I = W A AW − B∗ B + γ I
−1
= C − CB∗ BCB∗− I BC, The matrix inverse computed in line four of Algorithm 2 is
now (with γ = μ2 /μ1 )
(43)
−1 −1
where the second equality results from using the Sherman- A∗ M∗ MA + γ P∗ P = A∗ M∗ MA + γ I , (46)
Morrison–Woodbury matrix inversion identity, after defining
which can no longer be computed as in (25), since matrix MA
C ≡ (γ I + W∗ A∗ AW)−1 . Since A is circulant, C can be
is not circulant. Using the same steps as in (41)–(43), with A
efficiently computed via FFT, as explained in (17)–(20). The
replacing AW and C ≡ (γ I + A∗ A)−1 , leads to
inversion (BCB∗ − I)−1 in (43) cannot be computed via FFT;
∗ ∗ −1
−1
however, its dimension corresponds to the number of unknown A M MA + γ I = C − CB∗ BCB∗− I BC, (47)
boundary pixels (number of rows in B), usually much smaller
than image itself. As in [35], [40], we use the CG algorithm to Since A is circulant, C = (γ I + A∗ A)−1 can be efficiently
solve the corresponding system; we confirmed experimentally computed via FFT, as in (25). As in the synthesis case, the
that (as in [40]) taking only one CG iteration (initialized with inverse (BCB∗ − I)−1 in (47) is computed approximately
the estimate of the previous outer iteration) yields the fastest by taking one (warm-started) CG iteration (for the reason
convergence, without degrading the final result. Thus, in our explained in Subsection IV-B.2). We refer to the resulting
experiments, we use a single CG iteration per outer iteration. algorithm as FA-CG (frame analysis conjugate gradient).
Approximately solving line four of Algorithm 2 via one
(or even more) iterations of the CG algorithm, rather than an D. TV-Based Deconvolution With Unknown Boundaries
FFT-based exact solution, makes convergence more difficult 1) Mask Decoupling (MD): Given the observation model
to analyze, so we will not present a formal proof. In a related in (34), TV-based deconvolution with unknown boundaries is
problem [23], it was shown experimentally that if the iterative formulated as
solvers used to implement the minimizations defining the
1 n
ADMM steps are warm-started (i.e., initialized with the values x = arg min
y − M A x
22 + λ
Di x
2 , (48)
from the previous outer iteration), then the error sequences x∈Rn 2
i=1
ηk and ρk , for k = 0, 1, 2, . . . are absolutely summable as
required by Theorem 1. Finally, we refer to this algorithm as with every element having the exact same meanings as above.
FS-CG (frame synthesis conjugate gradient). Following the MD approach, we map (48) into the form (2)
using g1 as defined in (38) and keeping all the other corre-
spondences (28)–(30) unchanged. The only resulting change
C. Frame-Based Analysis Formulation to Algorithm 3 is in line seven, which becomes
1) Mask Decoupling (MD): The frame-based analysis for-
∗ −1 ∗
(1)
mulation corresponding to observation model (9) is u(1)
k+1 ← M M + μ 1 I M y + μ 1 A z k+1 − dk , (49)
V. E XPERIMENTS
In the experiments herein reported, we use the benchmark
images Lena and cameraman (of size 256 × 256), with
4 different blurs (out-of-focus, linear motion, uniform, and
Gaussian), all of size 19 × 19 (i.e., (2 l + 1) × (2 l + 1),
with l = 9, as explained in Section IV-A), at four different
BSNRs (blurred signal to noise ratio): 30 dB, 40 dB, 50 dB,
and 60 dB. The reason why we concentrate on large blurs is
that the effect of the boundary conditions is very evident in
this case.
To set up a scenario of unknown boundaries, the observed
images (of size 238 × 238, since 238 = 256−18) are obtained
by applying the filters to the 238 × 238 central region of
the original images, using the band of pixels (of width 9)
around this region as the boundary pixels. In the proposed
Fig. 3. Results obtained on the cameraman image, degraded by a 19 × 19 formulation, these boundary pixels are modeled as unknown.
linear motion blur, at 40-dB BSNR, by the four algorithms considered (see
text for the acronyms). Notice that FA-BC and FA-ET produce 238 × 238 Notice that this procedure is equivalent to convolving the
images, while FA-CG and FA-MD yield 256 × 256 images; the dashed square full (256 × 256) images using an arbitrary BC (periodic, for
shows the limit of the boundary region. computational convenience) and then keeping only the valid
region (i.e., the one that does not depend on the BC). Since
algorithm for TV-based deconvolution with unknown bound- n = 2562 = 65536 and m = 2382 = 56644, the number of
aries has the exact same structure as Algorithm 3, with line unknown boundary pixels is 8892.
seven replaced by 49. We refer to this algorithm as TV-MD Preliminary tests showed that both TV and frame-
(TV mask decoupling). Finally, convergence of TV-MD is based analysis regularization slightly (but consistently) out-
addressed in the following proposition (the proof of which perform the frame-based synthesis formulation, in terms
is similar to that of Proposition 4). of ISNR (improvement in signal to noise ratio), thus
Proposition 7: If 1 ∈ ker(MA), then TV-MD (i.e., the we will not report experiments with the latter. Con-
version of Algorithm 3 with line seven replaced by (49)) cerning TV regularization, we consider four algorithms:
converges to a solution of (48). 1) TV-MD (proposed in Subsection IV-D.1); 2) TV-CG
As for periodic BCs, the condition 1 ∈ ker(MA) is very (proposed in Subsection IV-D.2); 3) Algorithm 3 with the
mild, and is satisfied by the convolution with any low-pass (wrong) assumption of periodic BC (referred to as TV-BC);
filter (for which A1 = β1, where β is the DC gain, typically and 4) Algorithm 3 also with the (wrong) assumption of
β 1) and M1 = 0, if m > 1 (at least one pixel is observed). periodic BC, after pre-processing the observed image with
the “edgetaper” (ET) function (referred to as TV-ET). Sim-
2) Using the Reeves–Šorel Technique: To use the Reeves- ilarly, in the frame-based6 analysis formulation, we consider
Šorel technique to handle (48), the mapping to the form (2) is four algorithms: 1) FA-MD (proposed in Subsection IV-C.1);
done as in (27), (28), and (30), with (29) replaced by (45). The 2) FA-CG (proposed in Subsection IV-C.2); 3) the algorithm
consequence is a simple modification of Algorithm 3, where
A is replaced by MA, in line eight, while in line six, A∗ is 6 In the frame-based approach, we use a redundant Haar frame, with four
replaced by A∗ M∗ and K is redefined (instead of (33)) as the levels, although we could use any other frame with fast transforms.
ALMEIDA AND FIGUEIREDO: DECONVOLVING IMAGES WITH UNKNOWN BOUNDARIES 3083
Fig. 4. Illustration on the use of the proposed method for simultaneous Fig. 5. Illustration of the use of the proposed method for simultaneous
deblurring and inpainting. The observed image suffered a 19 × 19 uniform deblurring and block inpainting. The observed image suffered a 19 × 19
blurring, followed by the loss of 20% of (randomly located) pixels. uniform blurring, followed by the loss of two 19 × 19 and one 29 × 29
blocks of pixels.
TABLE I
ISNR VALUES (I N dB) O BTAINED BY THE F OUR A LGORITHMS T ESTED (S EE THE A CRONYMS IN THE T EXT ) FOR TV-BASED I MAGE D EBLURRING
Cameraman Lena
Blur BSNR TV-BC TV-ET TV-CG TV-MD TV-BC TV-ET TV-CG TV-MD
Uniform 30 dB 1.05 4.42 5.47 5.44 0.44 3.07 5.52 5.26
Out-of-focus 30 dB 1.41 5.18 5.68 5.66 0.70 4.32 6.02 5.83
Linear motion 30 dB 2.09 6.83 8.26 8.24 1.17 5.88 7.85 7.54
Gaussian 30 dB 1.63 3.25 3.21 3.21 0.82 3.31 3.08 3.03
Average for 30 dB 1.54 4.92 5.65 5.64 0.78 4.14 5.61 5.42
Uniform 40 dB 1.04 4.89 7.07 7.02 0.44 3.13 7.18 7.05
Out-of-focus 40 dB 1.40 6.60 8.34 8.34 0.70 4.62 8.25 7.94
Linear motion 40 dB 2.07 8.30 12.57 12.41 1.16 6.31 11.24 11.08
Gaussian 40 dB 1.61 4.01 4.03 4.03 0.80 3.84 3.85 3.82
Average for 40 dB 1.53 5.95 8.02 7.95 0.77 4.47 7.63 7.47
Uniform 50 dB 1.04 5.82 9.77 9.75 0.44 3.14 9.09 9.06
Out-of-focus 50 dB 1.40 7.35 11.85 11.78 0.70 4.67 10.92 10.80
Linear motion 50 dB 2.06 8.64 16.87 16.67 1.17 6.37 12.33 12.59
Gaussian 50 dB 1.61 4.44 4.77 4.78 0.79 4.00 4.48 4.47
Average for 50 dB 1.53 6.56 10.81 10.77 0.77 4.54 9.20 9.23
Uniform 60 dB 1.04 6.24 11.59 11.95 0.44 3.14 9.84 10.41
Out-of-focus 60 dB 1.40 7.51 14.68 14.89 0.70 4.67 12.82 13.27
Linear motion 60 dB 2.07 8.69 20.03 19.88 1.16 6.38 13.71 13.56
Gaussian 60 dB 1.53 4.67 4.91 4.97 0.80 4.02 4.60 4.70
Average for 60 dB 1.53 6.78 12.80 12.92 0.77 4.55 10.24 10.48
Global average 1.53 6.05 9.32 9.32 0.77 4.43 8.17 8.15
TABLE II
ISNR VALUES (I N dB) O BTAINED BY THE F OUR A LGORITHMS T ESTED (S EE THE A CRONYMS IN THE T EXT ) W ITH THE F RAME -BASED A NALYSIS
F ORMULATION OF I MAGE D EBLURRING
Cameraman Lena
Blur BSNR FA-BC FA-ET FA-CG FA-MD FA-BC FA-ET FA-CG FA-MD
Uniform 30 dB −0.32 4.48 5.27 5.27 −2.54 2.96 5.07 5.07
Out-of-focus 30 dB 0.78 5.17 5.53 5.53 −1.50 4.33 5.51 5.50
Linear motion 30 dB 0.91 7.27 8.11 8.12 −1.85 6.18 7.55 7.50
Gaussian 30 dB 1.11 2.98 2.93 2.92 −0.32 2.90 2.62 2.63
Average for 30 dB 0.62 4.98 5.46 5.46 −1.55 4.09 5.19 5.18
Uniform 40 dB −0.33 5.09 7.19 7.17 −2.54 3.05 6.91 6.83
Out-of-focus 40 dB 0.78 7.33 8.51 8.51 −1.50 4.88 7.95 7.95
Linear motion 40 dB 0.91 9.38 12.58 12.59 −1.84 7.12 11.29 11.22
Gaussian 40 dB 1.10 3.79 3.79 3.80 −0.33 3.56 3.48 3.48
Average for 40 dB 0.62 6.40 8.02 8.02 −1.55 4.65 7.41 7.37
Uniform 50 dB −0.34 6.06 10.00 9.99 −2.53 3.06 8.95 9.02
Out-of-focus 50 dB 0.79 8.62 12.10 12.10 −1.50 5.02 11.03 10.99
Linear motion 50 dB 0.91 9.86 16.89 16.82 −1.84 7.29 14.70 14.63
Gaussian 50 dB 1.10 4.49 4.67 4.67 −0.33 3.87 4.27 4.21
Average for 50 dB 0.62 7.26 10.91 10.90 −1.55 4.81 9.74 9.71
Uniform 60 dB −0.33 6.59 12.32 12.52 −2.52 3.06 10.21 10.63
Out-of-focus 60 dB 0.78 8.88 15.79 15.77 −1.50 5.04 14.15 14.21
Linear motion 60 dB 0.92 9.92 20.37 20.34 −1.84 7.31 16.31 16.41
Gaussian 60 dB 1.10 4.76 4.99 5.01 −0.33 3.94 4.61 4.59
Average for 60 dB 0.62 7.54 13.37 13.41 0.77 4.84 11.32 11.46
Global average 0.62 6.55 9.44 9.45 −1.55 4.60 8.41 8.43
TABLE III
C OMPUTATION T IMES OF THE F OUR A LGORITHMS T ESTED ; THE T IMES ( IN S ECONDS ) R EPORTED IN E ACH ROW C ORRESPONDS TO AVERAGES OVER
THE F OUR B LURS AT THE I NDICATED BSNR VALUES
Cameraman Lena
BSNR TV-MD TV-CG FA-MD FA-CG TV-MD TV-CG FA-MD FA-CG
30 dB 1.32 2.62 1.87 3.05 2.65 3.69 3.08 4.03
40 dB 1.52 2.96 2.39 3.65 2.85 4.13 3.60 5.04
50 dB 2.28 4.20 4.70 7.38 3.32 5.18 5.97 8.76
60 dB 8.63 16.54 16.25 26.87 11.02 21.10 16.28 25.77
Average 3.44 6.58 6.30 10.24 4.96 8.53 7.23 10.90
of ADMM-based deblurring algorithms, the mask decoupling Finally, we illustrate the successful application of the pro-
approach is preferable to the use of the Reeves technique [35] posed TV-MD and TV-CG approaches in simultaneous non-
with a CG-based inner step. periodic deblurring and inpainting (the FA-MD and FA-CG
ALMEIDA AND FIGUEIREDO: DECONVOLVING IMAGES WITH UNKNOWN BOUNDARIES 3085
[29] A. Matakos, S. Ramani, and J. Fessler, “Image restoration using non- Mariana S. C. Almeida was born in Lisbon, Portu-
circulant shift-invariant system models,” in Proc. IEEE Int. Conf. Image gal, graduated in electrical and computer engineering
Process., Oct. 2012, pp. 3061–3064. from Instituto Superior Técnico, Engineering School
[30] A. Matakos, S. Ramani, and J. Fessler, “Accelerated edge-preserving of the Technical University of Lisbon, Lisbon, in
image restoration without boundary artifacts,” IEEE Trans. Image 2005, and the Ph.D. degree in electrical and com-
Process., vol. 22, no. 5, pp. 2019–2029, May 2013. puter engineering with the same institute, in 2010,
[31] M. Ng, Iterative methods for Toeplitz systems. London, U.K.: Oxford with a thesis on blind separation and blind deblur-
University Press, 2004. ring of images. From 2009 to 2011, she was an
[32] M. Ng, R. Chan, and W.-C. Tang, “A fast algorithm for deblurring Invited Assistant Professor with Instituto Superior
models with Neumann boundary conditions,” SIAM J. Sci. Comput., de Ciências do Trabalho e da Empresa – Instituto
vol. 21, no. 3, pp. 851–866, 1999. Universitário de Lisboa. She is currently a Post-
[33] N. Pustelnik, J.-C. Pesquet, and C. Chaux, “Relaxing tight frame Doctoral Fellow with Instituto de Telecomunicações, Lisbon, Portugal. Her
condition in parallel proximal methods for signal restoration,” IEEE current interests include signal and image processing, source separation,
Trans. Signal Process., vol. 60, no. 2, pp. 968–973, Feb. 2012. machine learning, and optimization. He was recognized with an Honorable
[34] S. Ramani and J. Fessler, “A splitting-based iterative algorithm for Mention in the Portuguese IBM Scientific Prize in 2010 for her work on blind
accelerated statistical X-ray CT reconstruction,” IEEE Trans. Med. image deblurring.
Imag., vol. 31, no. 3, pp. 677–688, Mar. 2012.
[35] S. J. Reeves, “Fast image restoration without boundary artifacts,”
IEEE Trans. Image Process., vol. 14, no. 10, pp. 1448–1453,
Oct. 2005.
[36] L. Rudin, S. Osher, and E. Fatemi, “Nonllinear total variation based Mário A. T. Figueiredo (S’87–M’95–SM’00–F’10)
noise removal algorithms,” Phys.-D, vol. 60, nos. 1–4, pp. 259–268, received the E.E., M.Sc., Ph.D., and "Agregado"
Nov. 1992. degrees in electrical and computer engineering from
[37] I. Selesnick and M. A. T. Figueiredo, “Signal restoration with overcom- Instituto Superior Técnico (IST), the Engineering
plete wavelet transforms: Comparison of analysis and synthesis priors,” School of the Technical University of Lisbon, Lis-
Proc. SPIE, vol. 7446, pp. 1–15, Aug. 2009. bon, Portugal, in 1985, 1990, 1994, and 2004,
[38] G. Steidl and T. Teuber, “Removing multiplicative noise by Douglas- respectively. He has been with the Faculty of the
Rachford splitting methods,” J. Math. Imag. Vis., vol. 36, no. 2, Department of Electrical and Computer Engineering,
pp. 168–184, 2010. IST, where he is currently a Full Professor. He is
[39] M. Tao and J. Yiang, “Alternating direction algorithms for total variation also a Group and Area Coordinator with Instituto
deconvolution in image reconstruction,” Dept. Math., Nanjing Univ., de Telecomunicações, a private non-profit research
China, Tech. Rep. TR0918, 2009. institution.
[40] M. Šorel, “Removing boundary artifacts for real-time iterated shrink- His research interests include signal processing and analysis, machine
age deconvolution,” IEEE Trans. Image Process., vol. 21, no. 4, learning, and optimization. He is a fellow of the IEEE and of the Inter-
pp. 2329–2334, Apr. 2012. national Association for Pattern Recognition. From 2005 to 2010, he was
[41] Y. Wang, J. Yang, W. Yin, and Y. Zhang, “A new alternating minimiza- a member of the Image, Video, and Multidimensional Signal Processing
tion algorithm for total variation image reconstruction,” SIAM J. Imag. Technical Committee of the IEEE Signal Processing Society. He received
Sci., vol. 1, no. 3, pp. 248–272, 2008. the 2011 IEEE SPS Best Paper Award, the 1995 Portuguese IBM Scien-
[42] S. Wright, R. Nowak, and M. Figueiredo, “Sparse reconstruction by tific Prize, the 2008 UTL/Santander-Totta Scientific Prize. He has been an
separable approximation,” IEEE Trans. Signal Process., vol. 57, no. 7, Associate Editor of several journals, namely the IEEE TRANSACTIONS
pp. 2479–2493, Jul. 2009. ON IMAGE PROCESSING, the IEEE TRANSACTIONS ON PATTERN
[43] W. Yin, S. Osher, D. Goldfarb, and J. Darbon, “Bregman iter- ANALYSIS AND MACHINE INTELLIGENCE, the IEEE TRANSACTIONS
ative algorithms for 1 -minimization with applications to com- ON MOBILE COMPUTING, Pattern Recognition Letters, Signal Processing,
pressed sensing,” SIAM J. Imag. Sci., vol. 1, no. 1, pp. 143–168, and Statistics and Computing. He was co-chair of the 2001 and 2003
Mar. 2008. Workshops on Energy Minimization Methods in Computer Vision and
[44] L. Zappella, A. Del Bue, X. Llado, and J. Salvi, “Simultaneous motion Pattern Recognition, guest co-editor of special issues of several journals,
segmentation and structure from motion,” in Proc. IEEE Workshop Appl. and program/technical/organizing committee member of many international
Comput. Vis., Jan. 2011, pp. 679–684. conferences.