NIFTITODICOM(1)
β¨ NIFTITODICOM(1) β¨
okay bestie, welcome to niftitodicom, a lil User Command from the vtk-dicom CLI family π it's the glow-up your NIfTI file has been waiting for, and I'm gonna walk you through every single flag like the queen you are π
πΈ DESCRIPTION πΈ
π usage:
niftitodicom -o directory file.nii [file.dcm ...]
π options:
-o directoryβ the output directory. this is where the DICOM glow-up lands, no cap.-s,--silentβ do not print anything while executing. shhh. silent mode. main character who doesn't narrate π€«-v,--verboseβ verbose error reporting. when something goes wrong, it tells you everything.--verbatimβ copy source metadata nearly verbatim. copy-paste energy but make it metadata.--no-reorderingβ never reorder slices, rows, or columns. hands off, it stays exactly as-is π--axialβ produce axial slices.--coronalβ produce coronal slices.--sagittalβ produce sagittal slices.--series-descriptionβ textual description of the series.--series-numberβ the series number to use.--modalityβ the modality:MRorCTorSC.--uid-prefixβ a DICOM uid prefix (optional).--versionβ print the version and exit. bye π--helpβ documentation forniftitodicom.
this program will convert a NIfTI file into a DICOM series, and honestly? iconic behavior β¨
it reads the NIfTI file header and does the best job that it can to generate a series of DICOM files. to help it along, you can hand it a DICOM file from the same series on the command line after the NIfTI file β or, even better, list all of the DICOM files that were used as the source of the data in the NIfTI file π«Ά study-related meta data gets copied from those DICOM files straight into the output DICOM files. it's giving "recycling but make it radiology."
unless the --no-reordering option is provided, it will ensure that the images are in the usual orientation (right is left, posterior is down) by reordering the columns or rows as compared to the NIFTI file π
listen closely because this part is important π if the NIFTI file is floating-point, then the data might be rescaled when written to DICOM as 16-bit integers. if any data values are too large to fit into 16 bits, then all the data will be scaled down. and if the data values all have a magnitude smaller than2.05, then all the data will be scaled up by a factor of1000. yes, all of it. the whole thing. periodt. π
π AUTHOR π
this manual page was written by Mathieu Malaterre <malat@debian.org> for the Debian GNU/Linux system, but may be used by others. a legend, truly π«‘
and that's the whole vibe bestie!! go forth and convert ur NIfTI to DICOM, u got this ππ¦
niftitodicom 0.8.17 β August 2026 β mwah, signing off π β¨π
π¦ where this page comes from
- ubuntu stonking: vtk-dicom-tools 0.8.17-3build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms