applied sciences
Article Reducing Motion Blur in Ghost Imaging Via the Hessian Matrix
Chen Chang 1,†, Dongyue Yang 1,†, Guohua Wu 1, Bin Luo 2,* and Longfei Yin 1
1 School of Electronic Engineering, Beijing University of Posts and Telecommunications, Beijing 100876, China; [email protected] (C.C.); [email protected] (D.Y.); [email protected] (G.W.); [email protected] (L.Y.) 2 State Key Laboratory of Information Photonics and Optical Communications, Beijing University of Posts and Telecommunications, Beijing 100876, China * Correspondence: [email protected] † These authors contribute equally to this work.
Abstract: Different from conventional imaging, ghost imaging (GI) is an indirect modality of imaging that needs multiple measurements of the second-order correlation of data collected from two detectors. In some particular cases, the exposure time of two detectors or the rotation speed of the ground glass may not meet the need of experimental condition, resulting in motion blur that reduces the quality of the reconstructed image. In this paper, we propose a method to solve this problem. By convolving the data from the reference arm with the Hessian matrix, the intensity of the light in the data is replaced by the gradient of intensity and the influence of the motion blur in the reconstructed image can be reduced.
Keywords: motion blur; Hessian matrix; ghost imaging; Gaussian function
1. Introduction
As an indirect modality of imaging, ghost imaging (GI) is a new method of imaging that needs multiple measurements for one imaging process. In the experiment system, the
Citation: Chang, C.; Yang, D.; Wu, G.; pseudo-thermal light produced by a laser passing through a rotating ground glass (RGG) is Luo, B.; Yin, L. Reducing Motion Blur split into two arms by a beam splitter (BS); the arm with the illuminated object is called the in Ghost Imaging Via the Hessian signal arm and the data without spatial resolution from this arm is recorded by the bucket Matrix. Appl. Sci. 2021, 11, 323. detector, which means that the data from the detector is the sum of all of the light intensities https://doi.org/10.3390/app11010323 within the captured range of the detector. The other arm is called the reference arm in which a series of data is recorded by the Complementary Metal Oxide Semiconductor Received: 25 November 2020 (CMOS) camera [1,2]. After the collection of the data, the image can be reconstructed by Accepted: 28 December 2020 some algorithms with data from both arms. When the RGG rotates through the size of Published: 31 December 2020 the laser spot, the distribution of the laser speckle is gradually changed. Until it rotates out of the entire range of the laser spot, which corresponds to the “coherence time” of the Publisher’s Note: MDPI stays neu- pseudo-thermal light [3], the distribution of the laser speckle could be totally different from tral with regard to jurisdictional clai- the original one. In order to observe the second-order intensity correlation, the coherence ms in published maps and institutio- time should be close to or shorter than the integration time (exposure time) of the detector nal affiliations. in the reference arm, which requires a shorter exposure time or a lower rotation speed of the RGG [4]. Compared with conventional imaging, GI hosts a number of advantages such as
Copyright: © 2020 by the authors. Li- high resolution and high sensitivity and could be widely applied in many fields ranging censee MDPI, Basel, Switzerland. from remote imaging to lidar detection and microscopy [5,6]. The first visualization of This article is an open access article GI was realized using entangled photon pairs in 1995 [3] and then it was proved that the distributed under the terms and con- experiment could also be realized with pseudo-thermal light sources and even true-thermal ditions of the Creative Commons At- light [7–10]. Recently, modulated light and other types of light sources were applied in an tribution (CC BY) license (https:// experiment [11–14]. Due to its convenience in application, the pseudo-thermal source is creativecommons.org/licenses/by/ still commonly used in GI experiments. 4.0/).
Appl. Sci. 2021, 11, 323. https://doi.org/10.3390/app11010323 https://www.mdpi.com/journal/applsci Appl. Sci. 2021, 11, x FOR PEER REVIEW 2 of 9
Appl. Sci. 2021, 11, 323 2 of 9 experiment [11–14]. Due to its convenience in application, the pseudo-thermal source is still commonly used in GI experiments. In recent years, with the development of ghost imaging, the object is no longer lim- In recent years, with the development of ghost imaging, the object is no longer limited ited to static targets [15–17] and different kinds of algorithms and methods have been to static targets [15–17] and different kinds of algorithms and methods have been investi- investigated to deal with the problems in the imaging process with moving objects [18,19]. gated to deal with the problems in the imaging process with moving objects [18,19]. One of One of these problems is motion blur, which causes the visual quality decline in the re- these problems is motion blur, which causes the visual quality decline in the reconstructed constructed image. Due to that, ghost imaging requires multiple samplings in one imag- image. Due to that, ghost imaging requires multiple samplings in one imaging. The position ing. The position of the object and speckle should remain relatively static in each acquisi- of the object and speckle should remain relatively static in each acquisition process when tion process when it is a moving object, which means a short exposure time and coherence it is a moving object, which means a short exposure time and coherence time are needed, time are needed, leading to the requirement of a fast speed of the RGG and a fast speed of leading to the requirement of a fast speed of the RGG and a fast speed of the RGG leads to the RGG leads to motion blur. motion blur. To overcome this defect, in this paper we introduce the Hessian matrix to compensate To overcome this defect, in this paper we introduce the Hessian matrix to compensate forfor the the influenceinfluence ofof motion blur blur caused caused by by th thee fast fast speed speed of of the the RGG. RGG. Based Based on ona table a table top topexperimental experimental setup, setup, we wemeasured measured the theimage image quality quality of a of reconstructed a reconstructed image image under under dif- differentferent numbers numbers of ofcoincident coincident measurements measurements ranging ranging from from under-sampling under-sampling to over-sam- to over- sampling.pling. The The experimental experimental results results demonstrated demonstrated that, that, with with the the post-processing post-processing method method us- usinging the the Hessian Hessian matrix, matrix, GI GIcan can effectively effectively reco reconstructnstruct an image an image with with a higher a higher image image qual- qualityity and and less less influence influence of motion of motion blur. blur.
2.2. MaterialsMaterials and and Methods Methods TheThe experimental experimental setup setup of of GI GI with with the the Hessian Hessian matrix matrix experiment experiment is shownis shown in Figurein Figure1 . A1. 532 A 532 nm lasernm laser passing passing through through a RGG a (EdmundRGG (Edmund 100 mm 100 diameter mm diameter 220 grit) 220 made grit) a pseudo- made a thermalpseudo-thermal light source. light The source. pseudo-thermal The pseudo-therm light wasal splitlight into was two split arms into by two a BS. arms The by signal a BS. armThe penetratedsignal arm a penetrated transitive object a transitive (0.3 mm object square (0.3 “GI” mm pattern) square and“GI” was pattern) summed and to was be registeredsummed to by be a bucketregistered detector by a bucket (Thorlabs detector PDA100/A) (Thorlabs while PDA100/A) the reference while arm, the reference with no objectarm, with on the no path, object was on recordedthe path, bywas a CMOSrecorded camera by a CMOS (xiQ MQ003MG-CM). camera (xiQ MQ003MG-CM).
FigureFigure 1. 1. ExperimentExperiment system: RGG: RGG: rotating rotating ground ground gl glass;ass; BS: BS: 50:50 50:50 beam beam splitters; splitters; Object: Object: “GI” “GI” (ghost(ghost imaging) imaging) pattern. pattern. In the experiment, we set up the experiment system according to Figure1 and set the In the experiment, we set up the experiment system according to Figure 1 and set the exposure time of the CMOS as 15 ms. Five sets of data were collected including data from theexposure reference time arm of the and CMOS the signal as 15 arm ms. underFive sets different of data rotation were collected speeds including of the RGG, data which from the reference5 arm and the25 signal arm under different rotation speeds of the RGG, which varied from 36 rad/s to 36 rad/s. The data from the reference arm occupied a field of view varied from rad/s to rad/s. The data from the reference arm occupied a field of view of 300 × 300 pixels and the number of samplings in each set of data was 10,000. of 300The × 300 reconstructed pixels and imagethe number of the of object samplings in ghost in imaging each set canof data be written was 10,000. as [15 ]: The reconstructed image of the object in ghost imaging can be written as [15]: N 1 O(x, y) = ∑1 (Bi − hBi)(Ii(x, y)) (1) 𝑂(𝑥,) 𝑦 =N i=1 (𝐵 − ⟨𝐵⟩)(𝐼 (𝑥,) 𝑦 ) (1) 𝑁 where Bi was the response of the bucket detector in the ith sampling, hBi was the ensemble averagewhere 𝐵 of Bwasi, Ii (thex, y )responsewas the intensityof the bucket distribution detector of in the the light 𝑖th field sampling, recorded ⟨𝐵 by⟩ was the CMOSthe en- camerasemble andaverageN was of the𝐵 , number𝐼 (𝑥,) 𝑦 was of samplings. the intensity Usually, distributionBi and ofIi (thex, y light) could field be recorded writtenas by thethe integral CMOS ofcamera the detectors’ and N was response the number during of the samplings. exposure timeUsually,τe. This 𝐵 assumesand 𝐼 (𝑥, that) 𝑦 couldτe is setbe towritten be an appropriateas the integral value of andthe thedetect reconstructedors’ response image during has the no motionexposure blur. time The 𝜏 speed . This ofassumes the RGG that was 𝜏 v 0 isand set theto be speed an appropriate of the RGG value was then and set the to reconstructedv0 + ∆v for moving image objecthas no imaging.motion blur. The speckleThe speed field of was the generated RGG was by 𝑣 directing and the thespeed laser of through the RGG the was RGG then and set the to speckle𝑣 +∆𝑣 in for the moving current object moment imaging. was produced The speckle by displacement field was generated of it in the by previous directing moment; the laser thus, the faster speed led to a longer distance, which is also called motion blur. Appl. Sci. 2021, 11, 323 3 of 9
The coherence time could be calculated according Equation (2):
τ = l/(ω × r) (2) where τ was the coherence time, l was the diameter of the laser spot, ω was the angular velocity (RGG) and r was the radius at the laser spot; thus, the coherence time of five sets 5 of data were between 28.64 ms and 5.72 ms (l = 0.5 mm, r = 0.04 m, ω varied from 36 rad/s 25 to 36 rad/s). In order to mimic the case of motion blur caused by fast speed of the RGG, the camera’s exposure time was set to be 15 ms and the rotation speed of the RGG was set to different values. This made the coherence time vary from less than the exposure time to over the exposure time, which led to a motion blur in both the reference samples and the reconstructed images. We then introduced the Hessian matrix and applied it in the reference samples as a filtering process to get rid of the GI image degradation. As this is different from the conventional image calculation procedure of GI, before we did the correlation, we first calculated the Hessian matrix of the data in the reference arm. The Hessian matrix can be described as the second-order partial derivative of a matrix [20] and it represents the gradient of the intensity the image. According to the concepts of linear scale-space theory, taking the second-order partial derivative of the image can be written as the convolution of the image and the derivatives of Gaussian functions [21]; thus, Equation (1) can be written as: N 2 0 1 ∂ G(x, y; σ) O (x, y) = ∑(Bi − hBi) Ii(x, y) ⊗ (3) N i=1 ∂x∂y where ⊗ is the convolution operator. In our method, we first set the value of standard deviation σ of the Gaussian function empirically and obtained the convolution window w. We then calculated the second-order partial derivative of the Gaussian function, which we think of as the Hessian matrix, then we used the matrix to process the data collected in the reference arm. The data processed by the Hessian matrix were then transferred to compute the correlation with the data from the signal arm instead of the data collected by the CMOS. To state how the Hessian matrix works, we demonstrated the change of the point spread function (PSF) between it being processed by Hessian matrix and not being processed by the Hessian matrix. The PSF of a reconstructed image with motion blur in GI and its projection in the x-z plane and y-z plane is shown in Figure2. Due to motion blur, the shape of the projection in the x-y plane changed from a circle to an oval. Usually, the projection in the x-z plane and the y-z plane are called a sombrero function. As shown in Figure3, when we put the sombrero functions into the same coordinates, the difference between the functions was clear. The full width at half maximum (FWHM) of the sombrero function in the x-z plane was larger than that in the y-z plane, which meant that the gradient of the intensity of the sombrero function in the y-z plane dropped faster, leading to a bigger absolute value of the gradient. When the Hessian matrix was introduced to process the data recorded in the reference arm, we actually used the gradient of the intensity instead of the intensity in the data to reconstruct the image. After being filtered by the Hessian matrix, the value of the sombrero function in the y-z plane was increased compared with the function in the z-x plane. This equivalently broadened the FWHM, making the projection in the x-y plane close to a circle; thus, the influence of motion blur was reduced. Appl. Sci. 2021, 11, x FOR PEER REVIEW 4 of 9 Appl. Sci. 2021, 11, 323 4 of 9
(a) (b) (c)
Figure 2.2.( (aa) ) Point Point spread spread function function (PSF) (PSF) with with motion motion blur; (blur;b) projection (b) projection in the x-z in plane;the x-z (c )plane; projec- (c) pro- jectiontion in thein the y-z plane.y-z plane.
Figure 3. Change of PSF after being processed by the Hessian matrix.
3. Results Figure 3. Change of PSF after being processed by the Hessian matrix. A brief, related work was published earlier [22]. The results proved that the method 3.worked Results well when dealing with motion blur. Here, we performed further research. We ver- ified the effect of the method under different rotating speeds of the RGG, compared the methodA brief, with anotherrelated work deblur was algorithm published and studiedearlier [22]. the influence The results of parameters proved that in the our method workedmethod. Thus,well when we may dealing provide with some motion reference blur. for othersHere, towe use performed this method. further research. We verifiedFive the groups effect of of data the were method collected under in diff theerent experiments. rotating The speeds rotation of the speed RGG, of the compared 5 10 15 20 25 theRGG method was set with to 36 anotherrad/s, 36deblurrad/s, algorithm36 rad/s, and36 rad/sstudied and the36 influencerad/s and of each parameters group in our method.was repeated Thus, several we may times provide in different some rotationreference speeds for others of the to RGG. use this We method. used second- orderFive correlation groups (SC) of data to reconstruct were collected the images in the and experiments. compared the The results rotation with thespeed images of the RGG reconstructed by SC with the Hessian matrix and the image filtered by the Lucy–Richardson was set to rad/s, rad/s, rad/s, rad/s and rad/s and each group was repeated filter [23]. The PSF Lucy–Richardson filter could be calculated during reconstructing the severalimages (astimes shown in different in Figure2 rotationa) and the speeds number of of the iterations RGG. inWe the used Lucy–Richardson second-order was correlation (SC)set to to be reconstruct 1000. The comparison the images was and implemented compared on the the results platform with of athe MATLAB images 2019b reconstructed with by SCan Intelwith Core the Hessian i7-5500U matrix CPU and and 12 the GB image RAM. Thefiltered computation by the Lucy–Richardson time of the SC fluctuated filter [23]. The PSFbetween Lucy–Richardson 96 s and 112 s, while filter the could time of be the calcul SC withated the during Hessian matrixreconstructing increased tothe about images (as 153 s to 177 s and the time of the SC filtered by the Lucy–Richardson fluctuated between shown in Figure 2a) and the number of iterations in the Lucy–Richardson was set to be 122 s to 164 s according to the iteration time. 1000.Figure The 4comparison shows the reconstructed was implemented image ofon the the Hessian platform enhanced of a MATLAB GI experiment 2019b at with an Inteldifferent Core rotation i7-5500U speeds CPU of and the RGG 12 GB under RAM. 10,000 The samplings. computation As we time can of see the from SC thefluctuated betweenfigure, compared 96 s and with 112 the s, Lucy–Richardson while the time filter,of the the SC boundary with the of Hessian the object matrix in the image increased to aboutreconstructed 153 s to by 177 the SCs and with the the Hessiantime of matrixthe SC (II) filtered was much by more the Lucy–Richardson continuous and clearer, fluctuated betweenwhile the 122 noise s to of 164 the reconstructeds according to images the iteration filtered time. by the Lucy–Richardson filter was muchFigure lower. In4 shows the condition the reconstructed proposed in the image experiment, of the Hessian motion blur enhanced was not GI caused experiment by at differentthe moving rotation blur but speeds the high of rotational the RGG speed under of the10,000 RGG, samplings. making the As SC we with can the see Hessian from the fig- matrix better than the Lucy–Richardson algorithm if we needed a clearer object. When the ure, compared with the Lucy–Richardson25 filter, the boundary of the object in the image rotational speed was higher than 36 rad/s, it was almost impossible to reconstruct the reconstructed by the SC with the Hessian ma5 trix (II) was much more continuous and image. When the rotational speed was lower than 36 rad/s, motion blur was no longer an clearer,important while factor the in noise reducing of the the reconstructed image quality. images filtered by the Lucy–Richardson filter was much lower. In the condition proposed in the experiment, motion blur was not caused by the moving blur but the high rotational speed of the RGG, making the SC with the Hessian matrix better than the Lucy–Richardson algorithm if we needed a clearer object.
Appl. Sci. 2021, 11, x. https://doi.org/10.3390/xxxxx www.mdpi.com/journal/applsci Appl. Sci. 2021, 11, x FOR PEER REVIEW 5 of 9 Appl. Sci. 2021, 11, x FOR PEER REVIEW 5 of 9