没有合适的资源?快使用搜索试试~ 我知道了~
A context-based adaptive lossless nearly-lossless coding scheme
需积分: 6 0 下载量 6 浏览量
2015-09-08
16:53:30
上传
评论
收藏 256KB PDF 举报
温馨提示
A context-based adaptive lossless nearly-lossless coding scheme for continuous-tone images.pdf 一种无损压缩方法
资源推荐
资源详情
资源评论
A Context-based, Adaptive, Lossless/Nearly-Lossless Co ding
Scheme for Continuous-tone Images
Xiaolin Wu
Department of Computer Science
The University of Western Ontario
London, Ontario, Canada N6A 5B7
wu@csd.uwo.ca
519-661-3561
Nasir Memon
Department of Computer Science
Northern Illinois University
DeKalb, Illinois, U.S.A. 60115
memon@cs.niu.edu
815-653-6944
Khalid Sayood
Department of Electrical Engineering
University of Nebraska-Lincoln
Lincoln, Nebraska, U.S.A. 68588
ksayoo d@eecomm.unl.edu
402-472-6688
July 5, 1995
1 Summary
We propose a context-based, adaptive, predictive coding system for lossless/nearly-lossless
compression of continuous-tone images. The system provides b etter compression than other
lossless image co ders in the literature. This is accomplished with low time and space
complexities. The high co ding eciency of the proposed image compression system is due
to the use of a novel, nonlinear, context-based predictor; the low time and space complexities
are made possible by an ecient technique for forming and quantizing prediction contexts.
The proposed co ding system gives an average
lossless bit rate of 2.99 bits/pixel
on the 18 8-bit test images selected by ISO for prop osal evaluation, versus an average
bit
rate of 3.98 bits/pixel for lossless JPEG
on the same set of test images (we cannot
compare the two methods on images of higher than 8 bit intensity resolutions, b ecause
there is no available implementation of lossless JPEG to handle these images). Even more
encouragingly, our system obtains
1 % lower bit rate
than the recent UCM (Universal
Context Modeling) metho d [6]. The latter is a highly sophisticated and complex context-
based image co ding technique which was considered to be indicative of lower bound on
lossless bit rates achievable by other more practical metho ds. Furthermore, in its nearly
lossless version, the proposed image co der yields signicantly higher compression than the
The contact person.
1
current JPEG standard for the same ob jective quality measure such as PSNR and MSE
when the p eak errors are bounded by
1,
2,
3, and
7.
We need to stress the fact that the context mo deling and prediction modules of the
proposed system are algorithmically very simple, involving mostly integer arithmetic and
simple logic. The prediction and modeling comp onents of the enco der and deco der require
only
1.52 CPU seconds
on 512
512 continuous-tone images, and
2.28 CPU seconds
on
720
576 continuous-tone images, when b eing executed on a SUN SPARC10 workstation.
Both the encoding and deco ding algorithms are suitable for parallel and pip eline hardware
implementation while supp orting sequential build-up. By adding the time sp ent on entropy
coding, one gets the total execution time of the encoding or decoding pro cess. The prop osed
image co ding system is symmetric, meaning that the enco der and decoder have the same
time and space complexities.
The prop osed system encodes and decodes images in raster scan order with a single
pass through the image. The coding pro cess uses prediction contexts that involve only the
previous two scan lines of coded pixels. Consequently, the enco ding and decoding algorithms
require a simple double buer that holds two rows of pixels that immediately proceed the
current pixel. Besides the space for double buering, the system uses only a total of
3.3K
bytes
of working memory, regardless of image sizes.
A schematic description of the co ding system is given in Fig. 1. The blo ck diagram
depicts only the enco ding pro cess. The deco ding is just a reverse process.
The co ding system operates in two mo des: binary and continuous-tone modes. The
binary mo de is for the situation in which the current lo cality of the input image has no
more than two intensity values, hence it is designed for a more general class of images than
the class of black-and-white images. The system automatically selects one of the two mo des
depending on the context of the current pixel. In the binary mode, a context-based adaptive
arithmetic coder is used to co de three symbols, including an escape symbol.
In the continuous-tone mode, the gradient of the image at the current pixel
I
is esti-
mated. A gradient-adjusted prediction
_
I
of
I
is made. The gradient-adjusted predictor
_
I
has a higher precision than existing DPCM predictors, particularly in the areas of strong
edges. The predictor
_
I
is further improved by an error feedback technique, resulting in an
adaptive, context-based, non-linear predictor
I
. The idea is to model the prediction errors
under dierent contexts. Given a context, the conditional sample mean
e
of the prediction
errors under this context is fed back to
_
I
to generate a second and improved prediction
I
=
_
I
+
e
(see Fig. 1).
The selection b etween the continuous-tone and binary mo des is based on pixel contexts.
The mode selection is automatic, and completely transparent to the user. No side infor-
mation ab out mode switching is required. The co ded image only needs a
header of ve
bytes
: two for width, two for height, and one for depth or the numb er of bits in intensity
resolution.
2
Generation &
Quantization
Context
Two-row
Double
Buffer
Error Modeling
Gradient-
adjusted
Prediction
Probabilities
Estimation
Conditional
Histogram
Coding
Sharpening
Entropy
Coder
Entropy Coder
Ternary
I
..
Mode?
Binary
yes
no
+
_
I
I
ε
ε
-
code
stream
.
Figure 1: Schematic description of the prop osed image co ding system.
The main reason for the improved co ding eciency by context mo deling of errors and
error feedback lies in the fact that the prediction error sequence is a composition of multiple
sources of distinct underlying statistics. By choosing proper contexts to separate the statis-
tically distinct sources of errors from the code stream, we can get a signicant reduction in
conditional entropies. The separation of statistically dierent error sources is demonstrated
by the fact that the conditional sample means
e
signicantly dier from each other, and
I
provides b etter prediction than
_
I
. The context mo deling of errors also facilitates the
estimation of a small number of conditional probabilities to drive an entropy co der. The
conditional probabilities are generated by quantizing a random variable that serves as an er-
ror energy estimator. The quantization can be optimized via o-line dynamic programming
to minimize the total co de length of a set of training images. Also, we propose a simple
technique to \sharp en" the conditional probabilities (thus reducing underlying entropy) for
entropy coding by a simple sign ipping mechanism without any increase in modeling space.
In the following sections, we elaborate on the individual comp onents of the co ding sys-
tem, and present, in detail, the involved algorithms and the rationales and design decisions
behind these algorithms. Upon the completion of the detailed system description, we present
the entropy results and actual bit rates that our coding system obtained on all the ISO test
images. We also give comparisons b etween our system and some other existing metho ds.
3
2 Gradient-adjusted Predictor
In this section, we introduce a nonlinear predictor that adapts itself to the image gradi-
ents near the predicted pixel. This predictor improves the precision of traditional DPCM
predictors, particularly in areas of sharp edges.
Denote an input image of width
W
and height
H
by
I
[
i; j
], 0
i < W
, 0
j < H
. In
order not to obscure the concept of the prop osed compression algorithm, we only consider
in the following development the sequential co ding of interior pixels
I
[
i; j
], 2
i < W
?
2,
2
j < H
?
2. Many possible treatments of b oundary pixels are p ossible, and they do not
make a signicant dierence in the nal compression ratio due to the small p opulation of
boundary pixels. In this prop osal, b oundary pixels are co ded by a simple DPCM scheme
as they are encountered in the raster scan.
To facilitate the prediction of
I
[
i; j
] and entropy co ding of the prediction error via
context mo deling, we compute the following quantities:
d
h
=
j
I
[
i
?
1
; j
]
?
I
[
i
?
2
; j
]
j
+
j
I
[
i; j
?
1]
?
I
[
i
?
1
; j
?
1]
j
+
j
I
[
i
+ 1
; j
?
1]
?
I
[
i; j
?
1]
j
d
v
=
j
I
[
i
?
1
; j
]
?
I
[
i
?
1
; j
?
1]
j
+
j
I
[
i; j
?
1]
?
I
[
i; j
?
2]
j
+
j
I
[
i
+ 1
; j
?
1]
?
I
[
i
+ 1
; j
?
2]
j
d
45
=
j
I
[
i
?
1
; j
]
?
I
[
i
?
2
; j
?
1]
j
+
j
I
[
i
?
1
; j
?
1]
?
I
[
i
?
2
; j
?
2]
j
+
j
I
[
i; j
?
1]
?
I
[
i
?
1
; j
?
2]
j
d
135
=
j
I
[
i
+ 1
; j
?
1]
?
I
[
i
+ 2
; j
?
2]
j
+
j
I
[
i; j
?
1]
?
I
[
i
+ 1
; j
?
2]
j
+
j
I
[
i; j
?
1]
?
I
[
i
?
1
; j
]
j
:
(1)
Clearly,
d
v
,
d
h
,
d
45
, and
d
135
are estimates, within a scaling factor, of the gradients
of the intensity function, near pixel
I
[
i; j
] in horizontal, vertical, 45-degree diagonal, and
135-degree diagonal directions. The values of
d
v
,
d
h
,
d
45
, and
d
135
are used to detect the
magnitude and orientation of edges in the input image, and make necessary adjustments
in the prediction. We aim to alleviate the problem that the precision of existing DPCM-
type predictors can be adversely aected by edges. In (1) three absolute dierences are
used for
d
in each direction. This gave the best compression results in our exp eriments.
Two or one absolute dierences can b e used here for lower complexity with a small loss
in performance. An ecient incremental and/or parallel scheme for evaluating
d
v
,
d
h
,
d
45
,
and
d
135
is straightforward.
Based on
d
v
,
d
h
,
d
45
, and
d
135
, we prop ose a simple technique, as described by the
following conditional statements, to make a gradient-adjusted prediction
_
I
[
i; j
] of
I
[
i; j
].
if
(
d
v
+
d
h
>
32)
f
sharp edge
g
_
I
[
i; j
] = (
d
v
I
[
i
?
1
; j
] +
d
h
I
[
i; j
?
1])
=
(
d
v
+
d
h
) + (
I
[
i
+ 1
; j
?
1]
?
I
[
i
?
1
; j
?
1])
=
8
4
else if
(
d
v
?
d
h
>
12)
f
horizontal edge
g
_
I
[
i; j
] = (2
I
[
i
?
1
; j
] +
I
[
i; j
?
1])
=
3 + (
I
[
i
+ 1
; j
?
1]
?
I
[
i
?
1
; j
?
1])
=
8
else if
(
d
h
?
d
v
>
12)
f
vertical edge
g
_
I
[
i; j
] = (
I
[
i
?
1
; j
] + 2
I
[
i; j
?
1])
=
3 + (
I
[
i
+ 1
; j
?
1]
?
I
[
i
?
1
; j
?
1])
=
8
else
f
smooth area
g
_
I
[
i; j
] = (
I
[
i
?
1
; j
] +
I
[
i; j
?
1])
=
2 + (
I
[
i
+ 1
; j
?
1]
?
I
[
i
?
1
; j
?
1])
=
8;
if
(
d
45
?
d
135
>
32)
f
sharp 135-deg diagonal edge
g
_
I
[
i; j
] =
_
I
[
i; j
] + (
I
[
i
+ 1
; j
?
1]
?
I
[
i
?
1
; j
?
1])
=
8
else if
(
d
45
?
d
135
>
16)
f
135-deg diagonal edge
g
_
I
[
i; j
] =
_
I
[
i; j
] + (
I
[
i
+ 1
; j
?
1]
?
I
[
i
?
1
; j
?
1])
=
16
else if
(
d
135
?
d
45
>
32)
f
sharp 45-deg diagonal edge
g
_
I
[
i; j
] =
_
I
[
i; j
] + (
I
[
i
?
1
; j
?
1]
?
I
[
i
+ 1
; j
?
1])
=
8
else if
(
d
135
?
d
45
>
16)
f
45-deg diagonal edge
g
_
I
[
i; j
] =
_
I
[
i; j
] + (
I
[
i
?
1
; j
?
1]
?
I
[
i
+ 1
; j
?
1])
=
16;
Again the procedure given ab ove is parallelizable. This technique diers from the ex-
isting linear predictors in that it weights the neighboring pixels of
I
[
i; j
] according to the
estimated gradients of the image. In eect,
_
I
[
i; j
] is a simple, adaptive, nonlinear predictor.
The predictor coecients and thresholds given ab ove were empirically chosen. A ma jor
criterion in choosing these co ecients is the ease of computations. For instance, most
coecients are of p ower of 2 to avoid multiplications/divisions.
It is p ossible, albeit quite exp ensive, to optimize the coecients and thresholds for an
image or a class of images, so that a norm of the expected prediction error
f
E
k
I
?
_
I
kg
is minimized. We do not prop ose such an optimization process to b e part of the ISO
standard. However, it is important to p oint out that the co ecients and thresholds in
computing
_
I
[
i; j
] can b e set by the user, if the user knows the optimal or nearly optimal
coecients and thresholds for the target images.
3 Error Energy Quantization for Minimum Entropy
Although the nonlinear predictor
_
I
[
i; j
] outperforms linear predictors, it does not completely
remove the statistical redundancy in the image. The variance of prediction errors
e
=
I
?
_
I
still strongly correlates to the smo othness of the image around the predicted pixel
I
[
i; j
]. To
model this correlation at a small computational cost, we dene an error energy estimator
to be
=
ad
h
+
bd
v
+
c
j
e
0
j
;
(2)
where
d
h
and
d
v
are dened in (1) which are reused here to quantify the variability of pixel
values, and
j
e
0
j
is the magnitude of the prediction error at the preceding pixel
I
[
i
?
1
; j
].
j
e
0
j
is chosen because large errors tend to o ccur consecutively. The co ecients
a
,
b
, and
c
5
剩余32页未读,继续阅读
资源评论
sbx19850629
- 粉丝: 8
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Spring Cloud和Spring Boot的微服务架构管理系统.zip
- (源码)基于物联网的自动化开门控制系统 iotsaDoorOpener.zip
- (源码)基于ROS的Buddy Robot舞蹈控制系统.zip
- (源码)基于Qt框架的图书管理系统.zip
- (源码)基于Spring Boot和Vue的高校教务管理系统.zip
- (源码)基于Quartz框架的定时任务调度系统.zip
- (源码)基于Spring Boot和Spring Security的安全管理系统.zip
- (源码)基于Spring Boot的家庭智能助理系统.zip
- Marki_20241121_192504660.jpg
- (源码)基于Spring Boot框架的仓库管理系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功