读取全部标签dicom

  ds: Dataset = read_file(img)
    for element in ds:
        if element.tag != pydicom.dataelem.Tag(0x7FE0, 0x0010):
            tag = element.tag
            tag_name = element.name
            value = element.value
            print(f"Tag: {tag} ({tag_name}), Value: {value}")
posted @ 2024-09-11 18:21  vx_guanchaoguo0  阅读(5)  评论(0编辑  收藏  举报