the concrete implementation of the projections and its
slow convergence.
Our approach, among others, can be classified as
a constrained optimization method, where the con-
straints are defined using the available compressed
JPEG data. One advantage of this method is that, in
contrast to most filter based methods, we do not mod-
ify the image, but choose a different reconstruction
in strict accordance to the set of possible source im-
ages. Since data fidelity is numerically realized by
a projection in each iteration, we can ensure that at
any iteration, the reconstructed image is at least as
plausible as the standard JPEG reconstruction. Let us
stress, however, that the idea of reconstructing JPEG
images by minimizing a regularization functional un-
der constraints given by the compressed data is not
new. In (Bredies and Holler, 2011; Alter et al., 2005;
Zhong, 1997) this was done using the well known
total variation (TV) as regularization functional. In
contrast to quadratic regularization terms, this func-
tional is known to smooth the image while still pre-
serving jump discontinuities such as sharp edges. But
still, total variation regularized images typically suffer
from the so called staircasing effect (Nikolova, 2000;
Caselles et al., 2007; Ring, 2000), which limits the
application of this method for realistic images.
The total generalized variation functional (TGV),
introduced in (Bredies et al., 2010), does not suffer
from this defect. As the name suggests, it can be
seen as a generalization of the total variation func-
tional: The functional may be defined for arbitrary
order k ∈N, where in the case k = 1, it coincides with
the total variation functional up to a constant. We will
use the total generalized variation functional of order
2 as regularization term. As we will see, the appli-
cation of this functional has the same advantages as
the total variation functional in terms of edge preserv-
ing, with the staircasing effect being absent. Never-
theless, evaluation of the TGV functional of second
order yields a minimization problem itself and non-
differentiability of both the TGV functional as well
as the convex indicator function used for data fidelity
make the numerical solution of our constrained opti-
mization problem demanding.
The outline of the paper is as follows: In Section
2 we shortly explain the JPEG compression standard
and introduce the TGV functional, in Section 3 we de-
fine the continuous and the discrete model and present
a numerical solution strategy, in Section 4 we present
experiments including computation times of CPU and
GPU based implementations and in Section 5 we give
a conclusion.
DCT
Quantization
Lossless
compression
8x8 blocks
Source
Image data
Compressed
Image data
Quantization
table
Figure 1: Schematic overview of the JPEG compression
procedure, taken from (Bredies and Holler, 2011).
2 THEORETICAL BACKGROUND
2.1 The JPEG Standard
At first we give a short overview of the JPEG standard
which is partly following the presentation in (Bredies
and Holler, 2011). For a more detailed explanation
we refer to (Wallace, 1991). The process of JPEG
compression is lossy, which means that most of the
compression is obtained by loss of data. As a con-
sequence, the original image cannot be restored com-
pletely from the compressed object.
Let us for the moment only consider JPEG com-
pression for grayscale images. Figure 1 illustrates the
main steps of this process. At first, the image un-
dergoes a blockwise discrete cosine transformation
resulting in an equivalent representation of the im-
ages as the linear combination of different frequen-
cies. This makes it easier to identify data with less
importance to visual image quality such as high fre-
quency variations. Next the image is quantized by
pointwise division of each 8 ×8 block by a uniform
quantization matrix. The quantized values are then
rounded to integer, which is where the loss of data
takes place, and after that these integer values are fur-
ther compressed by lossless compression. The result-
ing data, together with the quantization matrix, is then
stored in the JPEG object.
Decoding Dequantization
Inverse
DCT
Source
Image data
Restored
Image
Quantization
table
Figure 2: Schematic overview of the standard JPEG decom-
pression procedure, taken from (Bredies and Holler, 2011).
The standard JPEG decompression, as shown in
Figure 2, simply reverses this process without taking
into account incompleteness of the data, i.e., that the
compressed object delivers not a uniquely determined
ARTIFACT-FREE JPEG DECOMPRESSION WITH TOTAL GENERALIZED VARIATION
13