Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef __mitkLabelSetImageIO_h
18 #define __mitkLabelSetImageIO_h
19 
20 #include <mitkAbstractFileIO.h>
21 #include <mitkLabelSetImage.h>
22 
23 namespace mitk
24 {
29  // The export macro should be removed. Currently, the unit
30  // tests directly instantiate this class.
32  {
33  public:
35 
37 
38  // -------------- AbstractFileReader -------------
39 
46  virtual std::vector<BaseData::Pointer> Read() override;
47  virtual ConfidenceLevel GetReaderConfidenceLevel() const override;
48 
49  // -------------- AbstractFileWriter -------------
50 
51  virtual void Write() override;
52  virtual ConfidenceLevel GetWriterConfidenceLevel() const override;
53 
54  // -------------- LabelSetImageIO specific functions -------------
55 
56  int GetIntByKey(const itk::MetaDataDictionary &dic, const std::string &str);
57  std::string GetStringByKey(const itk::MetaDataDictionary &dic, const std::string &str);
58 
59  private:
60  LabelSetImageIO *IOClone() const override;
61  };
62 } // end of namespace mitk
63 
64 #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.
virtual void Write() override
Write the base data to the specified location or output stream.
virtual std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
virtual ConfidenceLevel GetReaderConfidenceLevel() const override
virtual ConfidenceLevel GetWriterConfidenceLevel() const override
LabelSetImage class for handling labels and layers in a segmentation session.
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
Definition: mitkIFileIO.h:49
virtual std::vector< BaseData::Pointer > Read() override
Reads a number of mitk::LabelSetImages from the file system.
Abstract class for implementing a reader and writer.