SimpleITK读取并显示单张dcm文件

import SimpleITK as sitk
import numpy as np
import matplotlib.pyplot as plt
image = sitk.ReadImage(r"D:\Data\LIDC-IDRI\DOI\LIDC-IDRI-0162\1.3.6.1.4.1.14519.5.2.1.6279.6001.100063870746088919758706456900\1.3.6.1.4.1.14519.5.2.1.6279.6001.837810280808122125183730411210\000128.dcm")
image_array = np.squeeze(sitk.GetArrayFromImage(image)) 
plt.imshow(image_array)
plt.show()

 

你可能感兴趣的:(SimpleITK读取并显示单张dcm文件)