Medical Imaging Interaction Toolkit  2022.04.99-e36380da
Medical Imaging Interaction Toolkit
mitkLabelSetImageIO.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 __mitkLabelSetImageIO_h
14 #define __mitkLabelSetImageIO_h
15 
16 #include <mitkAbstractFileIO.h>
17 #include <mitkLabelSetImage.h>
18 
19 namespace mitk
20 {
26  // The export macro should be removed. Currently, the unit
27  // tests directly instantiate this class.
29  {
30  public:
32 
34 
35  // -------------- AbstractFileReader -------------
36 
38 
40 
41  // -------------- AbstractFileWriter -------------
42 
43  void Write() override;
45 
46  // -------------- LabelSetImageIO specific functions -------------
47 
48  int GetIntByKey(const itk::MetaDataDictionary &dic, const std::string &str);
49  std::string GetStringByKey(const itk::MetaDataDictionary &dic, const std::string &str);
50 
51  protected:
57  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
58 
59  // Fills the m_DefaultMetaDataKeys vector with default values
60  virtual void InitializeDefaultMetaDataKeys();
61 
62  private:
63  LabelSetImageIO *IOClone() const override;
64 
65  std::vector<std::string> m_DefaultMetaDataKeys;
66  };
67 } // end of namespace mitk
68 
69 #endif // __mitkLabelSetImageIO_h
mitk::LabelSetImageIO::GetStringByKey
std::string GetStringByKey(const itk::MetaDataDictionary &dic, const std::string &str)
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::LabelSetImageIO::GetReaderConfidenceLevel
ConfidenceLevel GetReaderConfidenceLevel() const override
mitk::LabelSetImageIO::Write
void Write() override
Write the base data to the specified location or output stream.
mitkAbstractFileIO.h
mitk::LabelSetImageIO::DoRead
std::vector< itk::SmartPointer< BaseData > > DoRead() override
Reads a number of mitk::LabelSetImages from the file system.
mitk::LabelSetImageIO::GetWriterConfidenceLevel
ConfidenceLevel GetWriterConfidenceLevel() const override
mitk::LabelSetImageIO::GetIntByKey
int GetIntByKey(const itk::MetaDataDictionary &dic, const std::string &str)
mitk::LabelSetImageIO::InitializeDefaultMetaDataKeys
virtual void InitializeDefaultMetaDataKeys()
mitk::LabelSetImageIO::LabelSetImageIO
LabelSetImageIO()
mitk::LabelSetImageIO
Definition: mitkLabelSetImageIO.h:28
mitk::IFileIO::ConfidenceLevel
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data.
Definition: mitkIFileIO.h:45
mitk::AbstractFileIO
Abstract class for implementing a reader and writer.
Definition: mitkAbstractFileIO.h:69
mitk::AbstractFileReader::Read
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
mitk::LabelSetImage
LabelSetImage class for handling labels and layers in a segmentation session.
Definition: mitkLabelSetImage.h:29
mitk::LabelSetImageIO::InputType
mitk::LabelSetImage InputType
Definition: mitkLabelSetImageIO.h:31
mitkLabelSetImage.h