dicom2nifti.compressed_dicom module


This function can be used to convert a folder of jpeg compressed images to an uncompressed ones

Parameters:dicom_directory – directory of dicom files to compress

Util function to check if file is a dicom file the first 128 bytes are preamble the next 4 bytes should contain DICM otherwise it is not a dicom

Parameters:filename (six.string_types) – file to check for the DICM header block
Returns:True if it is a dicom file
dicom2nifti.compressed_dicom.read_file(dicom_file, defer_size=None, stop_before_pixels=False, force=False)[source]