#include <vtkStringArray.h>
#include <creaImageIOGimmick.h>
-
+#include "gdcmUIDs.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
im = 0;
}
return im;
+ //gdcm::Tag grouplength(0x0000,0x0000);
+ //gdcm::DataElement de(gdcm::Tag(0x0000, 0x0000));
+ //de.SetByteValue("0",gdcm::VR::UL);
+ //
+ //
+ //gdcm::UIDs::GetUIDString(gdcm::UIDS::uid_1_2_840_10008_1_1),gdcm::VR::UI);
+
+ //std::ostream os;
+ //de.Write(&os);
+
}
//=====================================================================
void DicomImageReader::getAttributes(const std::string filename,
- std::map <std::string , std::string> &infos,std::vector<std::string> i_attr)
+ std::map <std::string , std::string> &infos, std::vector<std::string> i_attr)
{
gdcm::Reader reader;
reader.SetFileName( filename.c_str() );
}
}
}
-
}
+
//=====================================================================
void DicomImageReader::ReadAttributes(const std::string& filename,
std::map<std::string,std::string>& attr)
{
uint16_t el;
uint16_t gr;
+ {
+ gdcm::Attribute< 0x0008,0x103e> at;
+ std::string sr;
+ at.SetValue(sr);
+
+ }
tree::AttributeDescriptor::GetDicomGroupElementFromKey(i->first,gr,el);
//if ( ( gr!=0 ) && ( el!=0 ) )
const gdcm::Tag tag(gr, el);