Fix logic error resulting in all ultrasounds being classed as multi-frame
This commit is contained in:
parent
33e7a64135
commit
d24fbd0503
@ -41,7 +41,7 @@ def ev_files_to_dcm_file(study_uid, series_uid, series_number, image_number, inp
|
|||||||
file_meta = FileMetaDataset()
|
file_meta = FileMetaDataset()
|
||||||
|
|
||||||
if metadata['metadata']['modality'] == 'US':
|
if metadata['metadata']['modality'] == 'US':
|
||||||
if len(pixel_datas) == 0:
|
if len(pixel_datas) == 1:
|
||||||
file_meta.MediaStorageSOPClassUID = '1.2.840.10008.5.1.4.1.1.6.1' # Ultrasound Image Storage
|
file_meta.MediaStorageSOPClassUID = '1.2.840.10008.5.1.4.1.1.6.1' # Ultrasound Image Storage
|
||||||
else:
|
else:
|
||||||
file_meta.MediaStorageSOPClassUID = '1.2.840.10008.5.1.4.1.1.3.1' # Ultrasound Multi-frame Image Storage
|
file_meta.MediaStorageSOPClassUID = '1.2.840.10008.5.1.4.1.1.3.1' # Ultrasound Multi-frame Image Storage
|
||||||
|
Loading…
Reference in New Issue
Block a user