The computer-generated hologram (CGH), as a promising technology for three-dimensional display, has attracted broad attention in the past two decades[
Chinese Optics Letters, Volume. 19, Issue 5, 050501(2021)
Pattern-adaptive error diffusion algorithm for improved phase-only hologram generation
The bidirectional error diffusion (BERD) algorithm is free from random phase modulation that introduces speckle noise on the reconstructed images, compared with other computer-generated phase-only hologram (POH) approaches. During the POH generation process, the amplitudes of all pixels are traditionally set to one for diffusing the errors to their neighborhood of unprocessed pixels. In this paper, we reveal that the reconstruction quality depends on the uniform amplitude value for different object pattern. The pattern-adaptive BERD (PA-BERD) algorithm is proposed for high-quality holographic reconstruction. The optimized amplitude value can be acquired for each object pattern and each propagation distance. The PA-BERD-based POHs have shown higher reconstruction quality than traditional BERD-based POHs in simulations as well as optical experiments.
1. Introduction
The computer-generated hologram (CGH), as a promising technology for three-dimensional display, has attracted broad attention in the past two decades[
The concept of error diffusion was first proposed for halftone image generation in 1976[
In the POH generation process with the traditional BERD method, the amplitudes of all pixels are traditionally set to one, and the corresponding errors are diffused to their neighborhood of unprocessed pixels to compensate for the discarded amplitude information. However, different CAHs have different amplitude distributions. The uniform amplitude value of one is not suitable for all images. There is still obvious coding noise on the reconstructed images of some object patterns with the BERD algorithm. In this paper, an optimization algorithm called the pattern-adaptive BERD (PA-BERD) algorithm is proposed. An optimized uniform amplitude value in the error calculation process is chosen for each object pattern and each propagation distance, which effectively eliminates the coding noise and generally improves the reconstruction quality.
Sign up for Chinese Optics Letters TOC Get the latest issue of Advanced Photonics delivered right to you!Sign up now
2. Method
Figure 1 shows the processing procedure of the POH generation with the error diffusion method. The wave propagation from the object plane to the hologram plane is described by the angular-spectrum method[
Figure 1.Processing procedure of POH with the error diffusion method. (a) Object and its CAH. (b) The error diffusion mode for odd rows, and black arrow denotes the scanning direction. (c) The error diffusion mode for even rows. (d) The calculated POH and its reconstruction.
Thereafter, the CAH is converted into the POH by using the error diffusion method. First, the amplitude distribution of the complex hologram is normalized. Then, each pixel is scanned sequentially, and its amplitude value is set to one to generate the POH , as given by
The corresponding error is given by
It is noteworthy that the complex value of each pixel is constantly updated in the error diffusion process, so the used in Eq. (3) is the complex value after being diffused by the neighborhood processed pixels.
It is shown that the error between the complex value and the pure phase value is directly related to the discarded amplitude information . The error diffusion algorithm encodes the discarded amplitude information into the phase component by introducing the error term. It can keep the reconstruction quality of the POH similar to that of the CAH. However, the amplitude has its own distribution according to the original object pattern and diffraction parameters. Its average value may be near to one or far below one. It is closely related to the degree of the amplitude component encoded to the phase component. As we shall show later, the reconstructed images of some objects are accompanied with obvious coding noise. In this work, we propose an algorithm to adjust the uniform amplitude value in the error calculation process for different object patterns, known as the PA-BERD algorithm. A variable parameter is introduced to replace the value of one. The error used in the PA-BERD calculation process is given by
Thus, we can adjust the degree of the amplitude component encoded to the phase component by changing the value of .
As shown in Fig. 1(b), the pixels on odd rows are scanned from left to right, and their errors are diffused to the neighborhood pixels as follows:
As shown in Fig. 1(d), the POH generated with the PA-BERD algorithm can be reconstructed by the inverse angular-spectrum propagation, as given by
For each object pattern, is set from 0 to 1.5 with the interval of 0.01. The best value is acquired according to the reconstruction quality by using peak signal-to-noise ratio (PSNR) as the evaluation standard. It is shown that the best value of is different for each object pattern because of the amplitude distribution . In this work, we calculate the optimized for different patterns at different propagation distances.
3. Experiments
The resolution test chart is used to evaluate the proposed method. The image size is pixels. The hologram size is pixels, and the pixel pitch is 3.74 µm. The wavelength is 532 nm, and the distance between the object plane and the hologram plane is 60 mm. The CAH is calculated by the angular-spectrum method. The CAH is converted into POHs with the original BERD algorithm and the proposed PA-BERD algorithm, respectively. The reconstructed results are shown in Fig. 2. With the optimized uniform amplitude , the coding noise in the reconstructed image introduced by the original BERD algorithm is removed, and the PSNR of the reconstructed image is improved by 3.65 dB.
Figure 2.Numerical reconstructions of the resolution test chart using different methods. (a) Object image. (b) Numerical reconstruction with the BERD algorithm. (c) Numerical reconstruction with the proposed PA-BERD algorithm.
Numerical simulations of some standard test images with the original BERD algorithm and the proposed PA-BERD algorithm are also taken. The PSNR improvements of the corresponding reconstructed images are shown in Fig. 3. It is obvious that the proposed PA-BERD algorithm can generally improve the reconstruction quality, which proves its universal applicability. The improvements vary from image to image, and the highest one is 3.59 dB.
Figure 3.Reconstruction quality improvement of different object images by the PA-BERD algorithm. (a)–(e) are the reconstructed images with the BERD algorithm. (f)–(j) are the reconstructed images with the proposed PA-BERD algorithm. (k) is the PSNR comparison of (a)–(j).
To illustrate the reconstruction quality for different values of , the PSNR- curve is shown in Fig. 4. With the increase of , the PSNR first rises and then oscillates sharply and drops. By observing the reconstructed images, the rising area corresponds to the filling process of low-frequency information, and the reconstructed image information is incomplete. The oscillating area corresponds to the reconstructed images with complete information and different degrees of coding noise. The parameter used in the traditional BERD algorithm is in this area.
Figure 4.(a) and (c) show the relationship between the value of α and the PSNR of the reconstructed images of (b) “Peppers” and (d) “Airplane”, respectively. The blue and red dots represent the simulation results of the BERD algorithm and the PA-BERD algorithm, respectively.
Compared with the random phase method, the propagation range where the object can be clearly reconstructed by the BERD method is narrow. Figure 5 shows the reconstructed images at different propagation distances by the BERD algorithm. Diffusely extended noise clouds exist in the reconstructed images at 40 mm, 70 mm, and 80 mm, respectively. In contrast, the proposed PA-BERD algorithm can effectively eliminate the noise. The wider display distance range has opened the possibility to apply the error diffusion method in three-dimensional holographic display.
Figure 5.Numerical reconstructions at different distances using different methods. (a)–(d) are the reconstructed images with the BERD algorithm at the distances of 40, 60, 70, and 80 mm, respectively. (e)–(h) are the reconstructed images with the proposed PA-BERD algorithm at the distances of 40, 60, 70, and 80 mm, respectively. (i) is the PSNR comparison of (a)–(h).
The experimental setup is shown in Fig. 6. A Holoeye Gaya SLM with the resolution of pixels and the pixel pitch of 3.74 µm was used to modulate the phase of the incident laser. By adding offset phase to the holograms in the experiment, the noise caused by the SLM itself was removed. Improved reconstructed results with reduced noise were obtained.
Figure 6.(a) and (b) are the schematic and photograph of the experimental setup, respectively. (c) shows the object image patterns “HOLOLAB” and “star”.
The experimental results are shown in Fig. 7. It can be observed that the images reconstructed by the original BERD method are dark with much coding noise. However, the proposed PA-BERD algorithm can effectively improve the contrast and remove the coding noise. It is shown that the PA-BERD algorithm could support higher-quality reconstruction over the traditional BERD algorithm.
Figure 7.Optical reconstruction results using different methods. (a) and (b) are the POHs and the corresponding optical reconstructed images and intensity distributions of “HOLOLAB” and “star” using the BERD algorithm, respectively. (c) and (d) are the POHs and the corresponding optical reconstructed images and intensity distributions of “HOLOLAB” and “star” by using the proposed PA-BERD algorithm, respectively.
4. Conclusion
In summary, this paper reports an optimization algorithm for POH generation based on the PA-BERD method. The optimized amplitude value of is introduced in the error calculation process for each object pattern and each propagation distance, which effectively eliminates the coding noise and improves the reconstruction quality. The PA-BERD algorithm could be applied to POHs based on the phase plate, phase-only liquid crystal (LC)-SLM, or phase-only metasurfaces.
[11] T. Shimobaba, T. Ito. Computer Holography: Acceleration Algorithms and Hardware Implementations(2019).
[13] R. Floyd, L. Steinberg. Adaptive Algorithm for Spatial Greyscale, 17, 75(1976).
Get Citation
Copy Citation Text
Kexuan Liu, Zehao He, Liangcai Cao, "Pattern-adaptive error diffusion algorithm for improved phase-only hologram generation," Chin. Opt. Lett. 19, 050501 (2021)
Category: Diffraction, Gratings, and Holography
Received: Oct. 1, 2020
Accepted: Oct. 19, 2020
Posted: Oct. 21, 2020
Published Online: Feb. 25, 2021
The Author Email: Liangcai Cao (clc@tsinghua.edu.cn)