美文网首页
dicomtag读取

dicomtag读取

作者: snowpigppp | 来源:发表于2019-08-08 15:03 被阅读0次
import pydicom as dicom
import os 

dir = '.'

for file in os.listdir(dir):
    if 'dcm' in file:
        filename = os.path.join(dir,file)
        Tag = dicom.read_file(filename)
        part = Tag.BodyPartExamined
        print(file + ': ' +part) 

相关文章

网友评论

      本文标题:dicomtag读取

      本文链接:https://www.haomeiwen.com/subject/okyxjctx.html