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: MR or CT or SC.
  • --uid-prefix β€” a DICOM uid prefix (optional).
  • --version β€” print the version and exit. bye πŸ‘‹
  • --help β€” documentation for niftitodicom.

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 than 2.05, then all the data will be scaled up by a factor of 1000. 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