DICOM文件不仅包含了图像本身的信息,同时还携带了大量的医疗相关信息。通过简要分析DICOM文件的格式,分别介绍了基于VTK和ITK工具包提供的类和函数读取DICOM文件(包括图像的显示和信息的提取)的两种方法。采用这两种方法,不必对DICOM标准和图像格式进行深入的了解,即可获得DICOM文件头中的医疗信息并显示图像,实现方法简单易行。
The DICOM flies include not only the image data but also the medical information in the file header. So reading a DICOM file means both to display the image and to obtain the information. There are two methods of reading DICOM files introduced in this article. One is based on VTK library, and the other is based on both VTK and ITK libraries. Using these two methods, we can read the DICOM files successfully without going deep into the DICOM criterion and file format.