问题标签 [gdcm]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 使用 GDCM 将 16 位图像写入 DICOM 文件格式
我已经使用库成功地将8 位图像编写为 DICOM 文件GDCM
。现在我正在尝试将16 位图像写入 DICOM 文件。这是我的代码。谁能指出我缺少什么或应该做什么。
c++ - 在 C++ 中的 gdcm 中将 dicom 标签转换为其字符串名称
给定一个 gdcm 标记,例如gdcm::Tag(0x0010,0x0010)
如何将其转换为相应的标记名称字符串,在这种情况下"PatientsName"
是 C++?
c++ - 如何从 gdcm::Tag 访问“组、元素”字符串
我希望从 DICOM 图像文件中提取所有顶级标签,并使用 C++ 将它们输出到文件中。我想输出标签字符串,例如“0020,000D”、标签的值和描述。我可以使用以下代码获取后两个,但如何获取标签字符串?我似乎找不到任何明显的功能。
谢谢你的帮助。保罗
c# - 无法使用 GDCM 库创建 DICOMDIR 文件
我正在使用GDCM库创建一个 DICOMDIR 文件。我实现了GDCM文档中所示的代码:
http://gdcm.sourceforge.net/html/GenerateDICOMDIR_8cs-example.html
在代码中:
该函数返回但不生成DICOMDIR文件。我已经添加了跟踪调试,但仍然无法调试或获取任何输出消息。
有没有办法为一堆 DICOM 文件生成 DICOMDIR 文件?
python - Using gdcm (Grassroots DICOM) to Decompress DICOM Image Data
Is it possible to use the Python wrappers for GDCM to decode the image data in a DICOM file?
I have a byte array
/ string
with the bytes
of the image data in a DICOM file (i.e. the contents of tag 7fe0,0010
("Pixel Data")) and I want to decode the image to something raw RGB or greyscale.
I am thinking of something along the lines of this but working with just the image data and not a path to the actual DICOM file itself.
swig - 使用 gdcm (Grassroots DICOM) 的 Python 包装器打开类文件对象
有什么方法可以传递gdcm.ImageReader
类似文件的对象,而不必传递fileName
?
目前我使用以下方法加载 DICOM 文件:
但我看到image_reader
还有一个SetFile
接受gdcm::File
对象的方法。
还有一个StreamImageReader
which has SetStream(std::istream &inStream)
,但我不知道如何inStream
在 Python 中创建一个可接受的对象。
理想情况下,我将能够使用来自open
call 或StringIO
or的结果BytesIO
。
c# - The type initializer for 'gdcm.gdcmPINVOKE' threw an exception
first time for using gdcm in c# has an exception in the first line. please, any help
the error is: The type initializer for 'gdcm.gdcmPINVOKE' threw an exception
innerException is: {"The type initializer for 'SWIGExceptionHelper' threw an exception."}
linux - 在 debian linux 中安装 octave forge dicom 包期间无法识别依赖库
我在这个堆栈交换上问这个问题,因为它(到目前为止)有关于八度的最多的帖子。
我开始使用 linux 环境,想在工作中使用 octave,dicom 包是必不可少的(我的数据是 dicom 格式,由于它的高维度,不容易转换为 nifti,它需要很多很多单独的文件)。
dicom 包依赖于我安装的gdcm库。安装 dicom 包时出现此错误:
致命错误:gdcm-2.0/gdcmReader.h:没有这样的文件
当前的 gdcm 版本比 2.0 新,所以我想也许我应该使用旧版本,但错误仍然存在。即使是较旧的功能也没有安装到该路径。我认为 dicom 包不看它应该使用哪个路径。
也许这是一个错误,因为路径是硬编码的(如类似的 OSx 线程中所建议的那样)也许发生这种情况是因为最后一个版本是从 2011 年开始的,并且该软件包不再维护,而 gdcm 不断获得更新。也许我只是在做一些我没有看到的可怕错误。
gcc - 编译 gdcm 时添加符号时出错
我想从 EOS 0.3/Ubuntu 14.04 上的源代码编译 gdcm,并添加 python 支持。因此我安装了 swig,然后运行 ccmake(用于配置 make 文件)和 make。不幸的是我得到了错误:
我该如何解决?
c++ - DICOM C_MOVE 与 gdcm 的“CompositeNetworkFunctions”
我正在尝试使用 gdcm 的CompositeNetworkFunctions从服务器获取 DICOMS 。我的测试服务器是使用“Orthanc”设置的。
当我运行移动请求时,我得到:
什么():/home/myname/Builds/GDCM/Source/Source/Common/gdcmException.h:74():
当我捕捉到那个异常时,我发现它是一个“未处理的异常”,没有更多信息。所以我没有抓住它,而是使用 gdb 运行程序。这是我得到的:
这是我的代码:
mQueryLevel 是 gdcm::eSeries
有趣的是,通过编写的查询文件“MoveQuery.dcm”,我可以使用movescu很好地下载该文件:
我试过了:
- AET 和 CALL 的不同值
- 相对路径和绝对路径
- 不同的端口(虽然不应该是这样 - 毕竟我的 movecu 调用使用相同的端口!)
- mQuery 目前是 gdcm::MovePatientRootQuery 类型,但我尝试过 MoveStudyRootQuery、FindPatientRootQuery、FindStudyRootQuery
- 跟随堆栈跟踪深入研究 GDCM 代码 - 但我对发生的事情还不够了解
- 将“PatientID”的值也添加到查询中,或仅提供“SeriesUID”(结果相同)
将 PatientID 也添加到查询中,以下是 MoveQuery.dcm 的内容: