52 if (mappedValue->second !=
nullptr)
54 std::string s(mappedValue->second);
57 result.
value = s.erase(s.find_last_not_of(
" \n\r\t")+1);
74 if (tag == tagImagePositionPatient)
77 result.
value = std::string(
"0\\0\\0");
79 else if (tag == tagImageOrientation)
82 result.
value = std::string(
"1\\0\\0\\0\\1\\0");
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
unsigned int GetElement() const
const unsigned int FrameNo
frame number, starting with 0
Representation of a DICOM tag.
const gdcm::Scanner::TagToValue m_TagForValue
~DICOMGDCMImageFrameInfo() override
DICOMDatasetFinding GetTagValueAsString(const DICOMTag &) const override
Return a DICOMDatasetFinding instance of the tag. The return containes (if valid) the raw value of th...
PathIndexType Size() const
std::list< DICOMDatasetFinding > FindingsListType
const std::string Filename
absolute filename
Defines an abstract base class for DICOM image frame infos with data access.
std::string GetFilenameIfAvailable() const override
Return a filename if possible. If DICOM is not read from file but from somewhere else (network...
unsigned int GetGroup() const
NodeInfo & GetFirstNode()
DICOMGDCMImageFrameInfo(const DICOMImageFrameInfo::Pointer &frameinfo)