Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 {
25  // The export macro should be removed. Currently, the unit
26  // tests directly instantiate this class.
28  {
29  public:
31 
33 
34  // -------------- AbstractFileReader -------------
35 
42  std::vector<BaseData::Pointer> Read() override;
44 
45  // -------------- AbstractFileWriter -------------
46 
47  void Write() override;
49 
50  // -------------- LabelSetImageIO specific functions -------------
51 
52  int GetIntByKey(const itk::MetaDataDictionary &dic, const std::string &str);
53  std::string GetStringByKey(const itk::MetaDataDictionary &dic, const std::string &str);
54 
55  private:
56  LabelSetImageIO *IOClone() const override;
57  };
58 } // end of namespace mitk
59 
60 #endif // __mitkLabelSetImageIO_h
mitk::LabelSetImage InputType
int GetIntByKey(const itk::MetaDataDictionary &dic, const std::string &str)
std::string GetStringByKey(const itk::MetaDataDictionary &dic, const std::string &str)
DataCollection - Class to facilitate loading/accessing structured data.
void Write() override
Write the base data to the specified location or output stream.
std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
ConfidenceLevel GetReaderConfidenceLevel() const override
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
Definition: mitkIFileIO.h:45
ConfidenceLevel GetWriterConfidenceLevel() const override
LabelSetImage class for handling labels and layers in a segmentation session.
std::vector< BaseData::Pointer > Read() override
Reads a number of mitk::LabelSetImages from the file system.
Abstract class for implementing a reader and writer.