Keywords

1 Introduction

In image processing, digital halftoning is the technique to realize the transformation from digital image to halftoning image, which reproduces original image tone and color through binary equipment. Halftone technique depends on algorithm. Through nonlinear transformation of different algorithms, it finally obtains halftone images with different dot distribution. Therefore, algorithm is the core of halftone technique. Algorithm quality will influence halftone image quality and visual effect. Since the generation of digital halftoning, various algorithms such as pattern dither, error diffusion, flat noise, blue noise, etc. are invented by people. Based on these algorithms, many ameliorated algorithms are created [1]. According to dot distribution shape, halftone technique can be divided into three groups, AM halftoning, FM halftoning, and Hybrid halftoning. They have different characters to reproduce and express image. Evaluating halftone image quality of different halftone algorithms is the method to test and compare halftone algorithms’ characters, which can provide reference for algorithm development and finally improve image quality. In this paper, halftone algorithms are evaluated objectively under several basic evaluation models. Algorithms’ gray level index, contrast level index, and image entropy difference are researched quantificationally. Meanwhile, frequency domain analysis and power spectrum analysis are done on the generated halftone images.

2 Evaluation Model Foundation of Halftone Reconstruction

Applying some objective method to evaluate halftone image can test and reflect halftone algorithm’s capability objectively, which is not influenced by subjective factor. Objective evaluation’s basic thought is to test and calculate the difference between halftone image and original image. In the aspect of image gray level, contrast level index, image entropy difference, frequency domain, and power spectrum, halftone algorithms and images are tested and evaluated.

2.1 Evaluation Model of Reconstruction Accuracy

The total level of halftone processing can be reflected on the visual quality of binary image, which should meet two conditions. First, gray level of halftone image’s single part should be equal to original image’s single part as much as possible. Second, halftone image should have feasible contrast level index. The two indexes are evaluated through gray level evaluation and contrast level index evaluation [2].

2.1.1 Gray Level Evaluation Model

Set \( P_{m} \) as gray level evaluation function. Original image is denoted as \( g\left( {x,y} \right) \). Single \( g\left( {x,y} \right) \) value stands for the gray level of the original pixel. After normalization, pixel gray level satisfies \( 0 \le g\left( {x,y} \right) \le 1 \). Halftone image is denoted as \( b\left( {x,y} \right) \). Single \( b\left( {x,y} \right) \) value stands for halftone image’s pixel gray level. According to the characters of halftone image, \( b\left( {x,y} \right) \) value should be 0 or 1, in which, 1 stands for black pixel, 0 stands for white pixel, as Formula 30.1 shows.

$$ P_{m} = \sum\limits_{B} {\frac{1}{{N_{b}^{2} }}\left| {g\left( {x,y} \right) - b_{G} \left( {x,y} \right)} \right|} $$
(30.1)

In Formula 30.1, B stands for the adding operation carried out in image’s specific part. \( b\left( {x,y} \right) \) is the part average gray level in the corresponding zone of the halftone image. \( N_{b}^{2} \) is the pixel amount contained in the specific part [3]. Evaluation function \( P_{m} \) stands for the difference between the gray level of the original image’s specific part and halftone image’s corresponding part average gray level. The lower the \( P_{m} \) value, the closer the halftone image’s gray level to the original image’s gray level will be.

When the relationship between original image pixel and halftone image pixel is one-to-many, set halftone unit to contain \( n \times n \) recorder grids. Original pixel gray level is A. According to gray level evaluation model (1), gray level evaluation model (2) is obtained.

$$ P_{m} = \sum\limits_{B} {\frac{1}{{N_{b}^{2} }}\left| {\frac{A}{256} - {{\left[ {{{A \cdot n^{2} } \mathord{\left/ {\vphantom {{A \cdot n^{2} } {256}}} \right. \kern-0pt} {256}}} \right]} \mathord{\left/ {\vphantom {{\left[ {{{A \cdot n^{2} } \mathord{\left/ {\vphantom {{A \cdot n^{2} } {256}}} \right. \kern-0pt} {256}}} \right]} {n^{2} }}} \right. \kern-0pt} {n^{2} }}} \right|} $$
(30.2)

2.1.2 Contrast Level Index Evaluation Model

Contrast level index evaluation function is used to evaluate visual contrast difference between original gray image and halftone image, which is denoted by \( P_{c} \) function, as Formula 30.3 shows. The lower the \( P_{c} \) value, the higher the contrast level index will be, and the greater the difference between original gray image and halftone image will be [4]. In this aspect, the higher the \( P_{c} \) value, the closer the halftone image to the original gray image will be.

$$ P_{c} = \sum\limits_{B} {\frac{1}{{N_{b}^{2} }}\left| {\left[ {g\left( {x,y} \right) - \bar{g}\left( {x,y} \right)} \right] - b\left( {x,y} \right)} \right|} $$
(30.3)

In Formula 30.3, \( \bar{g}\left( {x,y} \right) \) is the average value of pixel part \( g\left( {x,y} \right) \). According to the definition of part average gray level, contrast level index model (4) under the relationship between original image pixel and halftone image pixel is obtained as one-to-many.

$$ P_{c} = b_{G} \left( {x,y} \right) = {{\left[ {{{A \cdot n^{2} } \mathord{\left/ {\vphantom {{A \cdot n^{2} } {256}}} \right. \kern-0pt} {256}}} \right]} \mathord{\left/ {\vphantom {{\left[ {{{A \cdot n^{2} } \mathord{\left/ {\vphantom {{A \cdot n^{2} } {256}}} \right. \kern-0pt} {256}}} \right]} {n^{2} }}} \right. \kern-0pt} {n^{2} }} $$
(30.4)

2.2 Foundation of Reconstruction Image’s Entropy Difference Model

Set the average gray value j of a certain pixel’s neighborhood pixel as spatial signature value. The pixel’s gray value is i, i and j constitute two tuples (i, j). Meanwhile, f (i, j) is defined as the frequency of the two tuples (i, j). P ij is defined as the comprehensive feature weight, in which i and j satisfy the condition \( 0 \le i,j \le 255 \). P ij is shown as Formula 30.5.

$$ P_{ij} = {{f\left( {i,j} \right)} \mathord{\left/ {\vphantom {{f\left( {i,j} \right)} {MN}}} \right. \kern-0pt} {MN}} $$
(30.5)

Define two-dimensional entropy through the weight P ij.

$$ H = \sum\limits_{i = 0}^{n} {p_{ij} } \log_{2} p_{ij} $$
(30.6)

Define image entropy difference through one-dimensional entropy which expresses the gathering feature of the gray distribution. Entropy difference is the absolute value of the difference between original image entropy and halftone image entropy, which reflects the ability of halftone algorithm to obtain image information. The closer the entropy difference to value 0, the more information the halftone image will obtain from the original image. The information amount of the two images will be closer [5]. The discrepancy between halftone image and original image will be smaller. Set the gray distribution probability of original image and halftone image as p i and q i, respectively. Then the image entropy difference \( H_{c} \) is shown as Formula 30.7.

$$ H_{c} = \left| {\sum\limits_{i = 0}^{n} {p_{i} \log_{2} p_{i} } - \sum\limits_{j = 0}^{n} {p_{j} \log_{2} p_{j} } } \right| $$
(30.7)

3 Experiment and Analysis

3.1 Experiment Content

3.1.1 Halftone Algorithm and Experiment Objects Confirmation

Evaluation objects are Bayer pattern dither, error diffusion, and AM halftoning. In the experiment, 8 × 8, 10 × 10, 14 × 14, and 16 × 16 are chosen as the halftone unit accuracy. The experiment chooses color patches with symmetrical gray level. Gray levels are 25, 50, 75, 100, 125, 150, 175, 200, 225, and 250. For simple statistics calculation, set each color patches’ size as 8 × 8 pixel, as Fig. 30.1 shows. Choose original images goose and pepper, as Fig. 30.2 shows. The image goose has abundant color and relatively big tone contrast. The image pepper also has abundant color, which is used to compare.

Fig. 30.1
figure 1

Color patch scale

Fig. 30.2
figure 2

Original image goose and pepper

3.1.2 Experiment Items

Some experiments are performed as follows:

  1. (1)

    Use Bayer pattern dither, error diffusion, and AM halftoning to screen color patches. Bayer pattern dither applies extended 8 × 8 dimension threshold matrix and uses shift algorithm to realize threshold comparison. Error diffusion applies Floyd–Steinberg filter and uses median method to choose threshold. AM halftoning applies round shape dot, screen angle is set as 0°, halftone unit accuracy is set as 8 × 8, 10 × 10, 14 × 14, and 16 × 16. Do statistics calculation on the screened experiment color patches and get the data of gray level evaluation, contrast level index, and image entropy difference.

  2. (2)

    Use Bayer pattern dither, error diffusion, and AM halftoning to screen original image goose and pepper with the same method as item 1. And halftone images under the three algorithms are obtained.

  3. (3)

    Do Fourier transform on the goose and pepper halftone images and get frequency domain images and power spectrum images, and their characters are analyzed. In which, AM halftoning only choose 16 × 16 halftone unit accuracy.

3.2 Evaluation Result

3.2.1 Statistics Analysis of Color Patch Evaluation Index

After model calculating and data statistics, gray level evaluation index \( P_{m} \) value, contrast level evaluation index \( P_{c} \) value, and image entropy difference \( H_{c} \) value are obtained, as Tables 30.1, 30.2, and 30.3 show, in which I, II, and III are Bayer dither, error diffusion, and AM halftoning. The four numbers under AM halftoning are halftone unit accuracy 8 × 8, 10 × 10, 14 × 14, and 16 × 16.

Table 30.1 Gray level evaluation index \( P_{m} \) value
Table 30.2 Contrast level evaluation index \( P_{c} \) value
Table 30.3 Image entropy difference \( H_{c} \) value

According to the statistics results in Tables 30.1, 30.2, and 30.3, curve images are drawn. In each curve image, abscissa is gray level, and ordinate is index value, as Fig. 30.3 shows. A, B, C1, C2, C3, and C4 represent Bayer dither, error diffusion, and AM halftoning with 8 × 8, 10 × 10, 14 × 14, and 16 × 16 halftone unit accuracy.

Fig. 30.3
figure 3

Basic indexes evaluation curve images. a Gray level evaluation index. b Contrast level evaluation index. c Image entropy difference

  1. (1)

    The index values of the two dither algorithms are higher than AM halftoning, which illustrates that two dither algorithms’ halftone image is less closer to original image in gray level than AM halftoning. Two dither algorithms lose image tone while the AM halftoning will lose image tone in all the halftone unit accuracy other than 16 × 16. The higher the halftone unit accuracy is, the less loss will occur, but the extent of the tone loss is lower than the two dither algorithms. The index value of Bayer dither is lower than error diffusion in the gray level intervals of 0–135 and 180–240 while higher in other intervals. The AM halftoning index curve waves are in different gray level intervals, thus different halftone unit accuracies in different tones have different abilities to reproduce original image gray level.

  2. (2)

    Contrast level evaluation index of all algorithms are progressive increase curves. In the gray level interval of 0–255, it increases along with the gray level, thus one single algorithm has different contrast level difference in different gray tone. The higher the gray level is, the bigger the contrast level difference will be. The index values of two dither algorithms are higher than AM halftoning algorithm, thus the difference in contrast level difference between original image and halftone image obtained from the two dither algorithms is bigger than AM halftoning algorithm. The smaller the contrast level difference is, the smaller the visual difference between original image and halftone image will be. Therefore, the halftone image generated by AM halftoning is closer to original image in visual effect. In the gray level interval of 0–255, the index value of Bayer dither is higher than error diffusion, thus halftone image generated by error diffusion is closer to original image than Bayer dither.

  3. (3)

    Image entropy difference of these algorithms increases with the increased gray level. When the value gets the maximum, it starts to decrease. The starting values are all higher than 0.4, the minimum values are all close to 0. With the increasing image entropy difference, halftone image’s ability to obtain information from original image gets stronger. When the entropy difference gets to the maximum, the ability starts to get weak. In the gray level intervals of 0–110 and 130–180, image entropy difference of Bayer dither is bigger than error diffusion while smaller in other gray level intervals, which illustrates that error diffusion can get more information from original image and has stronger ability to get information than Bayer dither in gray level intervals of 0–110 and 130–180, and halftone image is closer to original image. In the gray level intervals of 0–30 and 100–210, image entropy difference of Bayer dither is bigger than AM halftoning while smaller in other gray level intervals, which illustrates that AM halftoning can get more information from original image and has stronger ability to get information than Bayer dither in gray level intervals of 0–30 and 100–210, and halftone image is closer to original image. In the gray level intervals of 105–240, image entropy difference of error diffusion is bigger than AM halftoning while smaller in other gray level intervals, and they are close in the gray level interval of 240–255, which illustrates that AM halftoning can get more information from original image and has stronger ability to get information than error diffusion in gray level intervals of 105–240, and the ability is close in the gray level interval of 240–255, and halftone image is closer to original image.

3.2.2 Halftone Image and Frequency Domain Analysis

Use Bayer dither, error diffusion, and AM halftoning to screen the M plate image of the experiment object in Fig. 30.2. As Fig. 30.4 shows, (a1) and (a4) are halftone images of Bayer dither, (a2) and (a5) are halftone images of error diffusion, (a3) and (a6) are halftone images of AM halftoning with halftone unit accuracy 16 × 16. Do Fourier transform on goose halftone image and then get frequency domain images and power spectrum images. As Fig. 30.4 shows, (b1) and (b4) are halftone images of Bayer dither, (b2) and (b5) are halftone images of error diffusion, (b3) and (b6) are halftone images of AM halftoning with halftone unit accuracy 16 × 16.

Fig. 30.4
figure 4

Halftone images, frequency domain images, and power spectrum images of different algorithms

Halftone image of AM halftoning is more elaborate than two dither algorithms. Bayer dither has fixed mode added on the image. Bayer dither gets black and white dots through threshold value comparison, in which process, error is abandoned. Tone jump exists between black and white dots, which results in high frequency prominent in the frequency domain image. While the error generated from error diffusion through threshold value comparison diffuses to pixels around which one can obtain elaborate dots and relatively small tone jump. AM halftoning has more exposure dots and more data amount. Therefore, its frequency domain image has different color from the two dither algorithms. From the frequency domain images, AM halftoning is more elaborate and accurate and has better detail reproduction ability. In the power spectrum images obtained from periodogram method, power spectrum curve of AM halftoning is smoother than the two dither algorithms and has smaller average fluctuation.

4 Conclusions

Digital halftone quality evaluation is an important way to test whether halftone algorithm is good or not. On the basis of founded reconstruction index model, this paper does objective evaluation on halftone algorithms. On the aspect of gray level evaluation index, contrast level evaluation index, and image entropy difference, halftone images are researched quantificationally, meanwhile, halftone image’s frequency domain character and power spectrum character are researched. Through comparison and analysis, advantage and disadvantage of each halftone algorithm are obtained, which can provide reference for the improvement of digital halftone technology.