Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkDICOMGDCMImageFrameInfo.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkDICOMGDCMImageFrameInfo_h
14 #define mitkDICOMGDCMImageFrameInfo_h
15 
17 
18 #include "gdcmScanner.h"
19 
20 namespace mitk
21 {
31  {
32  public:
33 
35  itkFactorylessNewMacro( DICOMGDCMImageFrameInfo );
37  mitkNewMacro2Param( DICOMGDCMImageFrameInfo, const std::string&, unsigned int );
38  mitkNewMacro1Param( DICOMGDCMImageFrameInfo, const DICOMImageFrameInfo::Pointer& );
39  mitkNewMacro2Param( DICOMGDCMImageFrameInfo, const DICOMImageFrameInfo::Pointer&, gdcm::Scanner::TagToValue const&);
40 
42 
44 
45  FindingsListType GetTagValueAsString(const DICOMTagPath& path) const override;
46 
47  std::string GetFilenameIfAvailable() const override;
48 
49  protected:
50  explicit DICOMGDCMImageFrameInfo(const DICOMImageFrameInfo::Pointer& frameinfo);
51  DICOMGDCMImageFrameInfo(const DICOMImageFrameInfo::Pointer& frameinfo, gdcm::Scanner::TagToValue const& tagToValueMapping);
52  DICOMGDCMImageFrameInfo(const std::string& filename = "", unsigned int frameNo = 0);
53 
54  const gdcm::Scanner::TagToValue m_TagForValue;
55  };
56 
57  typedef std::vector<DICOMGDCMImageFrameInfo::Pointer> DICOMGDCMImageFrameList;
58 }
59 
60 #endif
#define MITKDICOM_EXPORT
std::list< DICOMDatasetFinding > FindingsListType
Defines an abstract base class for DICOM image frame infos with data access.
The dataset access implementation for DICOMITKSeriesGDCMReader, based on GDCM.
mitkNewMacro2Param(DICOMGDCMImageFrameInfo, const DICOMImageFrameInfo::Pointer &, gdcm::Scanner::TagToValue const &)
mitkNewMacro1Param(DICOMGDCMImageFrameInfo, const std::string &)
mitkNewMacro1Param(DICOMGDCMImageFrameInfo, const DICOMImageFrameInfo::Pointer &)
DICOMGDCMImageFrameInfo(const std::string &filename="", unsigned int frameNo=0)
mitkClassMacro(DICOMGDCMImageFrameInfo, DICOMDatasetAccessingImageFrameInfo)
DICOMGDCMImageFrameInfo(const DICOMImageFrameInfo::Pointer &frameinfo)
std::string GetFilenameIfAvailable() const override
Return a filename if possible. If DICOM is not read from file but from somewhere else (network,...
DICOMGDCMImageFrameInfo(const DICOMImageFrameInfo::Pointer &frameinfo, gdcm::Scanner::TagToValue const &tagToValueMapping)
mitkNewMacro2Param(DICOMGDCMImageFrameInfo, const std::string &, unsigned int)
DICOMDatasetFinding GetTagValueAsString(const DICOMTag &) const override
Return a DICOMDatasetFinding instance of the tag. The return contains (if valid) the raw value of the...
FindingsListType GetTagValueAsString(const DICOMTagPath &path) const override
Return a list of DICOMDatasetFindings of the passed tag path. The return contains (if valid) the raw ...
const gdcm::Scanner::TagToValue m_TagForValue
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag,...
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:33
Find image slices visible on a given plane.
std::vector< DICOMGDCMImageFrameInfo::Pointer > DICOMGDCMImageFrameList