![]() |
JEMRIS 2.9.2
open-source MRI simulations
|
JEMRIS simulations can be started from the Simulation GUI JEMRIS_sim, which provides several predefined objects for simulation and some functionality to view the simulation results.
Introduction to the simulation GUI JEMRIS_sim
Starting the Image Reconstruction
To start the simulator GUI, open "JEMRIS_sim" as before in the path where the sequence *.xml files are stored. In the following screenshot, the epi-sequence has been loaded into the GUI and was simulated for a brain phantom:
Before the simulation, the sequence file has to be selected via "File->open Sequence". Additionally, coil array loops for transmit and receive may be loaded via the File menu (see Coil array layout tool: JEMRIS_txrx). If no coils are specified, a uniform B1 sensitivity is assumed.
Next, the sample to which the sequence is applied has to be specified. There are five predefined samples: a sphere, two interleaved spheres, a 1D column phatom, the Shepp-Logan phantom (requires the Matlab Image Processing Toolbox) and a brain model. Since 3D simulations are very time consuming, the samples are defined as 2D slices (except the 1D column), while for the brain model the desired slice can be selected using "slice" parameter. Here also 3D portions of the brain may be simulated by specifying the first and the last slice. For all samples, "{dx,dy}" specifies the distance between two neighboring spins. For larger distances, less spins need to be calculated and thus the simulation will be faster. However, artifacts are likely if too few spins are used in the simulation. The following physical properties of the object, the sample parameters, can be specified (one value per parameter in case of a sphere, two values per parameter in case of two spheres or the 1D column phantom, and one factor per parameter in case of the brain phantom or the Shepp-Logan phantom):
In case of the brain phantom, the parameters T1,T2,T2*,M0, and CS are tissue parameters at 1.5 Tesla. The user may change them individually by specifying a constant factor. Setting T2*=0 will also omit any reversible signal decay. Further, for the brain phantom a realistic susceptibility-induced field variation may be included.
Finally, it is also possible to specify a user-defined object as a Matlab mat-file. An example file "userSample.mat" is located in Jemris' matlab installation directory (default /usr/local/share/jemris/matlab).
After specifying the sample and the sequence, the "start simu" button calls JEMRIS. Its output is displayed in the "simulation message dump". After the simulation has finished, the results will be displayed in the lower right of the GUI. Besides the signal, the k-space and the image space can be displayed. K-space is only shown, if the sequence contained imaging ADCs (i.e. ADCFlag=2, see Pulse Shape Modules). Images are only shown, if image reconstruction was performed (see next section).
On the right hand side there are three additional parameters controlling the simulation:
Addtionally, there are settings for simulation of motion, flow, and diffusion, which are not yet well documented. More explanation on these topics may be found on in the JEMRIS discussion group on Google.
To speed up the simuation JEMRIS can make use of multiple CPUs, either of a computer cluster or of a multi-core processor on a single workstation. The desired mode can be selected from the "Settings" dialog. To utilize multiple CPU cores on a single workstation the GUI must be able to log into the system without supplying a password, thus an ssh-key has to be installed in the system.
If an imaging sequence was implemented using ADCFlag=2 for k-space encoding (cf. Pulse Shape Modules), the simuation will generate the ISMRMRD raw data file "signals_ismrmrd.h5". Then, the button calls an automated image reconstruction pipeline as a docker service (if it was installed, see Installation of the Automated Image Reconstruction Pipeline). This will start the required Docker server, send the ISMRMRD data to it, perform image reconstruction with the BART toolbox, save the images to the file "start reco"gui-reco.h5, and finally terminate the server. Ouput is again displayed in the "simulation message dump". Usually image reconstruction is much faster than the simulation.
The python reconstruction pipeline for JEMRIS is designed to run fully automatically. Details of are given on the project's github page. Here is a short list of features:
ADCFlag=4), those will be used to estimate the coil sensitivities instead of using the true coil sensitivities.ADCFlag=8), but noise scans (ADCFlag=16) are considered.
-- last change 03.01.2025 |
Tony Stoecker |
Imprint |
Data Protection --