使用Dcmtk从头开始创建DicomImage [英] Create DicomImage from scratch using Dcmtk

查看:169
本文介绍了使用Dcmtk从头开始创建DicomImage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了保存CT数据,我想从头开始创建 DicomImage ,可以使用 DRTImageIOD 。但是, 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)

推荐答案

正如您在文档中可以看到的那样, DicomImage 类是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快照,因此您可能需要查看 dcmiod 模块,该模块提供了比 dcmdata

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆