Reading and writing medical image files with DICOM format based on ITK
Yang Zhaohu · Beijing shengwu yixue gongcheng · 2014
Objective To promote the use of ITK in the field of medical image processing in China,this paper introduces the methods of reading DICOM file's header information,accessing pixel data and DICOM file storage.Methods This paper uses class irk::ImageFileReader and irk::GDCMImageIO to obtain header information of medical image,and introduces methods of visiting pixel data by using image iterator and quick C language function,and the method of DICOM file writing with class itk::ImageFileWriter.Results The methods introduced in this paper can obtain medical information from DICOM file header,read pixel data,and store medical image information into DICOM file format.Conclusions By using ITK methods introduced in this paper,we can read and write the DICOM files conveniently without going deep into the DICOM criterion and file format.