35 if( m_HeaderInformationList.size() < 1 )
37 MITK_WARN <<
"No information retrieved yet. Call AnalyzeInputFiles first!";
40 return m_HeaderInformationList;
45 if( dataset.FindDataElement( tag ) )
47 MITK_DEBUG <<
"Found tag " << tag.PrintAsPipeSeparatedString();
49 const gdcm::DataElement& de = dataset.GetDataElement( tag );
50 target = std::string( de.GetByteValue()->GetPointer(),
51 de.GetByteValue()->GetLength() );
57 MITK_DEBUG <<
"Could not find tag " << tag.PrintAsPipeSeparatedString();
64 if( dataset.FindDataElement( tag ) )
66 MITK_DEBUG <<
"Found tag " << tag.PrintAsPipeSeparatedString();
68 const gdcm::DataElement& de = dataset.GetDataElement( tag );
70 size_t bytesize = de.GetValue().GetLength();
72 memcpy( target_array, de.GetByteValue()->GetPointer(), bytesize);
79 MITK_DEBUG <<
"Could not find tag " << tag.PrintAsPipeSeparatedString();
bool RevealBinaryTag(const gdcm::Tag tag, const gdcm::DataSet &dataset, std::string &target)
Retrieve the value of a gdcm tag to the given string.
bool RevealBinaryTagC(const gdcm::Tag tag, const gdcm::DataSet &dataset, char *target_array)