DICOM vs NIfTI: Choosing the Right Format for Your ML Pipeline
DICOM and NIfTI solve different problems
DICOM is the clinical source of truth — pixel data plus a rich header of acquisition and patient tags. NIfTI is a lightweight research format that stores a clean 3D (or 4D) volume with a simple spatial affine, which is why most segmentation and deep-learning pipelines prefer it.
When to use which
- Keep DICOM as the archival original and whenever acquisition metadata matters (multi-phase CT, MR sequence parameters).
- Convert to NIfTI for training pipelines, registration and tools like FSL, ANTs or nnU-Net.
Watch the conversion pitfalls
Slice ordering, orientation (the affine), and rescale slope/intercept are the usual sources of silent errors. Validate a few volumes visually after conversion, and never discard the source DICOM.
Specify formats up front
GetDATA requests state the formats a project accepts, so providers deliver data that drops straight into your pipeline — DICOM, NIfTI or both.