GDCM:实现显示GDCM Dict
要显示GDCM的字典(Dictionary),您可以使用GDCM提供的gdcm::Global类。以下是一个示例代码,用于显示GDCM字典的内容:
#include <iostream>
#include "gdcmGlobal.h"
#include "gdcmDict.h"
#include "gdcmDictEntry.h"
int main()
{
gdcm::Global &g = gdcm::Global::GetInstance();
const gdcm::Dict &dict = g.GetDict();
std::cout << "GDCM Dictionary:" << std::endl;
gdcm::Dict::ConstIterator it = dict.Begin();
for (; it != dict.End(); ++it)
{
const gdcm::DictEntry &entry = *it;
std::cout << " Tag: " << entry.GetTag() << std::endl;
std::cout << " Name: " << entry.GetName() << std::endl;
std::cout << " VR: " << entry.GetVR() << std::endl;
std::cout << " VM: "
标签:Global,源码,Dict,gdcm,GDCM,include,字典
From: https://blog.csdn.net/it_xiangqiang/article/details/136665208