dicom2nifti.settings module

dicom2nifti.settings.disable_pydicom_read_force()[source]

Enable the pydicom read force to try to read non conform dicom data

dicom2nifti.settings.disable_resampling()[source]

Disable resampling in case of gantry tilted data (disabled by default)

dicom2nifti.settings.disable_validate_multiframe_implicit()[source]

Disable the validation that checks that data is not multiframe implicit This allows to sometimes convert Philips Multiframe with implicit transfer syntax

dicom2nifti.settings.disable_validate_orientation()[source]

Disable the validation of the slice orientation. This validation checks that all slices have the same orientation (are parallel). USE WITH CAUTION!

dicom2nifti.settings.disable_validate_orthogonal()[source]

Disable the validation whether the volume is orthogonal (so without gantry tilting or alike). This allows for converting gantry tilted data. The gantry tilting will be reflected in the affine matrix and not in the data USE WITH CAUTION!

dicom2nifti.settings.disable_validate_slicecount()[source]

Disable the validation of the minimal slice count of 4 slices. This allows for converting data with less slices. Usually less than 4 could be considered localizer or similar thus ignoring these scans by default USE WITH CAUTION!

dicom2nifti.settings.disable_validate_sliceincrement()[source]

Disable the validation of the slice increment. This allows for converting data where the slice increment is not consistent. USE WITH CAUTION!

dicom2nifti.settings.enable_pydicom_read_force()[source]

Enable the pydicom read force to try to read non conform dicom data

dicom2nifti.settings.enable_resampling()[source]

Enable resampling in case of gantry tilted data (disabled by default)

dicom2nifti.settings.enable_validate_multiframe_implicit()[source]

Enable the validation that checks that data is not multiframe implicit again (DEFAULT ENABLED)

dicom2nifti.settings.enable_validate_orientation()[source]

Enable the slice orientation validation again (DEFAULT ENABLED)

dicom2nifti.settings.enable_validate_orthogonal()[source]

Enable the validation whether the volume is orthogonal again (DEFAULT ENABLED)

dicom2nifti.settings.enable_validate_slicecount()[source]

Enable the validation of the minimal slice count of 4 slices again (DEFAULT ENABLED)

dicom2nifti.settings.enable_validate_sliceincrement()[source]

Enable the slice increment validation again (DEFAULT ENABLED)

dicom2nifti.settings.set_gdcmconv_path(path)[source]

Set where the filepath to the gdcmconv executable (needed is it is not found in your PATH)

Parameters:path – the file path to the gdcmconv executable
dicom2nifti.settings.set_resample_padding(padding)[source]

Set the spline interpolation padding

dicom2nifti.settings.set_resample_spline_interpolation_order(order)[source]

Set the spline interpolation order used during resampling of gantry tilted data