Image reconstruction is an essential part of the magnetic resonance imaging process, and a whole field of research is dedicated to the development of reconstruction algorithms. For this reason, scanner manufacturers provide researchers with programming frameworks that give full control over the whole procedure. The drawback is that these environments are complex, and the code is non-portable and covered by non-disclosure agreements. In this article, a simplified framework based on a free scripting language (Lua) is presented. It is oriented to the development of postprocessing algorithms that are seamlessly integrated with the pipeline of a commercial scanner. The structure privileges simplicity over performance, to be quickly learned and used by researchers and students who might not be acquainted with low-level programming languages. Common postprocessing algorithms (contrast modulation, pixelwise fitting, phase-contrast imaging) could be implemented with ∼100 logical lines of code or less, using a syntax that is similar to the Matlab programming language. The average performance of the reconstruction was lower with respect to the native implementation, but superior to offline postprocessing on a desktop computer, without the bottleneck of offline data export. © 2011 Wiley Periodicals, Inc. Concepts Magn Reson Part B (Magn Reson Engineering) 39B: 1–10, 2011
[1]
Roberto Ierusalimschy,et al.
The Implementation of Lua 5.0
,
2005,
J. Univers. Comput. Sci..
[2]
John K. Ousterhout,et al.
Scripting: Higher-Level Programming for the 21st Century
,
1998,
Computer.
[3]
Roberto Ierusalimschy,et al.
Lua—An Extensible Extension Language
,
1996
.
[4]
Peter Andersen,et al.
9.4T human MRI: Preliminary results
,
2006,
Magnetic resonance in medicine.
[5]
F. Santini,et al.
On Optimal Encoding of Flow in Three-Directional Phase-Contrast Sequences
,
2009
.
[6]
V J Schmithorst,et al.
Spatial variation in cartilage T2 of the knee
,
2001,
Journal of magnetic resonance imaging : JMRI.
[7]
C. C. Odebrecht,et al.
A pulse programmer for nuclear magnetic resonance spectrometers
,
2007
.
[8]
David Atkinson,et al.
Cartesian SENSE and k‐t SENSE reconstruction using commodity graphics hardware
,
2008,
Magnetic resonance in medicine.