Physics
MRI: from spins to an image
Fill k-space line by line and reconstruct a synthetic phantom with a Fourier transform.

Try this
Change echo and repetition times to alter contrast. Early central k-space lines reveal broad structure; later lines add detail.
The model and its limits
Analytic spin-echo signal and a synthetic 48 × 48 phantom reconstructed with Fourier transforms. One phase-encoding line per repetition. Full Bloch dynamics, gradient waveforms and noise are not simulated. No clinical interpretation.
Equations used in the module
Equations f = γ B_0 / (2π) S = ρ (1 - exp(-TR/T_1)) exp(-TE/T_2) I = |DFT⁻¹(K)|


