Create DicomImage from scratch using Dcmtk

二次信任 提交于 2019-12-11 01:28:44

问题


In order to save CT data I would like to create a DicomImage from scratch, similar like this can be done using DRTImageIOD. However, DicomImage does not have a default constructor. From the documentation it looks like the constructor can only load existing data. Is it possible to use DicomImage directly, or is going low-level through DcmFileFormat the only viable approach? (I am using Dcmtk 3.6.1)


回答1:


As you can read in the documentation, the purpose of the DicomImage class is visualization (i.e. rendering) of DICOM images, not creating CT image objects (or instances of any other DICOM image IOD).

Since you are using the latest (?) DCMTK snapshot, you might want to have a look at the dcmiod module, which provides a higher-level API than dcmdata.



来源:https://stackoverflow.com/questions/36645977/create-dicomimage-from-scratch-using-dcmtk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!