API References#
Base#
Base classes and routines for MR simulator implementation.
Abstract base class for MRI simulation models with automated parameter handling. |
|
Force all inputs to be torch tensors of the same size on the same device. |
Parameter configuration#
Prepare environmental parameters for simulations. |
|
Prepare simulation parameters for a single pool system. |
|
Prepare simulation parameters for a two-pool Bloch-McConnell model. |
|
Prepare simulation parameters for a two-pool Magnetization Transfer model. |
|
Prepare simulation parameters for a three-pool Bloch-McConnell + Magnetization Transfer model. |
Extended Phase Graphs#
Subroutines for Extended Phase Graphs based simulators.
Generate EPG states matrix. |
|
Get signal from EPG matrix. |
|
Get signal from EPG matrix. |
RF Pulses#
Build RF rotation matrix. |
|
Build RF rotation matrix along arbitrary axis. |
|
Build RF rotation matrix for a multichannel RF pulse. |
|
Build RF rotation matrix for a multichannel RF pulse along arbitrary axis. |
|
Apply RF rotation, mixing EPG states. |
|
Calculate RF energy deposition. |
|
Calculate RF saturation operator. |
|
Build RF saturation matrix for a multuchannel pulse. |
|
Apply RF saturation. |
Relaxation and Exchange#
Prepare longitudinal relaxation and recovery operators. |
|
Apply longitudinal relaxation and recovery. |
|
Prepare longitudinal relaxation and recovery operators in presence of exchange. |
|
Apply longitudinal relaxation and recovery in presence of exchange. |
|
Prepare transverse relaxation operator. |
|
Apply transverse relaxation. |
|
Prepare transverse relaxation operator in presence of exchange. |
|
Apply transverse relaxation in presence of exchange. |
Gradient Dephasing#
Shift transverse EPG states due to gradient dephasing. |
|
Null transverse magnetization |
Magnetization Prep#
Apply adiabatic inversion to EPG states. |
Flow and Diffusion#
Prepare longitudinal and transverse diffusion damping operators. |
|
Apply diffusion damping. |
|
Prepare longitudinal and transverse flow dephasing operators. |
|
Apply flow dephasing. |
Signal Models#
Pre-defined signal models.
Analytical#
bSSFPModel transverse signal at time TE after excitation. |
|
SPGR transverse signal at time TE after excitation. |
Iterative#
Fast Spin Echo (FSE) Model. |
|
Magnetization Prepared RApid Gradient Echo (MPnRAGE) Model. |
|
Magnetization Prepared (2) RApid Gradient Echo (MPnRAGE) Model. |
|
Magnetization Prepared (n) RApid Gradient Echo (MPnRAGE) Model. |
|
SSFP Magnetic Resonance Fingerprinting (MRF) Model. |
Functional#
Functional wrappers for signal models.
Analytical#
SPoiled Gradient Recalled echo simulator wrapper. |
|
SPoiled Gradient Recalled echo simulator wrapper. |
Iterative#
|
Fast Spin Echo simulator wrapper. |
|
MPRAGE simulator wrapper. |
|
MP2RAGE simulator wrapper. |
|
MPnRAGE simulator wrapper. |
|
SSFP MR Fingerprinting simulator wrapper. |
Miscellaneous#
Other simulation utilities.
Compute root-mean-squared B1 for a given RF pulse. |
|
Calculate slice profile using Fourier approximation. |