MRX Tool: PhantomLib

Load one of the 20 BrainWeb simulated brain phantoms at a specified resolution and slice. Built using the MRX ToolAPI for use with MRI simulation pipelines.

Language: Rust
Binary: tool_phantomlib_flyio
Hardware: shared-2x-cpu@4096MB

BrainWeb Phantom Database

The BrainWeb database provides 20 realistic digital brain phantoms constructed from normal adult MRI scans, capturing intersubject anatomical variability. Each phantom includes fuzzy tissue classification maps that can drive MRI, PET, or SPECT simulations.

Input Parameters

ParameterTypeDescription
subjectintSubject number (1–20)
res_xintX resolution (1–434)
res_yintY resolution (1–362)
res_zintZ resolution (1–434)
sliceintAxial slice index to extract

Output

Returns a MultiTissuePhantom containing tissue maps (GM, WM, CSF, etc.) for the selected slice.

Run locally
  cargo run --release

Deploy to fly.io
  flyctl deploy