问题描述
为了保存CT数据,我想从头开始创建 DicomImage
,可以使用 DRTImageIOD $ c完成类似的操作$ c>。但是,
DicomImage
没有默认的构造函数。从文档看来,构造函数只能加载现有数据。是否可以直接使用 DicomImage
,还是通过 DcmFileFormat
进行低级处理的唯一可行方法? (我正在使用Dcmtk 3.6.1)
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)
推荐答案
正如您在文档中可以看到的那样,类是DICOM图像的可视化(即渲染),而不是创建CT图像对象(或任何其他DICOM图像IOD)。
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).
由于您使用的是最新的(?)DCMTK快照,因此您可能需要查看模块,该模块提供了比。
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.
这篇关于使用Dcmtk从头开始创建DicomImage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!