DCM2NIIX(1)
π DCM2NIIX π (that's the dcm2niix manual, section 1, bestie)
okay so you found the manpage for dcm2niix and you're like "what is this" β don't worry, I got you. lowkey this is one of the most useful tools in the whole neuroimaging universe and I'm obsessed with it. it's a command-line utility, it's from the dcm2niix project, and it's giving "small tool, massive main character energy." π
β¨ NAME β¨
dcm2niix β the DICOM to NifTI converter. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
dcm2niix [options] <sourcedir>
literally just: give it some options, give it a directory, and it goes to work. π¦
π§ DESCRIPTION π§
okay so picture this: almost every medical imaging device out there saves your images in some variation of the extremely popular DICOM format. which, slay for them, but the scientific tools you actually want to use? they're all expecting medical images in the NIfTI format, which is comparatively simpler. like, way simpler. dramatic difference honestly.
dcm2niix exists to do exactly that conversion β DICOM β NIfTI β and it does it through a simple command-line interface. no drama, no fuss, just conversion. ate. π
bestie, real talk for a sec: dcm2niix was developed for research purposes only and should not be considered a clinical tool. that's not me being dramatic, that's the manpage being dramatic. π
π OPTIONS π
every flag, every value, every default, all of it, no skips, we're doing this properly β¨
-1..-9β gz compression level (1=fastest..9=smallest, default6). so like,-1is zoomies mode and-9is tiny-file mode, and the default is sitting pretty at6. π-b <y/i/n>β Save additional BIDS metadata to a side-car.jsonfile (defaulty). and thei"nput-only option reads DICOMs but saves neither BIDS nor NIfTI. so if you just want it to look at the files, that's your girl. π-ba <y/n>β anonymize BIDS (defaulty). Ifno, side-car may report patient name, age and weight. β οΈ so like,yis the polite default, andnis you choosing chaos. your call, but know what you're choosing.-f <format>β Format string for the output filename(s). The following specifiers are supported:%a, antenna (coil) name%b, basename (filename of 1st DICOM file)%c, comments%d, description%e, echo number%f, folder name%i, patient ID%j, series instance UID%k, study instance UID%m, manufacturer%n, patient name%o, media object instance UID%p, protocol%r, instance number (of 1st DICOM file)%s, series number%t, time%u, acquisition number%v, vendor%x, study ID%z, sequence name
The default format string is "%p_%e_%4s". π
-g <y/n/o/i>β Generate defaults file (defaultn). Ify, create default file on completion. Ifn, default will not be written. Ifo, only reset and write defaults. Ifi, the values of the defaults file are ignored : reset defaults], default n)-hβ Show help. the classic. when in doubt,-hit out. π«Ά-i <y/n>β Ignore derived, localizer and 2D images (defaultn). like, sometimes you just don't want the little scout images tagging along. valid.-l <y/n/o>β Losslessly scale 16-bit integers to use maximal dynamic range (defaulto). Ify, then intensity rescaled to use full 16-bit range. Ifn, data not scaled uint16 will be saved as int16. Ifo, original data and datatype preserved. soois the "don't touch my data" option and honestly iconic for it. πΈ-m <y/n/2>β Merge slices from the same series regardless of study time, echo, coil, orientation, etc. (default2). If2, automatic based on image modality. ngl this one is powerful and it knows it.-n <number>β Only convert this series CRC number. Provide a negative number for listing of series CRC numbers in input folder. so negative number = window shopping, positive number = actually buying. ποΈ-o <path>β Output directory where the converted files should be saved. If unspecified, the files are saved within the specified source directory. π-p <y/n>β Use Philips precise float (rather than display) scaling.-r <y/n>β Rename instead of convert DICOMs. Useful for organizing images. no conversion, just a little glow-up for your filenames. β¨-s <y/n>β Convert a single file only. one file, one job, focused queen. π-t <y/n>β Save patient details as text notes. π-uβ Update check: attempts to see if newer version is available. the "is there a new me" button, we love a self-aware tool.-v <2/y/n>β Enable verbose output.nfor succinct,yfor verbose,2for high verbosity. so2is basically the tool telling you its whole life story and honestly? sometimes you need that. π-x <y/n/i>β Crop images. This will attempt to remove excess neck from 3D acquisitions. Ifi, images are neither cropped nor rotated to canonical space. bye bye neck, we don't need you π«Ά-z <y/i/n>β Desired compression method. Theyes option uses the external programpigzif available. Theioption compresses the image using the slower built-in compression routines. soyis fast-friend-energy andiis doing-it-myself-energy. π’--big-endian <y/n/o>β Byte order (defaulto). Optimal is machine native. β--progressβ Slicer format progress information (y/n, defaultn).--ignore_trigger_timesβ Disregard values in0018,1060and0020,9153.--terseβ Omit filename post-fixes (can cause overwrites). β οΈ okay so this one is short and sweet but also likeβ¦ overwrites, bestie. be aware, be so aware.--versionβ Report version and terminate. just wants to tell you who it is and then leave. respect. π--xmlβ Slicer format features.
π 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. The dcm2niix project is distributed under the BSD 2-Clause License. so like, go forth, share it, just keep the receipts. π
π¦ Author π¦
This manual was developed by Ghislain Antony Vaillant and is maintained by the community. community-maintained?? we love to see it, actual group project energy. π«Ά
π Copyright π
2021 The dcm2niix contributors
okay that's the whole thing and you understood all of it, I'm so proud of you. π
version 1.0, dated Jul 28, 2026 β that's the version-of-this-page and its little birthday, so if you're citing it, that's what you cite. mwah, go convert something. π
β¨
π¦ 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