DCM2NIIBATCH(1)
π dcm2niibatch β the DICOM to NifTI batch converter, bestie edition π
so like. the manual name is dcm2niibatch and it lives in section 1 of the manual pages, and honestly? it's giving "quietly saving your whole research dataset" energy. π
β¨ NAME β¨
dcm2niibatch β DICOM to NifTI batch converter π¦
πΈ SYNOPSIS πΈ
dcm2niixbatch <configuration-file>
(yes the binary is called dcm2niixbatch while the manpage is dcm2niibatch, we don't make the rules, we just vibe with them π
)
π DESCRIPTION π
okay so here's the tea β β most medical imaging devices save their images in some variation of the very popular DICOM format. but literally every scientific tool out there expects medical images in the comparatively simpler NIfTI format. and dcm2niix? she was designed exactly for this. conversion from DICOM to NIfTI, with a simple command-line interface. iconic behavior. π
dcm2niibatch acts as a wrapper around dcm2niix and lets you process multiple DICOM sequences by just listing out your files and settings in a yaml text file. which makes processing a whole dataset of DICOM scans simpler and wayyyy more easily repeatable. no cap. π₯
plus β and this is the part I'm obsessed with β yaml files are designed to be both human and machine readable. so you can write a script in basically any programming language and have it automatically build a yaml file based on an existing folder structure. automation? slay. β¨
π¨ bestie, real talk:dcm2niixanddcm2niibatchhave been developed for research purposes only and should not be considered a clinical tool. periodt. like, do not use this for actual patient care decisions. π
π CONFIGURATION FILE FORMAT π
wanna batch-convert a bunch of dicoms? you run dcm2niibatch and pass it a configuration file, like:
dcm2niibatch batch_config.yml
the configuration file should be in yaml format, as shown in the example batch_config.yaml:
Options:
isGz: false
isFlipY: false
isVerbose: false
isCreateBIDS: false
isOnlySingleFile: false
Files:
-
in_dir: /path/to/first/folder
out_dir: /path/to/output/folder
filename: dcemri
-
in_dir: /path/to/second/folder
out_dir: /path/to/output/folder
filename: fa3
you can add as many files as you want to convert, as long as this structure stays consistent π«Ά. and note that a dash must separate each file β do not forget the dash, the dash is load-bearing. π
in_dirβ path to the dicom files πout_dirβ path to save the nifti file πΎfilenameβ file name of nifti file to save π·οΈ
π SEE ALSO π
π LICENSING π
copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. this file is offered as-is, without any warranty. π
π Author
this manual was developed and is maintained by Benjamin Irving <mail@birving.com>
Β© Copyright
2021 The dcm2niix contributors
and that's the whole page, bestie π₯° this was dcm2niibatch from the dcm2niix manual, version 1.0, dated Jul 28, 2026 β go forth and convert responsibly, and remember: research only, no clinical vibes. mwah π
πβ¨
π¦ where this page comes from
- ubuntu stonking: dcm2niix 1.0.20250506-2build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms