Zhe Hu(胡哲) Wen-Qiang Hua(滑文強) and Jie Wang(王劼)
1Shanghai Institute of Applied Physics,Chinese Academy of Sciences,Shanghai 201800,China
2University of Chinese Academy of Sciences,Beijing 100049,China
3SSRF,Shanghai Advanced Research Institute,Chinese Academy of Sciences,Shanghai 201204,China
Keywords: phase contrast imaging,near field speckle,grating splitter
While conventional x-ray imaging is based on the local attenuation of a photon beam,[1,2]phase contrast imaging detects the real part of complex refraction index of a sample.[3–5]In x-ray field, the real part is several orders larger in magnitude than the imaginary part,leading to a higher sensitivity to small density differences,which also can significantly increase the contrast in imaging.[3]
Currently, various methods such as coherent diffraction imaging,[6]transport of intensity equation,[7]Hartmann wavefront sensing,[8]and propagation-based (in-line)methods,[9]grating-based method,[10,11]as well as Talbot grating interferometry[12]are available to quantitatively measure the phase of a beam or sample. One of the latest additions to the group of differential phase-contrast methods is the x-ray near field speckle based technique.[13–15]It has drawn significant attention due to its simple and flexible experimental arrangement and high angular accuracy, amongst others. The best reported angular accuracy in the literature is 2 nrad.[15]
In general, two or more frames of speckle patterns are the prerequisite of phase retrieval processing. Therefore, so far,sequential patterns measurements are applied,for instance,patterns of sample-in and-out or scanning of the speckle mask are acquired. Current speckle tracking (CST) method treats speckle patterns as functions of spatial position only.[13–15]However, no matter in single-shot way or scanning way, the requirements for moving objects, detectors, or speckle masks raise strong challenges on the external aspects such as stability of the beam, machine, etc.[16]In the synchrotron radiation, the vibration of the light source, oscillation of the vacuum pump and water cooling unit will frequently change the incident beam, leading to changes of the beam size, position,and wavefront over time. These will introduce errors that are unpredictable and difficult to eliminate in phase retrieval if the spatial position of speckle patterns is considered only. There are many ways to improve the accuracy in imaging, such as using generative adversarial network to remove background noise,[17]or using filters to remove electric noise and roundoff error.[18]However,it is difficult to find a certain rule to eliminate errors mentioned above due to the time-varying beam size and position. Usually,fast acquisition or parallel acquisition methods can reduce these kinds of errors. Yet the former one is limited by the speed of mechanical motion and acquisition time of images. So, a parallel acquisition speckle tracking (PAST) method is proposed in this paper. It combines near field speckle and property of grating splitter[19]to collect sample and reference images simultaneously. In this case,errors introduced by external fluctuations will be recorded in all images and can be eliminated naturally by our algorithm,leading to more robust and accurate results. It should be mentioned that the method proposed here is somehow similar to the previous method described in Ref. [14], which uses two detectors along the optical path to quantitatively analyze x-ray pulsed wavefronts.The differences lie in the following two aspects. Firstly,the proposed method not only can work like the method in Ref. [14] to perform on-line beam phase sensing,but also can recover the phase of the sample alone,depending on the relative position of the two detectors. Secondly, combining the property of grating and Fourier based solver[16]for propagation-based method, the resolution can be a pixel size rather than the average speckle grain size.
To combine near field speckle with grating splitter,working principle of these two methods needs to be clarified here.Firstly,the size and shape of the near field speckle grains will not change within a critical distance defined aszc=D2/λ(Dis the transversal coherence size andλis the wavelength).[13]This property allows the near field speckle to be used as a wavefront marker for phase retrieval. Any phase object introduced into the beam path will distort the wavefront and modulate the speckle pattern. The differential phase shift of the x-ray wavefront can be obtained by tracking modulations of the speckle pattern using the digital imaging correlation(DIC)algorithm[20]or geometric flow method.[16]The relative displacement of every pixelP(x0,y0)in the unitary base(x,y)is obtained(Fig.1(a))as
where ?t=t1?t2is the time interval between the collection of two images,δtis exposure time, andε(?t,δt,x0,y0),τ(?t,δt,x0,y0) reflect the time-varying displacement of the target subset from the reference subset centered onP(x0,y0).For methods with angular accuracy of nanoradians, the extra displacement contained inεandτwill degrade the imaging quality and accuracy strongly. So, temporal features need to be eliminated to get more accurate results.
The relationship between the speckle displacement, angular offsetΘmof the beam and the phase differential can be described as below:[13]
where ?lis the distance of sample to detector andΦ(x,y) is the phase function of the sample. Once displacement of every pixel is obtained,we can use the partial derivatives in two directions to recover the phase. The theoretic accuracy[13]can be described asσ=s×δa/?l, whereδais the pixel accuracy of the cross correlation function,srepresents pixel size for single shot methods or scanning step size for scanning-based technique.
Secondly, as shown in Fig. 1(b), when a grating splitter is inserted into a beam path,a series of diffracted light will be produced. According to Ref. [19], the intensity distribution,coherence,and wavefront of the first-order diffracted beam of a grating preserves the properties of the incident beam. This needs to be achieved in the far-field corresponding to the grating to separate the diffracted light. The distance can be described byzp=p2/λ,wherepis the period of the grating.The influence of the grating imperfection cannot be neglected for its direct participation in optical process. ?n/n(nis the linear density of a grating)is used to describe the density variation of the grating, which influences the diffraction angle. Consider the commercial x-ray grating whose ?n/ncan be 10?5,and letλ=0.1 nm,n=500/mm. According to the diffraction formula,sinθ ?sinθ0=nλ(θis the diffraction angle andθ0is the incident angle),the corresponding diffraction angle deviation caused by grating imperfection is 0.5 nrad,which can be basically neglected.
Fig.1.(a)Principle of near-field speckle tracking.The displacement of every speckle grain is tracked from two images. The red arrow indicates displacement of the subset. (b)Demonstration of diffraction of grating splitter.
Comparingzcwithzpmakes requests for experiments that the transverse coherent lengthDshould be larger in magnitude than the grating periodpif we combine near field speckle with the property of grating splitter. The incident beam first passes through a speckle mask to create speckle. Then, a grating splitter will split it into a series of diffraction beams. Samples will be put into the zeroth order beam. Due to the property of the grating splitter,[19]we can record the zeroth and first order beams as reference and sample image,respectively.In this way, errors caused by time-varying fluctuations will be recorded in both images. These errors can be naturally removed because they contribute the same shift of speckle grains in each image and can be recognized by algorithms
wheree1(δt,x0,y0)ande2(δt,x0,y0)are speckle displacement errors introduced by time-varying fluctuations during the exposure time. Equations (3) and (1) are essentially the same except thatεandτno longer change with time,which means the proposed method eliminates errors related to temporal features of the speckle patterns. In this case,the values ofεandτare only related to the phase of samples, leading to a great improvement to the accuracy and robustness of the phase retrieval results.
Simulations of two frameworks shown in Figs. 2(a) and 2(b)were performed to test the proposed method. Firstly,two sets of speckle patterns about a preset sample were obtained using the two configurations. The same algorithm was used to process the data to recover phases. Then,the results obtained were compared to the preset sample to get residual error maps and root mean square error (RMSE), and RMSE is used to quantify the accuracy of phase retrieved.
Fig.2. Experiment configurations of(a)the proposed method and(b)CST.
First of all, we setA=1 to see the performance of the two methods. Two retrieved phases corresponding to CST and PAST with RMSE values of 0.0672 and 0.0005 are recovered,and the residual error maps are shown in Figs. 3(c) and 3(d).We can see that the proposed method performs better in the presence of external fluctuations.
Fig.3. (a)The preset sample. (b)Incident wavefront. (c)–(d)Residual error maps of CST and PAST,respectively.
Then, we set those external disturbance functions unchanged except their amplitudes increase from 0 to 1 to see how the phase errors will change. By repeating the procedure mentioned above,we get a series of recovered phases.And the RMSE values are summarized in Fig.4(a).
We can conclude from Fig.4(a)that when the amplitude of fluctuations increases linearly,the RMSE of CST increases almost linearly as well. This means the effects of fluctuations at different times on the CST are linearly superimposed.Meanwhile,the errors of the proposed method remain almost unchanged in Fig.4(a),meaning the significant error reduction capability of the proposed method. We compare the two sets of RMSE values and find that PAST can reduce errors to about 1%at most compared with CST.It is reasonable to predict that this gap will continue to grow asAincreases.
We also explore the influence of the incident waveforms under PAST. Different incident wavefronts of randomly distributed (Fig. 3(b)), planar, spherical, and Gaussian are simulated. Figure 4(b) presents the RMSE values obtained as a functionAfor four wavefronts. It can be seen clearly that the plane wave has the optimal performance under the disturbed environment comparing to the others. Nonetheless, the quality of phase recovered does not change significantly within a broad range for all kinds of wavefronts, which implies the requirements for speckle-based experiments on the incident wavefront can be relaxed.
We introduceσeto describe the accuracy deterioration caused by the coupling results of the time-varying fluctuations during the time interval between the collection of two images and the exposure time. Andσeis defined as the root mean square of the difference of the residual error maps whenA/=0 andA=0. Here,we treat the residual error map whenA=0 as the true value because of its invariance. Theσeof the two methods under different waveforms are plotted in Figs. 4(c)and 4(d) as a function ofA. It can be seen clearly that the lines representing different waveforms are overlapped for both methods,indicating that the waveforms do not affect the accuracy of the experiments. On the contrary, the increase of the magnitude ofAaffects the accuracy linearly,which means the larger the coupling result of fluctuations is, the worse the experimental accuracy is. This linear characteristic, in turn, illustrates the rationality of taking the residual error map whenA=0 as the true value. We can see that the maximumσeof the proposed method is 0.03 nrad,while more than 60 nrad for that of CST, meaning the high theoretical accuracy can only be realized by the proposed method.
Fig.4. (a)The RMSE values of the two methods plotted as a function of the amplitude of time-varying fluctuations. (b) Influence of four different incident wavefronts on PAST.(c)–(d)Angular accuracy deterioration σe of PAST and CST as a function of amplitude of time-varying fluctuations,respectively.
In conclusion,we have proved that the proposed method can provide robust and much more accurate results than the conventional speckle tracking method in the presence of external fluctuations.
Due to the lack of grating for x-ray in our laboratory currently,[21]we carried out experiments with visible light.The experimental layout of the proposed method is shown in Fig.5. The illumination system is consisted of a He–Ne laser beam with central wave length of 632.8 nm, a collector lens,a circular aperture,and a condenser lens. The images are captured by CCD cameras(Hamamatsu C11440-36U,19201200,pixel sizespix=5.86 μm, 125 fps). Calibrated laser beam passes the frosted glass with grain size of 15 μm to generate speckle pattern. A grating with period of 9μm is used to produce diffraction beam. We used a lens with focus length of
100 mm as the sample.The distance between the grating splitter and sample is 20 cm. And the sample to detector distance is 1 cm. The acquisition time of each image is 1 ms.
Fig.5. Experimental layout of PAST with visible light.
In the first step,we checked the phase retrieval capability of the proposed method. Two sets of data corresponding to the two methods were obtained and processed to get two recovered phases (Figs. 6(a) and 6(b)). Then, a residual error map(Fig.6(c))was obtained by subtract the two phase maps. The corresponding RMSE value is 0.11. So, the phase retrieval ability of the proposed method is validated. The spatial resolution of PAST and CST is 5.86μm, the theoretical angular accuracy of the two methods is the same, which is 30 μrad according to the equation mentioned above.
Then, we examined if the proposed method can reduce errors under a disturbed environment comparing to CST. To simulate the instability of the x-ray beam,machinery vibration in x-ray field, we used the air fluctuations caused by the heat of a lit candle to change the incident wavefront. We noticed during the experiments that when the acquisition time is long,the influence of external fluctuations to images is smoothed out,despite there still exist errors. However,at the acquisition time of 1 ms, the influences become visible even to a naked eye. We repeated the procedural mentioned above and set the result of CST in the first step as a standard. By comparing it with two newly retrieved phases, we got two residual error maps corresponding to PAST and CST (Figs. 6(d) and 6(e)).And the RMSE values are 0.37 and 13.81,which indicates the phase recovered by the proposed is almost unaffected by timevarying fluctuations while big error appears in the result of CST.We repeated the experiments 20 times and got the standard deviation of RMSE values of the proposed method and CST,0.089 and 2.16,which implies the good stability and accuracy of the results recovered by PAST despite the presence of strong external fluctuations. Meanwhile we can use the root mean square of the subtraction of Figs. 6(d) and 6(e) to get the accuracy deteriorationσeof CST.The result is 13.01 rad,which means the angular accuracy of CST is completely ruined by the external fluctuations.
Fig.6. (a)–(b)Phase recovered by PAST and CST.(c)Residual error map. (d)–(e)Residual error maps corresponding to PAST and CST under a disturbed environment.
In summary, we have demonstrated a real-time, high accuracy method for speckle-based phase contrast imaging.Through simulations and experiments, we show that this method can reduce errors introduced by time dependent fluctuations to 1% when compared with current speckle tracking method. Meanwhile, it can preserve high theoretic accuracy,which implies a huge increase of fidelity and robustness to the experiments. Meanwhile, it has two other major advantages.First,due to the simultaneous collection of reference and sample images, it can recover the phase functions at any instant,which may be useful for on-line beam monitoring of x-ray free electron laser. Second,by combining with the FFT based solver,[14]our method can provide a real time rapid imaging,which is suitable for imaging living patients and dynamic samples. Nevertheless, when used in x-ray field, this method requires grating with high linear density, which poses high requirements on grating processing technology. In future work,we will try to change wavefront of the incident beam in some ways in x-ray field and collect two first order diffraction beams to monitor it. It can be used in fields such as super resolution of phase retrieval.[22]We will demonstrate it in the future investigation.
Acknowledgement
Authors wish to thank Dr. Feixiang Wang and Dr.Haipeng Zhang for helpful discussions.