Gradient Unwarping: Reverse Engineering the Warpfield with Spherical Harmonics
Paul Polak1,2, David Lindner1, Jannis Hanspach1, Michael Dwyer1, Niels Bergsland1, Nicola Bertolino1,2, Robert Zivadinov1,2, and Ferdinand Schweser1,2

1Neurology, Buffalo Neuroimaging Analysis Center, State University of New York at Buffalo, Buffalo, NY, United States, 2Molecular and Translational Imaging, Clinical Translational Research Center, Buffalo, NY, United States

Synopsis

Gradient “unwarping” is the removal of image distortions caused by non-linearity of the imaging gradient fields. Exasperated by increasing distance from isocenter, the unwarping process is applied to every image by the manufacturer and generally is a “black-box” process occurring near the end of the image processing pipeline. This is problematic for researchers who source their data from a more primitive step, e.g. from raw k-space, since this data is generally “warped”. Presented here is a method to reverse engineer the spherical harmonic coefficients that describe the warp field and are used by the vendor’s black-box process, allowing the researcher to perform the gradient unwarping off-line as a post-processing step.

Introduction

Imaging voxel distortions resulting from gradient non-linearities are minimal near the magnet’s isocenter, but are generally always present and increase with distance from isocenter. Troublesome in abdominal imaging, these distortions are generally subtle in neuro-applications, but still pose problems as they may introduce head-size bias into volumetric studies e.g. larger crania producing larger distortions. Hence, the correction of the gradient distortion, or gradient unwarping [1-2], is an important step for certain quantitative image analyses methods; e.g. volumetric measures of neuroanatomical structures for atrophy assessment. Gradient unwarping is typically applied as a black-box procedure, slice-wise (2D) post-processing step to magnitude images near the end of the manufacturer's reconstruction pipeline. Research applications, however, often source data at a more primitive step (raw k-space) and, in practice, usually neglect the gradient warp due to the lack of effective unwarping methods. These distorted images represent the basis of many sophisticated image reconstructions, such as phase MRI, non-Cartesian reconstructions, or compressed sensing. [3-6] In particular, when resulting images are to be compared with images reconstructed by the scanner software (commonly T1w images), it is essential to unwarp the research images to avoid bias. [1-2,7-8] While some manufacturers may provide information regarding their unwarping process, others do not, requiring a laborious measurement of the field non-linearities using special hardware.

In this work we present a simple method to reverse-engineer the manufacturer’s correction of the gradient distortions, and use this information to unwarp images.

Theory and Methods

The foundations of gradient unwarping and the use of spherical harmonics to describe gradient field non-linearities are detailed in references. [2,7,9]

Phantom: Our methodology requires a phantom that: (a) is large enough to fill the entire possible imaging volume of the scanner, and (b) contains sufficiently detailed MR-visible structure. We constructed such a phantom by stacking the magnet bore with 48 consumer water bottles (500ml) (Figure 1a).

Data Acquisition: A GE-system was used because the spherical harmonic coefficients used by the GE platform are contained on the console and thus can be used as “ground truth” to determine the accuracy of our method. We used a T2* gradient echo (GRE) sequence, TR:2.7 ms, TE:0.74 ms, flip angle:3o, field of view: 440x440x367 mm3, slice thickness:1.7 mm, acquisition matrix 256x256x216, voxel size: 1.72x1.72x1.7 mm3. GRE images were acquired twice, once each with the manufacturer's gradient unwarping processing turned on or off. As the scanner's unwarping only operates in 2D, multiple slice orientations (transversal and sagittal) were required to measure the 3D warp information. We operated our GE 3T Signa Excite HD 12.0 whole-body scanner (General Electric, Milwaukee, WI) in body-coil transmit and receive mode. Figure 1b-c shows representative slices of warped (1b) and GE-unwarped (1c) images.

Warpfield determination: Non-linear 2D registration was performed with ANTS [10] on a slice-wise basis to match the warped and unwarped images and the resulting slice-wise warpfields were merged into a single displacement field.

Spherical harmonics fitting: Spherical harmonics were fitted to the ANTS displacement field using in-house developed code (Python using Scipy and Matplotlib libraries [11-12]) solving for each spatial direction the following system: $$$W=SC$$$, where $$$W$$$ is a vector concatenating the displacement in a certain direction, $$$C$$$ concatenates the spherical harmonic coefficients and $$$S$$$ is the spherical harmonic expansion system matrix. The system was solved in a least-squares sense using the pseudo-inverse of $$$S$$$.

Demonstration: The gradient displacement fields from the fitted and system coefficients were generated, and applied to warped images of a structure phantom. Details are in reference [8].

Results

Figure 2 contains the generated displacement fields from our fit, the manufacturer and the absolute difference.

Figure 3 shows the results of gradient unwarping in a phantom. Note that in this case the phantom was intentionally positioned far from isocenter in order to exacerbate the effects of the gradient distortions.

Discussion

The fitted harmonics were in very good agreement with GE's supplied coefficients (see Figure 2), especially near the isocenter where the majority of imaging applications apply. Figure 3 indicates only minor deviations even at the extreme situation presented here.

A further strength of this methodology is its repeatability and ease of setup – different phantoms can be created, imaged and the resulting coefficients can be averaged to obtain even better estimates of the spherical harmonic coefficients.

Conclusions

The displacement field generated from our method produced acceptable unwarping results, demonstrating the algorithm's efficacy in reverse engineering a gradient displacement field. This method allows researchers to reverse-engineer the gradient non-linearities inherent in their research images, without laborious measurements or expensive hardware.

Acknowledgements

No acknowledgement found.

References

1. Markl M, Bammer R, Alley MT, Elkins CJ, Draney MT, Barnett a, Moseley ME, Glover GH, Pelc NJ. Generalized reconstruction of phase contrast MRI: analysis and correction of the effect of gradient field distortions. Magn Reson Med 2003;50:791–80

2. Langlois S, Desvignes M, Constans JM, Revenu M. MRI geometric distortion: a simple approach to correcting the effects of non-linear gradient fields. J Magn Reson Imaging 1999;9:821–3

3. Schweser F, Deistung A, Lehr BW & Reichenbach JR. Quantitative imaging of intrinsic magnetic tissue properties using MRI signal phase: An approach to in vivo brain iron metabolism? NeuroImage 2011, 54(4), 2789–2807.

4. Schweser F, Sommer K, Deistung A & Reichenbach JR. Quantitative susceptibility mapping for investigating subtle susceptibility variations in the human brain. NeuroImage 2012, 62(3), 2083–2100.

5. Gurney PT, Hargreaves B a., Nishimura DG. Design and analysis of a practical 3D cones trajectory. Magn Reson Med 2006;55:575–582.

6. Lustig M, Donoho D, Pauly JM. Sparse MRI: The application of compressed sensing for rapid MR imaging. Magn Reson Med 2007;58:1182–95.

7. Jovicich J, Czanner S, Greve D, et al. Reliability in multi-site structural MRI studies: effects of gradient non-linearity correction on phantom and human data. Neuroimage 2006;30:436–43.

8. Polak P, Zivadinov R & Schweser F. Gradient Unwarping for Phase Imaging Reconstruction. ISMRM 2015, p1279. Toronto, CA.

9. Janke A, Zhao H, Cowin GJ, Galloway GJ, Doddrell DM. Use of spherical harmonic deconvolution methods to compensate for nonlinear gradient effects on MRI images. Magn Reson Med 2004;52:115–22.

10. B.B. Avants, N.J. Tustison, G. Song, J.C. Gee. ANTS: Advanced Open-Source Normalization Tools for Neuroanatomy Penn Image Computing and Science Laboratory (2009).

11. Perez F, Granger BE, Hunter JD. Python: An Ecosystem for Scientific Computing. Comput Sci Eng 2011;13:13–21.

12. Hunter J. Matplotlib: A 2D graphics environment. Comput Sci Eng [Internet] 2007;9:90–95.

Figures

Fig. 1: (a) Phantom setup with plastic water bottles to fill the entire bore. (b-c) axial slices of phantom setup imaged with a T2* GRE sequence, windowed identically.

(b) is the warped image with GE's unwarping processing turned off.

(c) is the same slice with GE's unwarping processing turned on.


Fig 2: All displacement fields are (256, 256, 216), voxel size: 1.72 x 1.72 x 1.7 mm3, scaled from [0, 72] mm. (a-c) show left to right: xy-plane, yz-plane and xz-plane. All planes are centered about isocenter.

(a) Absolute value gradient displacement field generated from the method presented in this work.

(b) Absolute value gradient displacement field as supplied by manufacturer's spherical harmonic coefficients.

(c) Displacement field absolute difference image $$$|a-b|$$$.


Fig. 3: Resolution phantom intentionally positioned far from isocenter to accentuate the gradient distortions and imaged with a T2* GRE sequence. All images windowed identically [0, 1200] arbitrary units.

(a) Phantom warped image.

(b) Phantom unwarped using manufacturer standard process.

(c) Phantom unwarped using the algorithm presented here to reverse engineer the coefficients.

(d) Phantom absolute difference image $$$|b - c|$$$.




Proc. Intl. Soc. Mag. Reson. Med. 24 (2016)
4287