使用python玩转dicom文件 |
您所在的位置:网站首页 › dicom格式转换视频格式是什么 › 使用python玩转dicom文件 |
从医院采集的超声数据因为时间跨度大、设备差异等原因比较乱,想着找找工具怎么把这些dicom格式的文件整理一下,于是瞄准了pydicom这一工具。中文资料也很鱼龙混杂,干脆自己去他们的官方文档直接学习。安装方式是很简单的在anaconda中pip install pydicom 参考资料:pydicom官方文档 版本:pydicom 2.0.0 pydicom入门 数据读取 信息获取 数据写入 使用matplotlib进行可视化 数据读取数据读取使用dmread() import pydicom fpath='us13.DCM' dcm=pydicom.dcmread(fpath)有时可能会出现以下报错 raise InvalidDicomError("File is missing DICOM File Meta Information " pydicom.errors.InvalidDicomError: File is missing DICOM File Meta Information header or the 'DICM' prefix is missing from the header. Use force=True to force reading. |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |