- Research
- Open Access
- Published:

# Geometric correction method for 3d in-line X-ray phase contrast image reconstruction

*BioMedical Engineering OnLine*
**volume 13**, Article number: 105 (2014)

## Abstract

### Background

Mechanical system with imperfect or misalignment of X-ray phase contrast imaging (XPCI) components causes projection data misplaced, and thus result in the reconstructed slice images of computed tomography (CT) blurred or with edge artifacts. So the features of biological microstructures to be investigated are destroyed unexpectedly, and the spatial resolution of XPCI image is decreased. It makes data correction an essential pre-processing step for CT reconstruction of XPCI.

### Methods

To remove unexpected blurs and edge artifacts, a mathematics model for in-line XPCI is built by considering primary geometric parameters which include a rotation angle and a shift variant in this paper. Optimal geometric parameters are achieved by finding the solution of a maximization problem. And an iterative approach is employed to solve the maximization problem by using a two-step scheme which includes performing a composite geometric transformation and then following a linear regression process. After applying the geometric transformation with optimal parameters to projection data, standard filtered back-projection algorithm is used to reconstruct CT slice images.

### Results

Numerical experiments were carried out on both synthetic and real in-line XPCI datasets. Experimental results demonstrate that the proposed method improves CT image quality by removing both blurring and edge artifacts at the same time compared to existing correction methods.

### Conclusions

The method proposed in this paper provides an effective projection data correction scheme and significantly improves the image quality by removing both blurring and edge artifacts at the same time for in-line XPCI. It is easy to implement and can also be extended to other XPCI techniques.

## Background

In recent years, X-ray phase contrast imaging (XPCI) has attracted much attention in many areas, such as bio-medical imaging [1], material science [2] and paleontology [3]. Different from conventional absorption-based X-ray imaging, XPCI uses the information of wave front changes while X-ray radiation passes through a sample. It produces refraction-sensitive images and reveals the internal anatomy of soft tissues with differences in the refractive indices, which can be described in the complex form as follows

where δ is the decrement of the real part of the refractive index, and β presents the absorption index of local attenuation. It is proved that δ is three orders of magnitude larger than β within the diagnostic X-ray range for human tissue [4]. Thus XPCI can greatly enhance the contrast for soft tissues in biological sample with high spatial and temporal resolutions than conventional absorption-based X-ray imaging technique.

To reveal the morphology of a thick biological sample by using XPCI, 2D projection images are collected by titling the sample around a fixed axis, which is perpendicular to the beam direction, and computed tomography (CT) technique is used to obtain 3D visualization of the internal structure of the sample. Usually standard filtered back-projection algorithm (FBP) or algebraic reconstruction technique (ART) [5] are employed to build CT slice images from projections. However, collected projections cannot be used for CT reconstruction directly without pre-processing in practice. Due to mechanical system with imperfect or misalignment of X-ray source, rotary stagy and CCD detector, an unavoidable problem encountered before CT reconstruction is how to align 2D projections and make the rotation axis coincident with the center line of each projection. Similar problem has been investigated in electron tomography (ET). A conventional scheme for this issue in ET is to employ gold particles or image derived markers to correctly align projections by computing geometric parameters from tracking and measuring projected positions of them [6, 7]. However, this method needs additional components to generate accurate and measurable markers in projection images and thus makes the imaging procedure and post processing complex. Some marker-free methods are also proposed to handle this issue in ET by using the cross-correlation (CC) of successive projection images [8] or taking specimen features as built-in markers for deriving geometric parameters [9, 10]. These methods are based on pattern matching and have the drawback of accumulating alignment errors by comparing successive projection images. Recently, a mass center (MC) based method [11, 12] is proposed to align 2D projection images before reconstructing 3D tomography image in coherent diffraction imaging (CDI) [13, 14]. This method does not use local features but mass center as the invisible marker. Due to only one marker can be used, MC-based method works well for translational alignment, but poorly for rotational alignment. And it is sensitive to background noise and thus needs a well-designed background subtraction scheme. Some existing software suites developed for XPCI reconstruction usually provide a manual and automatic integrated approach to handle the data correction issue before CT reconstruction. PITRE [15] employs a MC-based sinogram correction scheme to calibrate the location of rotation axis, and the user can refine the result manually. DEIRecontructor [16] calculates geometric parameters by using user-selected markers. In this paper, a new automatic method is presented to solve the data correction problem in in-line XPCI, which is a propagation-based phase contrast imaging technique. This method employs an iterative approach to properly determine optimal geometric parameters. And a two-step method, which includes performing a composite geometric transformation and then following a linear regression process, is used to find out the solution at each iteration. Numerical experiments on synthetic and real image datasets demonstrate that the proposed method provides a fast and reliable image pre-processing scheme for CT reconstruction in in-line XPCI.

The rest parts of this article are organized as follows: Methods section describes the projection data misplacement problem for CT reconstruction in in-line XPCI and its mathematical model with primary geometric parameters at first, and then introduces the proposed method in details. Results section shows numerical experimental results from synthetic and real datasets which are pre-processed by the proposed method, and followed by the study conclusion in Consclusions section.

## Methods

### Projection data correction in in-line XPCI

XPCI uses a spatially coherent beam and an X-ray sensitive detector to acquire projection images from a sample. To obtain 3D structural information of the sample, a rotary stage with high precision is used to put the sample on and a series of projections collected while titling the sample around a rotation axis with respect to the base of stage. In-line XPCI [17] is a propagation-based phase contrast imaging technique and the most simple and straight-forward method to achieve X-ray phase contrast images. A synchrotron X-ray source, the sample and an X-ray sensitive detector are arranged in line as in conventional radiography but the detector is placed behind the sample in a certain distance. Figure 1 shows the schematic set-up of in-line XPCI.

While reconstructing slice images from acquired projections in in-line XPCI, the center line of any projection is considered to be identical to the rotation axis by default. Following this assumption, reconstruction algorithms, such as FBP, can be employed to build slice images correctly. However, it is usually very hard and time-consuming to align the components of imaging system with micrometer precision. If no data pre-processing step is adapted, the final reconstructed slice images will be blurred and with edge artifacts.

Suppose that Y is along the center line of CCD projection and Z is along the X-ray beam direction. Considering CCD detector and X-ray beam source are fixed during the whole imaging process, we use a model with four geometric parameters to describe the space relationship between the center line of projection and the rotation axis at tilt angle α as illustrated in Figure 2. Here θ is the in-plane flip angle which specifies the slope of the rotation axis related to Y, and (*δ*
_{
x
}, *δ*
_{
y
}, *δ*
_{
z
}) are offsets along X, Y and Z directions respectively. *δ*
_{
y
} and *δ*
_{
z
} are caused by the movement biases of rotary stage, and *θ* and *δ*
_{
x
} are mainly due to the misalignment of CCD detector and rotary stage. The movement biases of rotary stage are controlled by the precision of mechanical design, and thus *δ*
_{
y
} and *δ*
_{
z
} are usually small and can be ignored. So *θ* and *δ*
_{
x
} are two main factors to be considered and the model is simplified as illustrated in Figure 3. There *δ*
_{
x
} is denoted as *δ*. The existence of two misalignment parameters results in geometric transforms of the projection images. The parameter *θ* is related to the rotation transform of projection images while *δ* to translational transform along X. So the misalignment problem can be solved by applying inverse geometric transform to the projection images if we know the values of these geometric parameters.

Figure 4 compares central slices reconstructed from projections of a modified 3D Shepp-Logan phantom [18] without and with geometric transforms by using FBP. Translational transform with *δ* = 2 pixels and rotation transform with *θ* = 5° are applied to projections respectively. Compared to the result without geometric transform, translational transform makes the slice image blurred while rotational transform introduces obviously edge artifacts.

### Two-step iterative correction method

In-line XPCI has no limitation on the range of tilt angle. Usually two projections with special tilt angle of 0 and 180 degree are included while collecting projections in in-line XPCI. Denote *P*
_{0} and *P*
_{
π
} the two projections with special tilt angles respectively. According to the physical principle of in-line XPCI, *P*
_{
π
} is the reflection of *P*
_{0} by taking the rotation axis as the mirror line. So *P*
_{
π
} should be identical to the image which is achieved by applying the following composite geometric transformation to *P*
_{0} in homogeneous coordinates

where (*x*, *y*) is a point in *P*
_{0} and (*x*′, *y*′) is its corresponding position in *P*
_{
π
}. If the rotation angle *θ* is small enough, then (*x*′, *y*′) is approximated by

Thus we obtain

The above equation shows that the optimal geometric parameters can be achieved by solving the following minimization problem when *P*
_{0} and *P*
_{
π
} are available

Rewrite Eq. (4) by discarding the constant terms as follows

To find the solution of the above optimization problem, we employ an iterative scheme. At the *k* th iteration, the basic step is given by the following iteration

The optimizer of Eq. (6) is achieved by using a two-step method which includes performing a composite geometric transformation *T*^{k − 1} and then following a linear regression process.

In the *k* th step, *T*^{k − 1} is applied to *P*
_{
π
} to rotate it with the angle − 2*θ*
_{
k − 1} and then reflect it. Here *T*^{k − 1} is defined as follows

${P}_{\pi}^{k}$ is obtained by applying *T*^{k − 1} to *P*
_{
π
}. It can be proved that we have

Then we seek to find the solution of the following optimization problem

Considering the cross-correlation of *P*
_{0} and ${P}_{\pi}^{k}$ along X

Eq. (8) can be rewritten as follows

The above equation shows that the optimizer of Eq. (8) can be achieved by computing the cross-correlations of *P*
_{0} and ${P}_{\pi}^{k}$ row by row, and fitting the positions *t*
_{
m
}(*y*), which are corresponding to the maximum of correlation coefficients, with the following linear model

The stop criterion of the iterative method is set as both *θ* and *δ* are less than specified tolerance values respectively. *T*^{0} is set to the identity matrix.

## Results

To evaluate the proposed method, we carried out experiments on both synthetic and real in-line XPCI data. MC-based sinogram correction scheme and the proposed method have been implemented using MATLAB (The MathWorks, Inc., Natick, MA, USA). Inverse Radon transform with Ram-Lak filter was taken as CT reconstruction algorithm applied to corrected data. Data processing for this paper was carried out on a Dell workstation system with a 2.4GHz Intel Core i5 processor and 8GB memory.

### Simulation on synthetic data

For the synthetic case, we used projections of modified 3D Shepp-Long (S-L) phantom in Figure 4 of size 256×256×256 as a test dataset. These projections were obtained by using Radon transform after applying geometric transformation with specified parameters to the 3D S-L phantom. 2 pixels shift along axis X was applied to the rotation axis while flip angle was set to −5 degree. Tilt angle ranged from 0° to 180° and 181 projections were built in the simulation with one projection per degree. Figure 5 shows the results of 4 middle CT slices reconstructed without correction (NC), with MC-based sinogram correction (MC), and with proposed geometric correction method(GC) respectively. By comparing these slice images, we confirm that MC-based sinogram correction scheme reduce the blur effect but cannot remove edge artifacts, and the proposed geometric correction method significantly removes both the blur and edge artifacts at the same time.

For quantitative comparison, we took CT slice images reconstructed from projections without geometric transformation as references, and employed mean Structural SIMilarity (SSIM) index [19] and Mutual Information(MI) [20] to assess the image quality of above results by measuring the similarity between them and the corresponding references. For an image *X* with respect to its reference *Y*, SSIM index is defined as follows

where *x* and *y* refer to a local window in the image *X* and *Y* respectively, *μ*
_{
x
} (*μ*
_{
y
}) is the mean while *σ*
_{
x
} (*σ*
_{
y
}) is the standard deviation over the window *x* (*y*), *σ*
_{
xy
} is the co-variance between *x* and *y*, *C*
_{1} and *C*
_{2} are two small positive constants. And the mean of SSIM index (mSSIM) is the average over all local windows. Mutual information is defined as

where *H*(*X*) and *H*(*Y*) are the Shannon entropy of the image *X* and the reference *Y* respectively, and *H*(*X*, *Y*) is the joint Shannon entropy of the image *X* and its reference *Y*. We calculated mSSIM and MI values for the above slice images and listed the results in Tables 1 and 2 separately. Comparing the results, we can conclude that CT slice images reconstructed from projections pre-processed by the proposed method achieve much higher quality than popular MC-based scheme.

### In-line XPCI data correction experiment

Real in-line XPCI data was acquired from a mouse lung at X-ray imaging and biomedical application beamline (BL13W1) of Shanghai Synchrotron Radiation Facility (SSRF). The experiment was approved by the Animal Experiments and Experimental Animal Welfare Committee of Capital Medical University (Beijing, China) and the approval ID is AEEI-2014-049. To prevent from deformation during imaging approach, the mouse lung was fixed in 10% formalin solution, and dried in advance. And then it was put into a small tube, which was rolled by using Kapton film (Dupont, DE, USA), and placed on the rotary stage as illustrated in Figure 1. A Si (111) double-crystal was used to monochromatize the synchrotron X-ray beam. X-rays with photon energy of 18 keV were chosen to provide both good phase and absorption contrast from the mouse lung. An X-ray sensitive CCD detector with high spatial resolution of 9 μm was placed 1.2 m away from the rotary stage along X-ray downstream to record projection images. During the CT data acquisition, the mouse lung was tilted around rotation axis of the stage from 0° to 180°, and 1296 projections were collected totally with exposure time of 80 milliseconds for each one. The rotary stage was coarse adjusted before the imaging process. To improve the computation accuracy, a simple background subtraction approach was employed before correction schemes were taken by deducting mean value of background region from projection images.Figure 6 shows one of CT slices reconstructed by FBP with MC-based sinogram correction method while Figure 7 is with the proposed geometric correction method. Six regions of interest (ROIs) are magnified to better visualize the interior details for comparison. Due to the benefits of correcting misplaced projection pixels by using the proposed method, slice images are reconstructed with much less edge artifacts and blurs. Compared to the slice image in Figure 6, more detailed structural features of alveoli, ribs and bronchus of mouse lung are better displayed in Figure 7. The supporting walls of two adjacent bronchi can be clearly identified as shown in ROI (a). Alveolar and bronchial walls are closed naturally and with less edge artifacts as displayed in ROIs (b), (d) and (e). Structures of ribs are more sharp and without blurred as shown in ROIs (a), (c) and (e). And sharp and detailed image of soft tissue can be observed in ROI (f).

## Conclusions

CT reconstruction of X-ray Phase Contrast Imaging enables to investigate internal microstructure of biological samples with high resolution. Mechanical imperfect or misalignment problem makes the reconstructed slice images blurred and with edge artifacts, and thus destroy the features of microstructures and reduce the spatial resolution of in-line XPCI. To restore the images from collected projections by in-line XPCI, a fast geometric correction method is proposed to determine the geometric transform parameters properly. From the results of numerical experiments on synthetic and real datasets, we have the conclusion that the proposed method can significantly improve the image quality by removing both blurring and edge artifacts at the same time. Geometric correction method utilizes the symmetry of projections, and thus provides a simple and fast scheme to correct misplaced projection data.

## References

- 1.
Bravin A, Coan P, Sourtti P:

**X-ray phase-contrast imaging: from pre-clinical applications towards clinics.***Phys Med Biol*2013,**58:**1–35. 10.1088/0031-9155/58/1/1 - 2.
Mayo SC, Stevenson AW, Wilkins SW:

**In-line phase-contrast X-ray imaging and tomography for materials science.***Mater*2012,**5:**937–965. 10.3390/ma5050937 - 3.
Tafforeau P, Boistel R, Boller E, Bravin A, Brunet M, Chaimanee Y, Cloetens P, Feist M, Hoszowska J, Jaeger JJ, Kay RF, Lazzari V, Marivaux L, Nel A, Nemoz C, Thibault X, Vignaud P, Zabler S:

**Applications of X-ray synchrotron microtomography for non-destructive 3D studies of paleontological specimens.***Appl Phys A*2006,**83**(2):195–202. - 4.
Lewis RA:

**Medical phase contrast x-ray imaging: current status and future prospects.***Phys Med Biol*2004,**49**(16):3573–3583. 10.1088/0031-9155/49/16/005 - 5.
Gordona R, Bendera R, Herman GT:

**Algebraic Reconstruction Techniques (ART) for three-dimensional electron microscopy and X-ray photography.***J Theor Biol*1970,**29**(3):471–476. 10.1016/0022-5193(70)90109-8 - 6.
Fung JC, Liu W, de Ruitjer WJ, Chen H, Abbey CK, Sedat JW, Agard DA:

**Toward fully automated high-resolution electron tomography.***J Struct Biol*1996,**116**(1):181–189. 10.1006/jsbi.1996.0029 - 7.
Brandt S, Heikkonen J, Engehardt P:

**Multiphase method for automatic alignment of transmission electron microscope images using markers.***J Struct Biol*2001,**133**(1):10–22. 10.1006/jsbi.2001.4343 - 8.
Winkler H, Taylor KA:

**Accurate marker-free alignment with simultaneous geometry determination and reconstruction of tilt series in electron tomography.***Ultramicroscopy*2006,**106:**240–254. 10.1016/j.ultramic.2005.07.007 - 9.
Brandt S, Heikkonen J, Engelhardt P:

**Automatic alignment of transmission electron microscope tilt series without fiducial markers.***J Struct Biol*2001,**136:**201–213. 10.1006/jsbi.2001.4443 - 10.
Sorzano COS, Messaoudi C, Eibauer M, Bilbao-Castro JR, Hegerl R, Nickell S, Marco S, Carazo JM:

**Marker-free image registration of electron tomography tilt-series.***BMC Bioinformatics*2009,**10:**124. 10.1186/1471-2105-10-124 - 11.
Chen CC, Miao JW, Lee TK:

**Tomographic image alignment in three-dimensional coherent diffraction microscopy.***Phys Rev B*2009,**79**(5):052102. - 12.
Chen CC, Zhu C, White ER, Chiu CY, Scott MC, Regan BC, Marks LD, Huang Y, Miao JW:

**Three-dimensional imaging of dislocations in nanoparticles at atomic resolution.***Nature*2013,**496:**74–77. 10.1038/nature12009 - 13.
Miao J, Charalambous P, Kirz J, Sayre D:

**Extending the methodology of X-ray crystallography to allow imaging of micrometre-sized non-crystalline specimens.***Nature*1999,**400:**342–344. 10.1038/22498 - 14.
Marchesini S, Chapman HN, Hau-Riege SP, London RA, Szoke A, He H, Howells MR, Padmore H, Rosen R, Spence JCH, Weierstall U:

**Coherent X-ray diffractive imaging: applications and limitations.***Opt Express*2003,**11**(19):2344–2353. 10.1364/OE.11.002344 - 15.
Chen R, Dreossi D, Mancini L, Menk R, Rigon L, Xiao T, Longo R:

**PITRE: software for phase-sensitive X-ray image processing and tomography reconstruction.***J Synchrotron Radiat*2012,**19**(5):836–845. 10.1107/S0909049512029731 - 16.
Zhang K, Yuan QX, Huang WX, Zhu PP, Wu ZY, Zhang K, Yuan QX, Huang WX, Zhu PP, Wu ZY:

**DEIReconstructor:a software for diffraction enhanced imaging processing and tomography reconstruction.***Chinese Physics C*2014. http://cpc-hepnp.ihep.ac.cn/qikan/epaper/zhaiyao.asp?bsid=11666 - 17.
Spanne P, Raven C, Snigireva I, Snigirev A:

**In-line holography and phase-contrast microtomography with high energy x-rays.***Phys Med Biol*1999,**44**(3):741–749. 10.1088/0031-9155/44/3/016 - 18.
Matthias C:

**MATLAB function for generating 3D Shepp-Logan phantom.**available at http://www.mathworks.com/matlabcentral/fileexchange/9416–3d-shepp-logan-phantom - 19.
Wang Z, Bovik AC, Sheikh HR, Simoncelli EP:

**Image quality assessment: from error visibility to structural similarity.***IEEE Trans on Image Processing*2004,**13**(4):600–612. 10.1109/TIP.2003.819861 - 20.
Pluim JPW, Maintz JBA, Viergever MA:

**Mutual-information-based registration of medical images: a survey.***IEEE Trans on Medical Imaging*2003,**22**(8):986–1004. 10.1109/TMI.2003.815867

## Acknowledgements

The authors acknowledge the staffs from beamline BL13W1 of Shanghai Synchrotron Radiation Facility (SSRF) for their kindly support for the experiments. This study was supported by the National Natural Science Foundation of China, Grant No. 61227802, 60532090 and 30770593, and by the 7th Framework Programme of the European Community, Grant Agreement Number PIRSES-GA-2009-269124.

## Author information

### Affiliations

### Corresponding author

## Additional information

### Competing interests

The authors declare that they have no competing interests.

### Authors’ contributions

The work presented here was carried out in collaboration between all authors. WGM and LSQ defined the research theme, and also designed the methods and experiments. WMS and DLN carried out the laboratory experiments, and WGM analyzed the data, interpreted the results and wrote the paper. All authors read and approved the final manuscript.

## Authors’ original submitted files for images

Below are the links to the authors’ original submitted files for images.

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made.

The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.

To view a copy of this licence, visit https://creativecommons.org/licenses/by/4.0/.

The Creative Commons Public Domain Dedication waiver (https://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.

## About this article

### Cite this article

Wu, G., Wu, M., Dong, L. *et al.* Geometric correction method for 3d in-line X-ray phase contrast image reconstruction.
*BioMed Eng OnLine* **13, **105 (2014). https://doi.org/10.1186/1475-925X-13-105

Received:

Accepted:

Published:

### Keywords

- Projection data correction
- Tomography reconstruction
- In-line X-ray phase contrast imaging