Image Post Processing
Image Post Processing
Technical section
Information Processing Laboratory, Electrical and Computer Engineering Department, Aristotle University of Thessaloniki,
Thessaloniki 54124, Greece
b
Computer Science Department, University of West Bohemia, Plzen, 30614 Czech Republic
c
Informatics and Telematics Institute, 1st Km Thermi-Panorama Road, Thermi-Thessaloniki 57001, Greece
Accepted 15 April 2003
Abstract
Despite its growing age, the JPEG is among the most popular choices as a standard compression scheme for
continuous-tone still images. In this paper, a novel technique is proposed to alleviate the blocking artifacts that usually
occur in JPEG coded images especially at low bit rates. The proposed algorithm consists of two stages: rstly, the AC
coefcients are estimated based on their observed probability distribution and secondly, a postprocessing scheme is
applied for blockiness removal, consisting of a region classication algorithm and a spatial adaptive ltering.
Experimental results demonstrate the efciency of the proposed method.
r 2003 Elsevier Ltd. All rights reserved.
Keywords: Blocking artifact reduction; DCT coefcient adjustment; Spatial adaptive ltering; MSDS
1. Introduction
The basic approach for the JPEG image compression
is fairly simple. The encoding process consists of
dividing the image into blocks, typically of size 8 8:
A block transform, typically the DCT, is applied to
these blocks, and the transform coefcients are individually quantized (scalar quantization). This block DCT
scheme takes advantage of the local spatial correlation
$
This work was supported by the EU project IST
OTELO.
*Corresponding author. Information Processing Laboratory,
Department of Electrical and Computer Engineering, Aristotelian University of Thessaloniki, Thessaloniki 54124, Greece.
Tel.: +30-31-99-6351; fax: +30-31-99-6398.
E-mail addresses: [email protected] (G.A. Triantafyllidis),
[email protected] (M. Varnuska), [email protected]
(D. Sampson), [email protected] (D. Tzovaras),
[email protected] (M.G. Strintzis).
0097-8493/03/$ - see front matter r 2003 Elsevier Ltd. All rights reserved.
doi:10.1016/S0097-8493(03)00088-8
530
7
7
X
X
n0 m0
where
1
if x 0 or ax 1 if xa0; u; v
1vp=16; ax p
2
e
F#ijQ u; v FijQ u; v 0:5 m
;
1 e1=m
Q
if Fij u; vo0:
Gx x; y
Gy x; y
4
1=m
531
6 x;yAMM
4
P
wb x; yGx2 x; y
wb x; yGx x; yGy x; y
x;yAMM
wb x; yGx x; yGy x; y
x;yAMM
x;yAMM
wb x; yGy2 x; y
3
7
5;
3
5
532
Dy
Vy
N
q;
2 m2 V 2 V 2
x
1
AB
wb x; yGy2 x; yy
x;yAMM
Gx x; yGy x; yx:
4. Experimental results
In order to measure and evaluate the performance of
our approach for blocking artifact reduction, commonly
used metrics, such as the mean square error or signal to
noise ratio, were not employed since they involve pixels
of the entire image and not pixels near the block
boundaries. Instead, a metric called mean squared
difference of slope (MSDS) [9,10] per block is preferred
to be used for the evaluation of the proposed technique.
It involves the intensity gradient (slope) of the pixels
close to the boundary of two blocks. Specically, it is
based on the empirical observation that quantization of
the DCT coefcients of two neighboring blocks increases the MSDS between the neighboring pixels on
their boundaries.
To better understand this metric, consider an 8 8
block f of the input image and a block w vertically
adjacent to f : If the coefcients of the adjacent blocks
are coarsely quantized, a difference in the intensity
gradient across the block boundary is expected. This
abrupt change in intensity gradient across the block
boundaries of the original unquantized image is rather
unlikely, because most parts of most natural images can
be considered to be smoothly varying and their edges are
unlikely to line up with block boundaries. Thus, the
MSDS between the blocks f and w is ew
P
7
2
m0 d1 m d2 m where d1 m is the intensity slope
across the boundary between the f and w blocks, dened
by d1 m f m; 0 wm; 7 and d2 m is the average
between the intensity slope of f and w blocks close to
their boundaries, dened by d2 m wm; 7
wm; 6=2 f m; 1 f m; 0=2: The ideas in the
above discussion are applicable to both horizontal and
vertical neighboring blocks. Specically, if blocks w; e
denote the blocks horizontally adjacent to f ; and blocks
s; n present the blocks vertically adjacent to f ; then, the
MSDS which involves both horizontal and vertical
adjacent blocks (hereafter, MSDS1 ) is given by
Lenna
512 512
MSDSt 1608
0.41
0.31
0.20
3108
3828
5113
2968
3299
4776
2719
2988
4439
Peppers
512 512
MSDSt 2341
0.43
0.32
0.21
2426
3003
3921
2212
2621
3631
2163
2505
3314
Boat
512 512
MSDSt 4393
0.49
0.33
0.23
6195
7339
8609
5972
6848
7893
5602
6547
7424
(a)
533
(b)
Fig. 1. (a) A portion of the JPEG coded image Lenna at 0:24 bpp: (b) The same portion of Lenna after applying the proposed method
for blockiness reduction.
(a)
(b)
Fig. 2. (a) A portion of the JPEG coded image Peppers at 0:24 bpp: (b) The same portion of Peppers after applying the proposed
method for blockiness reduction.
534
5. Conclusions
Decompressed images obtained from compressed
JPEG streams, often contain bothersome blocking
artifacts which constitute a serious bottleneck for many
important visual communication applications. This
paper proposes a novel algorithm aiming to reduce such
blocking artifacts. In our approach, better estimates of
the reconstructed DCT coefcients are obtained based
on their observed probability distribution. Subsequently, a novel postprocessing procedure consisting of
high and low detail region classication and a spatial
adaptive ltering is applied for the removal of blocking
artifacts. The type of ltering is determined based on an
estimation of the local characteristics of the coded
image. The criterion used for the evaluation of the
proposed method is the MSDS (i.e., the MSDSt form).
Experimental evaluation of the performance of the
proposed technique clearly demonstrated its ability to
detect and alleviate blocking artifacts effectively.
References
[1] Pennebaker WB, Mitchel JL. JPEG still image data
compression standard. New York: Van Nostrand Reinhold, 1993.
[2] Lee YL, Kim HC, Park HW. Blocking effect reduction of
JPEG images by signal adaptive ltering. IEEE Transactions on Image Processing 1998;7:22934.
[3] Reeve HC, Lim JS. Reduction of blocking artifacts in
image coding. Optical Engineering 1984;23:347.
[4] Ramamurthi B, Gersho A. Nonlinear space-variant postprocessing of block coded images. IEEE Transactions on
Acoustics Speech, and Signal Processing 1986;34:125868.
[5] Xiong Z, Orchard MT, Zhang YQ. A deblocking
algorithm for JPEG compressed images using overcomplete wavelet representations. IEEE Transactions on
Circuits and Systems for Video Technology 1999;7(2):
4337.
[6] Hsung T-C, Lun DPK, Siu W-C. A deblocking technique
for block-transform compressed image using wavelet
transform modulus maxima. IEEE Transactions on Image
Processing 1998;7(10):148896.
[7] Yang Y, Galatsanos NP, Katsaggelos AK. Projectionbased spatially adaptive reconstruction of block-transform
compressed images. IEEE Transactions on Image Processing 1995;4:896908.
[8] Paek H, Kim R-C, Lee S-U. A DCT-based spatially
adaptive postprocessing technique to reduce the blocking
artifacts in transform coded images. IEEE Transactions on
Circuits Systems for Video Technology 2000;10(1):3641.
[9] Minami S, Zakhor A. An optimization approach for
removing blocking effects in transform coding. IEEE
Transactions on Circuits Systems for Video Technology
1995;5:7482.
[10] Triantafyllidis GA, Tzovaras D, Strintzis MG. Blocking
artifact reduction in frequency domain. Proceedings of
2001 IEEE International Conference on Image Processing.
Thessaloniki, October 2001.
[11] Ahumada AJ, Horng R. Smoothing DCT compression
artifacts. SID Digest, 1994.
[12] Lindeberg T, Garding J. Shape from texture from a multiscale perspective. In: Proceedings of the Fourth International Conference on Computer Vision, Berlin, Germany,
May 1993. p. 68391.
[13] Forstner W, Gulch E. A fast operator for detection and
precise location of distinct points, corners and centres of
circular features. In: Proceedings on ISPRS Intercommission Workshop, Interlaken, Switzerland, 1987. p. 281304.
[14] Sampson D, Papadimitriou D, Chamzas C. Postprocessing
of block-coded images at low bitrates. Proceedings of 1996
IEEE International Conference on Image Processing,
Lausanne, Switzerland, September 1996.
[15] Sampson D, Papadimitriou D, Ghanbari M, Dennis T. A
method for enhancing the picture quality for low bit rate
block coded images. In: Proceedings of IEE International
Conference on Image Processing and its Applications,
IPA-95, July 1995. p. 404.
[16] Nitzberg M, Shiota T. Non-linear image ltering with edge
and corner enhancement. IEEE Transactions on Pattern
Analysis and Machine Intelligence 1992;14(8):82633.