📜  python 打开 dicom 文件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:29.844000             🧑  作者: Mango

代码示例1
import pydicom as dicom
import matplotlib.pylab as plt

# specify your image path
image_path = 'data/train_images/sample.dcm'
ds = dicom.dcmread(image_path)

plt.imshow(ds.pixel_array)