iam尝试将像素数据转换为像素阵列时,iam收到错误提示:
RuntimeError:以下处理程序可用于解码像素数据,但是缺少必需的依赖项:GDCM(要求GDCM)
import pydicom
import pydicom.pixel_data_handlers.gdcm_handler as gdcm_handler
pydicom.config.image_handlers = [None,gdcm_handler]
ds=pydicom.dcmread("image.dcm")
data = ds.pixel_array
print(data)