GDCM:编写一个用于测试PatientRootQuery的C/C++程序

254 篇文章 ¥59.90 ¥99.00
本文介绍了如何使用GDCM库编写一个C/C++程序来测试PatientRootQuery功能,查询DICOM存储中的患者信息。程序包括设置查询条件、执行查询和编译运行的步骤,并提供了相关代码示例。

GDCM:编写一个用于测试PatientRootQuery的C/C++程序

PatientRootQuery是GDCM(Grassroots DICOM)库中的一个功能,用于查询DICOM(Digital Imaging and Communications in Medicine)存储中的患者信息。在本文中,我们将编写一个C/C++程序来测试PatientRootQuery功能。下面是一个详细的步骤指南,包括源代码和解释。

步骤1:包含必要的头文件
为了使用GDCM库和PatientRootQuery功能,我们需要包含相关的头文件。以下是包含必要头文件的示例代码:

#include "gdcmReader.h"
#include "gdcmAttribute.h"
/usr/bin/ld: CMakeFiles/gdcmMSFF.dir/gdcmJPEGLSCodec.cxx.o: in function `gdcm::JPEGLSCodec::GetHeaderInfo(std::istream&, gdcm::TransferSyntax&)': gdcmJPEGLSCodec.cxx:(.text+0x1e0): undefined reference to `JpegLsReadHeader' /usr/bin/ld: CMakeFiles/gdcmMSFF.dir/gdcmJPEGLSCodec.cxx.o: in function `gdcm::JPEGLSCodec::DecodeByStreamsCommon(char const*, unsigned long, std::vector<unsigned char, std::allocator<unsigned char> >&)': gdcmJPEGLSCodec.cxx:(.text+0x495): undefined reference to `JpegLsReadHeader' /usr/bin/ld: gdcmJPEGLSCodec.cxx:(.text+0x539): undefined reference to `JpegLsDecode' /usr/bin/ld: CMakeFiles/gdcmMSFF.dir/gdcmJPEGLSCodec.cxx.o: in function `gdcm::JPEGLSCodec::Decode(gdcm::DataElement const&, gdcm::DataElement&)': gdcmJPEGLSCodec.cxx:(.text+0x8ce): undefined reference to `JpegLsReadHeader' /usr/bin/ld: gdcmJPEGLSCodec.cxx:(.text+0x993): undefined reference to `JpegLsDecode' /usr/bin/ld: CMakeFiles/gdcmMSFF.dir/gdcmJPEGLSCodec.cxx.o: in function `gdcm::JPEGLSCodec::CodeFrameIntoBuffer(char*, unsigned long, unsigned long&, char const*, unsigned long)': gdcmJPEGLSCodec.cxx:(.text+0xcd3): undefined reference to `JpegLsEncode' collect2: error: ld returned 1 exit status gmake[2]: *** [Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/build.make:1775: bin/libgdcmMSFF.so.3.0.24] Error 1 gmake[2]: Leaving directory '/tmp/tmp/build-gdcm-3.0.24' gmake[1]: *** [CMakeFiles/Makefile2:827: Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/all] Error 2 gmake[1]: Leaving directory '/tmp/tmp/build-gdcm-3.0.24' gmake: *** [Makefile:159: all] Error 2
11-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值