验证DICOM文件 [英] Validating DICOM File

查看:93
本文介绍了验证DICOM文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须从文件夹中选择所有有效的DICOM文件。我可以从文件夹中递归选择所有扩展名为* .DCM的文件。但是任何带有* .DCM的文件也会被拾取,并且该文件不是有效的DICOM文件。

I have to pick all valid DICOM Files from folder. I can recursively pick all the files from the folder which have *.DCM extension. But any file with *.DCM also picked up and such file is not valid DICOM File.

什么是最好的方法。

我想到了读取文件的几个字节并进行验证。

I thought of reading few byte of the file and validating.

任何其他方法或我们验证的任何其他EXE。

Any Other Method or any other EXEs we have which validates.

谢谢你,
Harsha

Thank you, Harsha

编辑:问题的解决方案:
我最终使用dcmftest.exe进行了验证。希望我走上正轨。
-Harsha

Solution for the problem: I finally used the dcmftest.exe for verification. Hope I am on right track. -Harsha

推荐答案

考虑到不同的强制性标签和可选标签,验证DICOM文件并非易事IOD。我认为最好使用现有的解决方案。您可以查看DCMTK中的 DCMCHECK

Validating a DICOM file is not as easy task considering the different mandatory and optional tags present in different IODs. I think it is better to use an existing solution to do this. You can take a look at DCMCHECK from DCMTK to do this.

这篇关于验证DICOM文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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