GDCM:遍历模块的测试程序 C/C++

171 篇文章 ¥59.90 ¥99.00
这是一个使用C/C++编写的GDCM库示例,用于测试遍历DICOM文件中的元素。程序读取指定的DICOM文件,通过迭代器获取并打印每个元素的标签和值,展示了GDCM库的基本用法。

GDCM:遍历模块的测试程序 C/C++

以下是一个用于测试GDCM(Grassroots DICOM)库中遍历模块的示例程序,该程序使用C/C++编写。GDCM是一个用于处理医学图像和通信的开源库,它支持DICOM(医学数字成像和通信)标准。

#include <iostream>
#include <gdcm/gdcmReader.h>
#include <gdcm/gdcmGlobal.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
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值