선정목록으로
Optimal Parameters for Error-Diffusion Halftoning with Bilateral Filter
필름·전자재료 · (15) 디스플레이 패널재료
기본 정보
- 저자
- DOI
- 10.12792/jiiae.6.144
- 저널
- Journal of the Institute of Industrial Applications Engineers
- 발행년도
- 2018
- 발행기관
- –
- 피인용수
- 0
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.12792/jiiae.6.144
- 토픽
- Color Science and Applications
- OpenAlex ID
- W2898103687
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (15) 디스플레이 패널재료
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 디스플레이 패널재료' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
We propose a procedure for determining the parameters in the bilateral filter (BF) used for the error-diffusion halftoning where pixels are scanned in the ascending order of errors. In this halftoning, binarization errors produced at each pixel are diffused using the BF which contains two parameters, one of which is a spatial coefficient and another is for the signal intensity. The optimal values of these two parameters are determined by maximizing the PSNR of an output binary images against their input images. It is shown by experiments that the optimal value of the signal coefficient is slightly negative in contrast to popular usage of BF where the signal coefficient is usually set to a positive value.
본문 15,624자
본문 펼치기
Journal of the Institute of Industrial Applications Engineers Vol.6, No.4, pp.144–147, (2018.10.25)
DOI: 10.12792/JIIAE.6.144 Online edition: ISSN 2187-8811 Print edition: ISSN 2188-1758
# Paper Optimal Parameters for Error-Diffusion Halftoning with Bilateral Filter
An-shui Yu <sup>∗</sup> Non-member, Naoki Ono <sup>∗</sup> Member
Kohei Inoue <sup>∗</sup> Member, Kenji Hara <sup>∗</sup> Non-member
Kiichi Urahama <sup>∗</sup> Member
(Received November 22, 2017, revised September 25, 2018)
Abstract: We propose a procedure for determining the parameters in the bilateral filter (BF) used for the errordiffusion halftoning where pixels are scanned in the ascending order of errors. In this halftoning, binarization
errors produced at each pixel are diffused using the BF which contains two parameters, one of which is a spatial
coefficient and another is for the signal intensity. The optimal values of these two parameters are determined by
maximizing the PSNR of an output binary images against their input images. It is shown by experiments that
the optimal value of the signal coefficient is slightly negative in contrast to popular usage of BF where the signal
coefficient is usually set to a positive value.
Keywords: Halftoning, Error diffusion, Error-ordering scan, Bilateral filter
1. Introduction
Error diffusion techniques have widely been used for image halftoning, typically transforming gray-scale images to
black-white binary images. In the error diffusion technique,
critically important are the order of scanning of pixels and
filters for distributing the discretization error at each pixel
to its neighborhood.
The simplest and fundamental ordering of pixels is the
normal raster scan which, however, produces the so-called
worm patterns which degrade the visual quality of outputted binary images. For preventing such artificial patterns, zigzag or random scan[1] has been proposed. These
scan procedures, however, depend only on the place of pixels without taking account of pixel values. More elaborated error diffusion techniques incorporating pixel values
have been developed for preserving image structures[2] [3].
These techniques are, however, computationally complex.
Hence, there has been proposed a simple and efficient pixel
scan procedure where pixels are scanned according to the
increasing order of the discretization error[4]. In this paper, we also adopt this signal adaptive ordering scan for discretizing pixel values.
Among various filters for diffusing errors, the Gaussian
filter (GF) is simplest and standardly used. Improved from
the GF is the bilateral filter (BF)[5] which is highly adaptive
to edges in grayscale images. This BF has also been applied
to halftoning with the error diffusion[6] where the efficiency
of the coefficient-reversed BF was verified.
A standard usage of BF is image smoothing where the optimal value of parameters in BF has been examined. In its
application to the halftoning with BF, however, such discussion has not been reported for optimal parameters. In this
∗ Department of Communication Design Science, Kyushu University
4-9-1, Shiobaru, Minami-ku, Fukuoka 815-8540, Japan
paper, we propose a procedure for determining the value of
parameters in BF according to the PSNR between an input
and its blurred binary images on the basis of the principle
of image halftoning which is an image display technique exploiting the blur process occurring in our visual perception
of scenes.
2. Halftoning with Error Di ff usion
Let the value of a pixel in an input grayscale image be
_cij_ ∈ [0, 255] and its size (total number of pixels) be _n_ . In
the error diffusion method, the value of _cij_ is successively
updated at every distribution of an error produced at each
pixel. Hence, we save the original pixel value as g _ij_ = _cij_,
i.e. this g _i j_ is fixed while _cx_ y is sequentially changed. We
introduce a variable _uij_ representing the current status of
binarization at each pixel: if the pixel ( _i_, _j_ ) is already binarized then _uij_ = 0, else not yet treated _uij_ = 1.
In the halftoning with the error diffusion, the order of
pixel scan is important for the visual quality of resultant binary images. The ordering of pixels according to the binarization error at each pixel was examined and the ascending
order has been reported to work well[4]. In binarization of
images with the error diffusion where pixels are scanned in
the ascending order of the binarization error at each pixel,
an output pixel value _fij_ ∈{0, 255} is calculated in the following way:
1) The value of _uij_ is initially set to _ui j_ = 1 at every ( _i_, _j_ ).
2) Attach the number _k_ (= 1, 2, ..., _n_ ) to every pixel in the
ascending order of _dij_ = | _ci j_ - 127.5| + _ni j_ where _ni j_ ∈
[0, 1] is a uniformly distributed random number.
3) Set _k_ = 0.
144 Published by IIAE. 2018
Error-Diffusion Halftoning 145
(a) goldhill (b) lena (c) peppers
(d) ship (e) bridge (f) mandrill
Figure 1: Input images.
4) Increase _k_ by 1. If _k_ - _n_, finish, else go to step 5.
5) For the pixel ( _i_, _j_ ) of the number _k_, if _cij_ ≤ 127 then
set _fij_ = 0 else set _fij_ = 255 and update _uij_ to 0.
6) If there exists an untreated, i.e. of _uij_ = 1 pixel in
the window ( _i_ + _l_, _j_ + _m_ ); − _p_ ≤ _l_ ≤ _p_, − _p_ ≤ _m_ ≤ _p_
around the current pixel ( _i_, _j_ ), then distribute the error
_ei j_ = _ci j_ - _fij_ to them, i.e. update their pixel value
_ci_ + _l_, _j_ + _m_ to _ci_ + _l_, _j_ + _m_ + w _ijlmeij_ where
∑ _p_
_m_ =− _p_
w _ijlm_ = _ui_ + _l_, _j_ + _m_ v _ijlm_ /
∑ _p_
_l_ =− _p_
_ui_ + _l_, _j_ + _m_ v _ijlm_ (1)
(a) goldhill (b) lena
(c) peppers (d) ship
(e) bridge (f) mandrill
Figure 2: Variation in PSNR with α.
set empirically to not necessarily optimal values[6]. In this
paper, we take into account of the property of the halftoning
techniques exploiting our visual blur of observed images.
From this knowledge, we examine a method for determining the parameter values to those maximizing the PSNR between the input image and its binarized and blurred images.
For this blurring of output binary images, the BF is also
suitable. Direct application of BF to binary images, however, results in no change in images, hence we first smooth
binary images using GF in advance to the application of
BF. From the preliminary experiments for many halftoned
images, we found appropriate values of these blurring filters as _p_ = 5, α = 0.2 for the first GF and for the next BF
_p_ = 5, α = 0.2, β = 0.005 is adequate. If only GF is used
for this smoothing, edges in images are blurred hence the
PSNR is small. Next application of BF to those outputs of
GF sharpens such blurred edges and raises the PSNR. The
window size in eq.(1) for the error diffusion is set to _p_ = 2
considering the balance between the range of diffusion and
the computational cost.
4. Determining Value of α
If we try to determine α and β in eq.(2) simultaneously,
we should search all of their combination, i.e. the 2dimesional variation in them, which is computationally intensive. Hence we determine them sequentially, at first α
and next β. Especially, we firstly fix β = 0 which reduces
the BF to GF and search the optimal value of α minimizing
the PSNR of errors, i.e. PSNR between each input image
and its binarized one. The variation in this PSNR with the
value of α is shown in Fig.2 for six images (size of all of
them is 300 × 300) in Fig.1. Figure 2 reveals that the PSNR
IIAE Journal, Vol.6, No.4, 2018
where _ui j_ is the above mentioned variable denoting
whether that pixel is already treated or not yet and v _ijlm_
is the filter coefficient expressed by
v _i jlm_ = _e_ <sup>−α(</sup> <sup>_l_</sup> <sup>2+</sup> <sup>_m_</sup> <sup>2)−β(g</sup> <sup>_ij_</sup> <sup>−g</sup> <sup>_i_</sup> <sup>+</sup> <sup>_l_</sup> <sup>,</sup> <sup>_j_</sup> <sup>+</sup> <sup>_m_</sup> <sup>)2</sup> (2)
where α is the spatial coefficient, i.e. the coefficient
along the spatial coordinate, and β is the signal coefficient, i.e. the coefficient that along the signal intensity
axis. Note that the filter coefficient v _ijlm_ is calculated
from not the updated _cij_ but the original pixel value g _ij_ .
If we set β = 0, then this filter reduces to the standard
GF. If β is not 0, then the filter becomes BF in which
the usual usage is with β - 0, while that with β < 0 is
called the coefficient-reversed BF[6].
7) Return to step 4.
3. Determining Filter Parameters
The above is the procedure of the error-diffusion halftoning
of grayscale images. The quality of its output binary images
depends on the value of two parameters α and β in eq.(2).
Hence it is critical for image quality how to set them to their
optimal values. In the previous methods, their values were
146 A. Yu, N. Ono, K. Inoue, K. Hara and K. Urahama
Table 1: Optimal α and PSNR.
gold lena pepp ship bridge mand
α 0.4 0.6 0.7 0.3 0.15 0.1
PSNR 28.71 28.22 28.13 27.19 25.18 24.15
Table 2: PSNR of blurred images.
gold lena pepp ship bridge mand
PSNR 27.91 27.31 27.16 26.06 24.06 23.50
(a) goldhill (b) lena
(c) peppers (d) ship
(e) bridge (f) mandrill
Figure 3: Variation in PSNR with β.
takes its maximum at a moderate value of α. All curves
in Fig.2 are singly peaked, hence the maximum point can
be easily calculated using a simple algorithm, e.g. the bisection method. The value of α at which the PSNR becomes maximum and the PSNR there are shown in table 1
where “gold” denotes “goldhill”, “pepp” is for “peppers”
and “mand” is “mandrill”. These optimal values of α are
considered to depend on the higher frequency component
contained in the input image. For confirming this supposition, we calculate the PSNR between input images and them
directly blurred with firstly GF and next with BF similarly
to the above blurring process for binary images. The value
of this PSNR is shown in table 2. The larger this PNR represents the lesser high frequency components in input images.
IIAE Journal, Vol.6, No.4, 2018
Table 3: Optimal β and PSNR.
gold lena pepp ship bridge mand
β × 10 <sup>3</sup> -0.5 -1 -1 -0.1 -0.1 -0.5
PSNR 29.17 28.66 28.87 27.56 25.30 24.42
(a) β = 0 (b) β = −0.001
(c) smoothed (a) (d) smoothed (b)
(PSNR=28.22) (PSNR=28.66)
Figure 4: Binarized lena and their smoothed results.
The rank of the PSNR in table 1 is identical to that in table
2, from which the above supposition for the PSNR in table
1 is ascertained.
5. Determining value of β
We next change the value of β with fixing α to these optimal
values for each image. The value of PSNR varies with β as
shown in Fig.3. From these graphs, we find that the PSNR
becomes maximum at slightly negative value of β though its
precise value is hard to discriminate visually in Fig.3 due
to its rather broad horizontal scale for showing their global
profile of the value of PSNR. These maximal points can
also be calculated using a simple bisection method starting
from a narrow range, e.g. [-0.1,0]. The practical value of β
maximizing PSNR is shown in table 3 where all of the optimal values of β are indeed negative. This peculiar property
of the PSNR in the halftoning is in contrast to the popular usage of BF for smoothing grayscale images for which
β - 0 is usually used. The optimal value of β is nearly 0.001 for all images. Hence a simple way for setting the
value of β is always β = −0.001 for all images. The reason for β to be best at slightly negative value may be due to
its compensating effect for edges blurred by image halftoning. The halftoned image for the image “lena” at β = 0
and that at β = −0.001 are shown in Fig.4(a),(b) where
edges and textures are clearer in Fig.4(b) than Fig.4(a). The
results of blurring Fig.4(a),(b) with the filter GF+BF are
shown in Fig.4(c),(d) where Fig.4(d) is closer to Fig.1(b)
Error-Diffusion Halftoning 147
than Fig.4(c), which is a satisfied result for the main propose of this research.
Thus we found that the PSNR becomes its maximum
when the coefficient β in BF for diffusing the halftoning
errors takes a slightly negative value. In the above halftoning procedure, pixels are scanned in the ascending order of
halftoning errors. We also examined other scanning processes, e.g. descending order of halftoning errors or random ordering of pixels. When the values of BF parameters
are α = 0.6, β = 0, the PSNR for “lena” image is 25.37 for
descending order, 27.36 for random ordering and 28.22 for
the ascending order. When we set α = 0.6, β = −0.001,
the PSNR is 25.67 for descending order, 27.50 for random
ordering and 28.66 for the ascending order. From these experimental results, it is reconfirmed that the scanning in the
ascending order leads to the maximal PSNR.
6. Conclusion
We have presented a procedure for determining the parameters in BF for distributing errors in the image halftoning
with the error diffusion with the pixel scan in the order according to the halftoning errors. It is revealed that the PSNR
of the halftoned outputs becomes maximum when the signal coefficient in the BF is set to a slightly negative value. A
method for determining the optimal values of filter parameters automatically for each input image is under study.
Acknowledgment
This work was supported by JSPS KAKENHI Grant
Number JP16K00241.
References
[1] N. Damera-Venkata, B. L. Evans, and V. Monga, “Color er
ror diffusion halftoning”, _IEEE_ _Signal_ _Process._ _Mag._, Vol.
20, No.4, pp.51-58, 2003.
[2] J. Chang, B. Alain and V. Ostromoukhov, “Structure
aware error diffusion”, _ACM_ _Trans._ _Graph._, Vol.28, No.5,
pp.162:1-162:8, 2009.
[3] H. Li and D. Mould, “Contrast-aware halftoning”, _Comput._
_Graph. Forum_, Vol.29, No.2, pp.273-280, 2010.
[4] F. Wang and K. Urahama, “Error-diffusion halftoning with
error-ordering scan of pixels”, _IEICE Trans. Fund._, Vol.J97A, No.2, pp.120-123 (in Japanese), 2014.
[5] C. Tomasi and R. Manduchi,“Bilateral filtering for gray and
color images”, _Proc. ICCV_, pp.839-846, 1998.
[6] X. Fu, T. Wang and K. Urahama, “Coefficient-reversed bilat
eral filter for image halftoning with error diffusion”, _Trans._
_ITE_, Vol.65, No.12, pp.1817-1820 (in Japanese), 2011.
An-shui Yu (Non-member) He received
M.F.A.degrees from Kyushu University in 2016.
He is now studying for a doctor’s degree in
the Kyushu University. His research interests
include omnidirectional spherical image and
foreground enlargement.
Naoki Ono (Member) He was born in Saga,
Japan, in 1961. He received a Ph.D. degree in engineers from Kyushu University in 1997, and is
presently an associate professor at Kyushu University. He has worked on image processing and
pattern recognition. He is member of IIAE and
IEICE.
Kohei Inoue (Member) He received B.Des.,
M.Des. and D.Eng. degrees from Kyushu Institute of Design in 1996, 1998 and 2000, respectively. He is currently an Associate Professor
in Kyushu University. His research interests include pattern recognition and image processing.
Kenji Hara (Non-member) He received the
BE and ME degrees from Kyoto University in
1987 and 1989, respectively, and the PhD degree from Kyushu University in 1999. He is currently an Associate Professor in Kyushu University. His research interests include physics-based
vision and geometric modeling.
Kiichi Urahama (Member) He received
M.Eng. and D.Eng. degrees from Kyushu
University in 1976 and 1980. From 1980 to
1995 he was an Associate Professor in Kyushu
Institute of Technology. He is now a Professor
in Kyushu University. His research interests
include pattern recognition, image processing
and computer graphics.
IIAE Journal, Vol.6, No.4, 2018
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.