A novel speckle-shifting ghost imaging (SSGI) technique is proposed in this paper. This method can effectively extract the edge of an unknown object without achieving its clear ghost image beforehand. However, owing to the imaging mechanism of SSGI, the imaging result generally contains serious noise. To solve the problem, we further propose a simple and effective method to remove noise from the speckle-shifting ghost image with a connected-region labeling (CRL) algorithm. In this method, two ghost images of an object are first generated according to SSGI. A threshold and the CRL are then used to remove noise from the imaging results in turn. This method can retrieve a high-quality image of an object with fewer measurements. Numerical simulations are carried out to verify the feasibility and effectiveness.
Ghost imaging (GI), as a novel optical imaging technique, has been developed over the past two decades [1-7]. Different from classical optical imaging, GI requires two light beams: One is called the
Edge detection based on CGI has currently become a hot research topic. In 2015, Liu
In this paper, we propose a novel SSGI method that can effectively extract the edge of an unknown object. In this method, the illumination intensity patterns can be structured in a computer beforehand, and only two groups of intensity patterns are used to project the object. Compared tto the existing SSGI method, the imaging speed and quality will be improved. However owing to the imaging mechanism of GI, the imaging result generally contains serious noise. To solve this problem, a simple and effective denoising method for SSGI with a connected-region labeling (CRL) algorithm is further explored. First, two edge images of an unknown object are extracted according to SSGI. A threshold and the CRL algorithm are then used to remove noise from the imaging results in turn. This method can realize the image of an object with high quality, using fewer measurements. The organization of this paper is as follows. In Section II, the principle of the novel SSGI with the Sobel operator is introduced. In Section III, the steps of the denoising method with CRL are described specifically. Numerical simulation results are presented in Section IV, and finally we conclude this paper in Section V.
II. A NOVEL SSGI WITH THE SOBEL OPERATOR
In Ref. [16], the edge-detection methods using SSGI with the Laplacian operator, Standard operator, and Sobel operator have been demonstrated theoretically and experimentally. The results show that SSGI with the Sobel operator is robust in noisy environments. However, the intensity patterns used to illuminate the object are divided into 8 groups. Only one eighth of the intensity patterns are used to detect the edge in a corresponding direction, so the clarity of the imaging result will be poor if the number of measurements is insufficient. Here we introduce a novel SSGI technique with the Sobel operator, in which the intensity patterns are divided into two groups,
and
where and are the horizontal and vertical gradient patterns computed from an arbitrarily selected random intensity pattern
The setup for SSGI is schematically shown in Fig. 1. In the system, the series of structured patterns is generated by the computer-controlled digital micromirror device (DMD) and projected onto the object
and
The horizontal and vertical edge of the object are imaged by correlating the detected data with the random intensity patterns,
and
where <∙> denotes the mean of the elements. The edge of the object is obtained by
Further explanation of the edge-imaging process is presented in the appendix.
Compared to conventional SSGI [16], this method has two advantages. One is that the imaging speed will be increased, because the horizontal and vertical intensity patterns can be computed beforehand, and only two groups intensity patterns are used to illuminate the object; in conventional SSGI, eight groups of intensity patterns need to be generated by the DMD and projected onto the object. The other advantage is that the imaging result may be clearer than that from SSGI with the same number of measurements. For example, 20,000 measurements are adopted in conventional SSGI, but only 2500 intensity patterns are used to extract the edge in one direction. In our method, the edge in the horizontal or vertical direction will be imaged by 10,000 measurements. Here, a binary image with 128 × 128 pixels (Fig. 2(a)) is adopted to verify the method’s performance by numerical simulations. For comparison, the edge extracted from the original image by Sobel operator is shown in Fig. 2(b). One of the intensity patterns in the horizontal and vertical directions computed from Eqs. (1) and (2) is presented in Figs. 2(c) and 2(d) respectively. The horizontal and vertical edges of the object are imaged and shown in Figs. 2(e) and 2(f) respectively. Combining the two edge images according to Eq. (7), the result is shown in Fig. 2(g). As can be seen from the results, the edge imaged with our method is clearer than that from the conventional SSGI (Fig. 2(h)).
Owing to the imaging mechanism of the speckle-pattern illumination, no matter for our method or the conventional SSGI, the detected results (Figs. 2(g) and 2(h)) generally contain serious noise, which may be an obstacle in some potential applications. Considering that the speckle noise is randomly distributed in the SSGI result, but the detected edge of the object is nearly fixed and constant, we therfore intend to reduce noise by comparing two SSGI results
where
where
where
In this section, we will verify the feasibility of our proposed method by numerical simulations. To evaluate the quality of the detected edge, in this paper the peak signal-to-noise ratio (PSNR) is used as a metric, and defined as
where
Apart from the binary image shown in Fig. 2(a), the grayscale image with 128 × 128 pixels shown in Fig. 4(a) is also adopted as the original object image in this simulation. The edge shown in Fig. 4(b) is directly extracted with the Sobel operator for comparison.
In the following simulations, 20,000 structured patterns are divided into two groups (
Apart from binary and grayscale images, the method proposed in this paper is also suitable for color images, because a color image can be decomposed into red (R), green (G), and blue (B) components. The connected region is labeled in a binary image, so the image retrieved with SSGI should be binarized at first, and the final extracted edge is binary. Figures 6(a) and 6(b) respectively present a color image and its extracted edge with this proposed method. We can see that the result is similar to that for the grayscale image.
Recently, Wang
When 32,768 Walsh-Hadamard patterns and 49,152 sinusoidal patterns are respectively used in SPSGI and DFSI, the edge is extracted clearly for both binary and grayscale images, as seen in Figs. 7(a)~7(d). However, when the number of measurements is insufficient, the imaging results blur. To intuitively observe the differences among the imaging results of these methods, 30,000 structured patterns are adopted to detect the edge of the binary image, and the results are shown on the right side of Fig. 8. As can be seen, the result is overlapped for SPSGI and blurred for DFSI. Here we only take the binary image as an example and test the PSNRs of the imaging results, varying with the number of measurements, for SSGI, DFSI, SPSGI, and our method proposed in this paper. The curves are shown in Fig. 8. As can be seen from the results, our proposed method can realize high imaging quality when fewer measurements are adopted, although it cannot completely remove noise from the detected edge.
In this paper we have proposed a novel SSGI technique to improve imaging speed and quality. Numerical simulations are carried out to verify its performance. However, owing to the imaging mechanism of SSGI, the results still contain serious noise. To solve the problem, we also explored a method to suppress the noise of SSGI results via CRL algorithms. In this method, two frame-edge-detection results are first generated by SSGI with the Sobel operator, and then a preprocessing step with a threshold and the CRL algorithm are applied in turn to reduce the noise. Compared to SPSGI and DFSI techniques, this method cannot completely remove noise from the detected edge, but it can realize high imaging quality with fewer measurements. Numerical simulations are carried out to verify the method’s feasibility and effectiveness. Actually, the method proposed in this paper is simple, and so will take little operation time. The disadvantage of this method is that the CRL is invalid for noise adhering to the edge; some other effective algorithms still need to be further investigated.