Missing MRI¶

Synthesize a missing MRI modality from the three available sequences.
Single Subject¶
Provide any three of the four standard modalities (T1c, T1n, T2f, T2w) — the missing one will be synthesized:
from brats import MissingMRI
from brats.constants import MissingMRIAlgorithms
missing_mri = MissingMRI(
algorithm=MissingMRIAlgorithms.BraTS25_1,
cuda_devices="0",
)
# Synthesize the missing T2f modality
missing_mri.infer_single(
t1c="path/to/t1c.nii.gz",
t1n="path/to/t1n.nii.gz",
# t2f="path/to/t2f.nii.gz", # omitted — will be synthesized
t2w="path/to/t2w.nii.gz",
output_file="inferred_t2f.nii.gz",
)
Batch Processing¶
missing_mri.infer_batch(
data_folder="path/to/subjects/",
output_folder="path/to/output/",
)
Available Algorithms¶
| Year | Rank | Author | Paper | CPU | Key Enum |
|---|---|---|---|---|---|
| 2025 | 1st | André Ferreira, et al. | N/A | BraTS25_1 |
|
| 2025 | 2nd | Agustin Ujarky Cartaya Lathulerie, et al. | N/A | BraTS25_2 |
|
| 2025 | 3rd | Lina Chator, et al. | N/A | BraTS25_3 |
|
| 2024 | 1st | Jihoon Cho et al. | Link | BraTS24_1 |
|
| 2024 | 2nd | Haowen Pang | N/A | BraTS24_2 |
|
| 2024 | 3rd | Minjoo Lim et al. | Link | BraTS24_3 |
|
| 2023 | 1st | Ivo Baltruschat | Link | BraTS23_1 |