36 ,m_TagForValue(tagToValueMapping)
49 const auto mappedValue = m_TagForValue.find( gdcm::Tag(tag.
GetGroup(), tag.
GetElement()) );
52 if (mappedValue != m_TagForValue.cend())
56 if (mappedValue->second !=
nullptr)
58 std::string s(mappedValue->second);
61 result.
value = s.erase(s.find_last_not_of(
" \n\r\t")+1);
78 if (tag == tagImagePositionPatient)
81 result.
value = std::string(
"0\\0\\0");
83 else if (tag == tagImageOrientation)
86 result.
value = std::string(
"1\\0\\0\\0\\1\\0");
112 return this->Filename;
virtual ~DICOMGDCMImageFrameInfo()
itk::SmartPointer< Self > Pointer
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
Representation of a DICOM tag.
unsigned int GetGroup() const
virtual DICOMDatasetFinding GetTagValueAsString(const DICOMTag &) const override
Return a DICOMDatasetFinding instance of the tag. The return containes (if valid) the raw value of th...
std::list< DICOMDatasetFinding > FindingsListType
PathIndexType Size() const
static const std::string filename
Defines an abstract base class for DICOM image frame infos with data access.
unsigned int GetElement() const
std::string GetFilenameIfAvailable() const override
Return a filename if possible. If DICOM is not read from file but from somewhere else (network...
NodeInfo & GetFirstNode()
DICOMGDCMImageFrameInfo(const DICOMImageFrameInfo::Pointer &frameinfo)