This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from wand.image import Image | |
from wand.display import display | |
in_file = 'some_dicom_file.dcm' | |
with Image(filename=in_file) as img: | |
# show metadata for DICOM, such as dates, patient info, resolution, etc. | |
for k, v in img.metadata.items(): | |
print(k,v) | |
# display the image | |
display(img) | |