.
This commit is contained in:
+2
-1
@@ -156,7 +156,8 @@ def print_dicom(dataset, indent=0, include_tag_ids=True):
|
||||
|
||||
def get_image_dicom_hash(img, dataset=None, hash_type="md5", direct_pixel_data=True) -> (str, bool):
|
||||
if dataset is None:
|
||||
dataset = pydicom.dcmread(img)
|
||||
with pydicom.dcmread(img) as ds:
|
||||
dataset = ds
|
||||
|
||||
# TODO: improve?
|
||||
match hash_type:
|
||||
|
||||
Reference in New Issue
Block a user