help > When converting Dicom-Nifti, how to export the converted nifti files to another folder?
Showing 1-2 of 2 posts
Display:
Results per page:
Aug 30, 2023  09:08 PM | mengdizhu
When converting Dicom-Nifti, how to export the converted nifti files to another folder?

Hi, 


 


I am new to this software, I wonder when converting Dicom-Nifti, how do I export the converted fnifti iles to another folder? Because right now, the converted nifti file is exported to the same folder with original Dicom file. Thank you so much!


MZ

Aug 30, 2023  10:08 PM | Chris Rorden
RE: When converting Dicom-Nifti, how to export the converted nifti files to another folder?

You can use the "Output Directory" button in the graphical interface to select an output folder.


Alternatively, you can run the core dcm2niix conversion tool from the command line and specify the output directory:


 dcm2niix -o /output/path /path/to/DICOMs


It is often useful to specify your output filename:


  https://github.com/rordenlab/dcm2niix/bl...


so to specify the series number (%s) and protocol name (%p) you could call


 dcm2niix -f %s_%p -o /output/path /path/to/DICOMs