Answers for "python script to convert dicom to niftii"

0

python script to convert dicom to niftii

from nipype.interfaces.dcm2nii import Dcm2niix
def convert_dcm_2_nii_x(dcm_folder, output_folder):    
  converter = Dcm2niix()    
  converter.inputs.source_dir = dcm_folder    
  converter.inputs.output_dir = output_folder    
  converter.inputs.compress = 'i'    
  converter.run()
Posted by: Guest on September-01-2021

Code answers related to "python script to convert dicom to niftii"

Python Answers by Framework

Browse Popular Code Answers by Language