我正在使用pydicom
,我的代码非常简单:
image = np.stack([s.pixel_array for s in scans])
但这会导致运行时错误:
RuntimeError: The following handlers are available to decode the pixel data however they are missing required dependencies: GDCM (req. GDCM), Pillow (req. Pillow)
我不确定该怎么办。任何帮助都将..乐于助人。