Hive_convert_DICOM_dataset_to_NIFTI_dataset script#

Script to convert a DICOM dataset (structured as Patient-Study-Series) into a NIFTI format (with the Patient ID as the folder name). When multiple studies for the same patient are found, different DICOM studies are saved in different folders, appending the study index to the patient name. DICOM series for the same study are saved in the same patient folder.

usage: Hive_convert_DICOM_dataset_to_NIFTI_dataset [-h] --data-folder
                                                   DATA_FOLDER --output-folder
                                                   OUTPUT_FOLDER
                                                   [--n-workers N_WORKERS]
                                                   [-v | -q]

Named Arguments#

--data-folder

DICOM Dataset folder.

--output-folder

Output folder where to save the converted NIFTI dataset.

--n-workers

Number of worker threads to use. (Default: 1)

Default: 1

-v, --verbose

Enable verbose output in terminal. Add multiple times to increase verbosity.

-q, --silent

Suppress most log outputs in terminal.

Example call:

Hive_convert_DICOM_dataset_to_NIFTI_dataset  --data-folder /PATH/TO/DICOM_DATA --output-folder /PATH/TO/NIFTI_DATASET