Image Transmission through Scattering Media Using Ptychographic Iterative Engine

Random scattering media prevent light information from directly transmitting through, them as the photons will deviate from their original propagation directions due to the inhomogeneity of the refractive index distribution in scattering media. Based on recent developed methods, light information transmission through scattering media is realized using a memory effect. However, the memory effect range limits it to a small field of view. To enlarge the field of view, in this article, we propose to use the ptychographic iterative engine to deliver information through scattering media. We experimentally demonstrate that the proposed method can deliver images beyond the memory effect range through the scattering layer with outstanding imaging performance.


Introduction
When the information-bearing light is disturbed by scattering media such as fog, haze [1], biological tissues [2], and the surfaces of walls [3], a common optical imaging system will fail to realize regular pixel-to-pixel mapping between the object space and the image space.The inherent reason is that the wavefront that carries the object information undergoes random disturbance as it propagates owing to the inhomogeneity of the refractive index distribution of the scattering media.To solve this problem, several methods have been proposed in recent years to transmit, focus, and image through scattering media based on different application scenarios [4][5][6][7][8][9][10][11][12].Among them, transmission of image information through scattering media has received much attention.Typically, this task can be achieved with the help of the transmission matrix of the system [4], where a precise measurement of the system should be implemented.Wave front shaping [5] and phase conjugation [6] can be used when a reference point or object should be known a priori.Single pixel detection could be applied if the object could be projected with a series of fringe patterns [7,8].
On the other hand, the correlation property of the light field that passes through the scattering medium has also been explored to reconstruct the image of the object behind it.New progress in the memory effect makes it possible to image three-dimensional objects [13,14], retrieve spectral information [15], and work under noisy conditions [16,17].The fundamental theory of the memory effect was developed by Feng et al. [18] and Freund [19].The basic idea of this method is that for a scattering medium, there exists a maximum field-of-view (FOV) called the memory effect range, which is determined by the optical thickness of the medium.Within this range, the system is approximately translation-invariant, with the impulse response having the form of a speckle S(r).The autocorrelation of the speckle S(r) is a sharp-peaked function [11,12] with a uniform background term.Therefore, with incoherent illumination, the camera image I(r) can be written as the convolution of the target function O(r) with the point spread function S(r) by: where the symbol * denotes convolution and r = (x, y) is the two dimensional spatial coordinate.
The autocorrelation of the camera image reveals that: where the symbol stands for correlation and C a constant value.Therefore, if the object is within the memory effect range, then the autocorrelation of the collected speckles is equivalent to the autocorrelation of the object.From the autocorrelation, a diffraction limited reconstruction of the target can be reconstructed using phase retrieval techniques [11,12,20].However, the memory effect imposes a limit of the FOV that can be achieved by this method [19]: ∆θ ≈ λ/(πL), where L denotes the effective optical thickness of the scattering medium.For example, the FOV of a 0.5 mm thick chicken breast slice with the optical thickness being equal to 7 µm is approximately 1.4 degrees when illuminated by a laser with a wavelength of 532 nm [12].Here, we propose an approach to obtain large FOV imaging through scattering media with the help of a ptychographic iterative engine (PIE).Additionally compared with a conventional iterative phase retrieval algorithm, PIE is more robust without twin images and has a faster and more reliable convergence performance [21][22][23].

Methods
The proposed method uses a probe aperture to scan the target and a camera to record the speckle intensity which is formed after the light from the probed area passes through a scattering medium.The size of the probe beam is small enough to make sure it is within memory effect range.When a raster scan is complete, the camera captures a series of speckle patterns: where O(r) denotes the target which is much larger than the memory effect range, P(r − r j ) is the probe aperture translated by a known amount r j , S j (r) is the point spread function in the corresponding area of P(r − r j ), and o j (r) = O(r)P(r − r j ) for the simplicity of description.The point spread functions in different probe apertures is unnecessarily correlated.In this way, we could record a series of speckle patterns carrying information about the target at different local areas.The proposed method is to calculate the autocorrelation functions directly from these speckle patterns, the Fourier transforms of which are actually the power spectra of each probed part of the target: where F stands for the Fourier transform and q = ( f x , f y ) is the two-dimensional spatial frequency coordinate.Equation (4) indicates that from the collected speckle patterns, one can obtain the far-field diffraction patterns Ψ j (q) corresponding to the selected regions P(r − r j ) of the target.From these patterns, the proposed method reconstructs the target image by PIE.The framework of the PIE algorithm is similar to the conventional one [21,22].Figure 1 shows the procedure, which is composed of the following steps: 1 The algorithm starts with an initial estimation of the target function Ô1 (r).In our implementation, the initial guess was a real and non-negative random matrix.

2
Multiply the estimated target function obtained at the n th iteration with the aperture function at the current position: ôn,j (r) = Ôn (r)P(r − r j ), n = 1, . . ., N, where Ôn (r) is the estimated object at n th iteration, P(r − r j ) is the probe aperture as we know prior, and ôn,j (r) is the estimated probed object at n th iteration.Fourier transform the result calculated at step 2 .
Ân,j (q) exp[iφ n,j (q)] = F { ôn,j (r)} (6) Replace the magnitude of the Fourier spectrum obtained at step 3 with the measured data and keep the phase unchanged: Â n,j (q) = Ψ j (q), where Ψ j (q) is calculated from Equation ( 4) from the collected speckle patterns.
Inversely Fourier transform the updated spectrum back to the object plane: where F −1 is the inverse Fourier transform.Update the target image within probe aperture P(r − r j ) via: where β ∈ [0.9, 1.0] is a feedback parameter to controls the amount of importance of the result from previous step in the algorithm.
Move to the next aperture position (j ← j + 1) and repeat steps 2 -6 .Repeat steps 2 -7 and sequentially update the object function (n ← n + 1) until the algorithm converges.The convergence can be monitored by the correlation coefficient between Ψ j (q) and Ân,j (q) 2 by where Ψ j and Ân,j 2 are the mean value of Ψ j (q) and Ân,j (q) 2 .σ Ψ and σ Â are the stand division of Ψ j (q) and Ân,j (q) 2 , respectively.We can stop the iteration procedure when ε n,j is greater than a threshold value or the number of iteration reaches a predefined value.To successfully implement the PIE algorithm, the adjacent probe aperture should have certain overlap.When the overlap is increased to 60%, high quality image of the target can be reconstructed according to our investigation.A more detailed discussion of how the overlapping ratio influences the imaging performance can be found in Reference [24].In our method, as the object is incoherently illuminated, the PIE algorithm is just used to reconstruct the intensity of the target image.The study of reconstructing the phase or depth information behind scattering media can be found in References [13,25].

Experiment and Results
To demonstrate our method, we employed a simplified setup as shown in Figure 2a.In this experimental setup, a narrowband LED emitting at 633 ± 10 nm was used as the incoherent illumination source.The expanded uniformed beam was then shone onto a digital micro-mirror device (DMD) from Texas Instruments (DLP 9500).In order to demonstrate the performance of the proposed technique for imaging beyond the memory effect range, we should use a target image with sufficient large lateral extension and diffract the incoming beam in large angles.The target image we selected then was a binary fringe pattern of 200 × 200 pixels in size, as shown in Figure 2b.As the pixel size of our DMD is 10.8 µm, this corresponds to the physical area of the target about 2.2 × 2.2 mm 2 , or, in equivalent, 0.0037 radian in terms of FOV.Displaying the target image on the DMD offers the advantage that we do not need to mechanically scan the target stepwise so as to release the mechanical instability.Instead, we can use an aperture displayed on the DMD as well and perform a virtual scanning by changing its position.The size of the aperture, d, should be small enough to ensure it is within the range of the memory effect d ≤ z • FOV, where z is the distance between the target and the nearest surface of the scattering medium; z = 60 cm in our setup, and the FOV of the medium was 0.0015 radian as we measured.This allows us to use a probe aperture with the size of d = 900 µm in our experiments.The beam reflected by the DMD is then passed through a thick ground glass, and captured by an sCMOS camera (PCO Edge 4.2), which was placed 12 cm away from the back surface of the scattering medium.The scanning interval of the aperture was about 120 µm in our experiment, so that the camera captured 121 diffraction patterns after the aperture scanned across the whole target image.
The collected speckles were divided into a series of sub-images with the size of 200 × 200 pixels.This size was chosen so that most information of the autocorrelation of probed object can be covered [20].Owing to the ergodic property of the speckle [19], the spatial averaging of the autocorrelation functions calculated from the sub-images is in principle equivalent to the time averaging of the speckle images, which is equal to that of the target according to Equation (2).This also holds for the energy spectrum density.Therefore, for each part of the target selected by the aperture P(r − r j ), (j = 1, . . ., 121), the suppression of noise can be achieved by spatially averaging the autocorrelation of all the sub-images from the corresponding speckle image.The estimated 121 energy spectrum densities were then fed into our PIE algorithm.After 30 times of iteration, the improvement of the reconstructed image quality becomes negligible as the iteration continues.The correlation coefficient is 0.998 in our study.It took 12 s in total on a common personal computer (with the Intel Core i5 CPU and 8 GB memory, implemented in Matlab R2014a platform) without parallel processing.In this way, we reconstructed an image of 200 × 200 pixels in size with 121 numbers of the patterns projected on the object.A similar technique was proposed in References [7,8].However, in their methods, they need to project a plenty of fringe patterns on the object.Usually.thousands of fringe patterns are needed to reconstruct even a 64 × 64 pixels image.Using the memory effect of scattering media, the fringe patterns projected on the scattering media are dramatically reduced in our method.The main experimental results are illustrated in Figure 3.In Figure 3a, we plotted the ground truth target image, which was loaded on the DMD.The reconstructed image is shown in Figure 3b.It is clearly seen that the target can be reconstructed using the proposed approach.In principle, the resolution in this case is limited by several factors.For example, the size of the illumination spot on the scattering medium determines the size of the speckle grand, which should be large enough to be resolvable by the camera.When this is met, the resolution is mainly determined by the effective diameter, D p , of the variable iris placed between the scattering medium and the camera, which is given by δx = zλ/(πD p ) [19].In our setup, D p = 3 mm, giving a theoretical resolution δx = 40 µm.More effects of the variable iris on the image performance can be found in References [3,12].As the angular range of the total scanning area to the scattering medium is about 0.0037 radian, about two folds of the memory effect range, the conventional memory-effect-based method that directly uses the hybrid input-output algorithm (HIO) [11,12] will fail to recover the target image.Indeed, we plotted a typical reconstructed image in Figure 3c.Nothing about the target can be recovered but noise.We calculated the correlation coefficient of the two reconstructed images with respect to the target.The associated values for Figure 3b,c are 0.74 and 0.42, respectively.Within the range of memory effect, the captured speckle intensity is highly correlated with the target image [18,19].It is therefore expected that both the conventional phase-retrieval algorithm [11,12] and the proposed PIE-based algorithm can reconstruct the target image.In comparison to the conventional algorithm, however, the proposed method uses strong support constraints (shape and position of the probe aperture) at the target plane and therefore should be more robust against noise and false solutions [26].Indeed, when we used only one of the captured speckle patterns for reconstruction, we received the reconstructed images using these two algorithms, respectively, shown in Figure 4b,c.It is clearly seen that the shape and contrast of the reconstructed image using the PIE algorithm resembles that of the target, which is shown in Figure 4a.The correlation coefficients for Figure 4b  On the other hand, if the object rather than the probe aperture can be scanned, as in the case that the object behind the scattering medium is self-illuminating and moving, the FOV can be further enlarged.To demonstrate this concept, we digitally translated the target with respect to fixed apertures, both of which were displayed on the DMD in a similar optical setup to that shown in Figure 2. The size of the aperture was 1.4 mm so that the FOV would be within the range of the memory effect.We translated a target of 8 mm × 8 mm (shown in Figure 5a) along the x and the y directions stepwise across the aperture.Twenty-three steps with a step interval of 0.3 mm were translated in both directions, resulting in 23 × 23 = 529 sub-images that were taken by the camera.Using the proposed algorithm, we can reconstruct the image of the extended target within 1 min.The result is shown in Figure 5b, and the correlation coefficient is 0.93, suggesting that the image has been faithfully reconstructed.

Discussion and Conclusions
Next, we show how the aperture size affects the reconstruction performance using a simulation.The target object we used was the 'Cameraman' with the size of 300 × 300 pixels.We zero padded it to 1000 × 1000 pixels in our simulations.We scanned the object with a circular aperture, the diameter of which varied from 28 to 140 pixels.The overlapping ratio between two neighboring apertures in the course of scanning was fixed to be 75%.The scattering layer was a ground glass with the same structure.For simplicity, we supposed that the size of the target is within the range of the memory effect of the ground glass.Then, the probed image in each scan can be expressed as the convolution of the part of the target within the probe aperture with the point spread function S(r) of the ground glass.The speckle patterns used in our simulation were obtained by numerically calculating Equation ( 3), the convolution between the target and a series of S(r), which were experimentally collected in the lab.After feeding all the speckle patterns into the proposed algorithm, we obtained some typical reconstructed images, as shown in Figure 6b-h.Note that we just used the center 200 × 200 pixels of the reconstructed images in order to reduce the edge effect.We calculated the correlation coefficient between the target and the reconstructed image in all these cases, and the result is plotted in Figure 6i.The result suggested that the reconstruction performance of the proposed method is affected by the size of the probe aperture.The smaller the aperture, the better the reconstructed image quality.
In our opinion, this result is mainly induced by two factors.First, a smaller probe aperture leads to a more compact constraint to the algorithm, which increases the robustness of the reconstruction.Second, in the speckle pattern, the number of independent realizations of the speckles is proportional to the area of the probed object.Thus, the use of smaller apertures results in higher speckle contrast [12].We then made a simulation to show how the overlap ratio can influence the image performance.In this simulation, the diameter of the probe aperture was 66 pixels, and the overlap ratio varied from 39% to 91%.We moved the probe apertures to 255 different positions to show how large the effective area can be scanned in a given time.Some typical reconstructed images are shown in Figure 7b-h.
The correlation coefficients between the target and the recovered results with center 200 × 200 pixels are demonstrated in Figure 7i with a red line.From the figure, we find that if the overlap ratio is less than 80%, the higher overlap ratio will lead to a better imaging performance.However, when the overlap ratio reaches a very high value, the reconstructed image quality will degrade, as the effectively scanned area will be reduced.We also calculated the correlation coefficient between the target and the recovered results with center 150 × 150 pixels (indicated with green line in Figure 7i) and 100 × 100 pixels (indicated with blue line in Figure 7i).The results indicate that a better reconstruction of the central part will come out with a higher overlap ratio.However, in a practical application, small probe apertures as well as a high overlap ratio might not be suggested, as some more factors should be taken into consideration, such as the imaging speed, illumination power, aberrations, and noise.Therefore, the specific choice of these parameters should be adjusted according to the specific motivation.
In conclusion, we have demonstrated the use of the PIE algorithm for transmitting images through scattering media.We proposed to use a small probe aperture to scan the object with multiple shots and use the PIE algorithm to reconstruct the object behind the scattering media.The FOV of the reconstructed image was then enlarged.Additionally, the advantage of the PIE algorithm makes it possible to overcome the problems of conventional phase retrieval techniques and get outstanding image performance.The PIE algorithm we adopted in our study needs accurate knowledge of the shape and positions of the probe apertures, which are controllable in our proof-of-concept experiments, as the probe was implemented by a DMD.In practical application, however, these parameters may not be accurately known.As a result, the reconstructed image will suffer from noise and reduction of resolution.One should bear in mind that many studies have been carried out to improve the PIE algorithm [27][28][29].
The proposed method can be applied in particular to situations where the target can be illuminated with desired patterns-for example, in the application of aircraft landing in cloudy days [30].In cases

Figure 2 .
Figure 2. Experimental setup.(a) Experiment setup, (b) the target, and (c) an example of the probed beam as marked in red circle in (b).

Figure 3 .
Figure 3. Experimental results with scanning probe aperture.(a) The target image and the reconstructed image using (b) the proposed method and (c) the traditional hybrid input-output (HIO) phase retrieval algorithm.Scale bar: 1 mm.
,c with respect to Figure 4a are 0.79 and 0.69, respectively.

Figure 4 .
Figure 4.A comparison between the PIE and Fienup algorithm.(a) Target image and the reconstructed image (b) using our method, and (c) the traditional HIO phase retrieval algorithm.Scale bar: 1 mm.

Figure 5 .
Figure 5. Experimental results with object scanned.(a) The target and (b) the reconstructed image using our method.Scale bar: 1 mm.