在VC中解析DICOM文件++

发布于 2024-08-05 03:46:19 字数 43 浏览 3 评论 0 原文

如何在 VC++ 中解析 DICOM 文件?如何编辑 DICOM 标签?

How can I parse DICOM files in VC++? How to edit the DICOM tags?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

不疑不惑不回忆 2024-08-12 03:46:19

如果可能,最好使用一些已经存在的库,例如 MergeCom(非免费)或 DCMTK。它们处理各种条件,例如显式 VR、隐式 VR、嵌套序列项的解析等。请查看有关 dicom 文件基本结构的链接:DICOM 单一文件格式简介

要编辑 DICOM 文件,请记住您可能还更新了组长度标签。此外,如果您想验证编辑后的值,这将非常棘手,因为有如此多的 VR,并且不同的 IOD 具有不同的强制和可选标签。所以我再次建议如果可能的话使用现有的库。

If possible, it is better to use some already existing libraries such as MergeCom (not free) or DCMTK. They handle all kinds of conditions such explicit VR, implicit VR, parsing of nested sequence items etc. Take a look at this link regarding the basic structure of a dicom file: Introduction DICOM single file format.

For editing the DICOM file, remember that you might have update the group length tag also. Also, its going to be quite tricky if you want to validate the edited value as there are so many VRs and different IODs have different mandatory and optional tags. So I suggest again to use the existing libraries if possible.

李白 2024-08-12 03:46:19

您是否正在寻找可以为您做这件事的图书馆?或者你想自己写一个?如果您想要第一个,请尝试DCMTK

Are you looking for any library that would do it for you? Or you want to write your own? Try DCMTK if you want the first.

苦笑流年记忆 2024-08-12 03:46:19

尝试一下 GDCM,它甚至是用 C# 封装的。它使用CMake,因此Visual Studio文件的生成很容易。

参考:
http://gdcm.sf.net

Try GDCM, it is even wrapped in C#. It uses CMake, so generation of Visual Studio file is easy.

Ref:
http://gdcm.sf.net

凯凯我们等你回来 2024-08-12 03:46:19

正如其他人建议的那样,有许多可用的第三方库。虽然很多都是付费的,但没有人会阻止你使用试用版:)

  1. MergeCom(C 版本,Java 版本)Windows/Linux,这是最好的一个,你将获得大量示例和库来学习。< /p>

    http://www.mergecom3.com/

  2. DCMTK

    http://dicom.offis.de/dcmtk

  3. DVTK

    http://www.dvtk.org/

  4. Imebra

    http://imebra.com/

  5. GDCM

    http://gdcm.sourceforge.net/wiki/index.php/Main_Page

还有很多,需要的是你开始工作:)

As other people suggested there are many 3rd party library available. Although many are paid but nobody will stop you from using trial versions :)

  1. MergeCom (C version, Java Version) Windows/Linux, This is the best one , You will get a lots of sample along with library to learn.

    http://www.mergecom3.com/

  2. DCMTK

    http://dicom.offis.de/dcmtk

  3. DVTK

    http://www.dvtk.org/

  4. Imebra

    http://imebra.com/

  5. GDCM

    http://gdcm.sourceforge.net/wiki/index.php/Main_Page

There are a lot more, needed is you start work on one :)

自由如风 2024-08-12 03:46:19

正如之前发布的< /a>,有很多免费的图书馆很乐意为您做这件事。

As posted before, there are many free libraries who would gladly do it for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文