1、运行image=pydicom.dcmread(path).pixel_array
时出现如下报错:InvalidDicomError: File is missing DICOM File Meta Information header or the ‘DICM’ prefix is missing from the header. Use force=True to force reading.这是由dicom文件中信息缺失造成的,修改代码如下:
image=pydicom.dcmread(path,force=True).pixel_array
图像处理——打开DICOM图像
最新推荐文章于 2024-04-01 01:04:12 发布