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
mitkRandomForestIO.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 _MITK_DecisionForestFileIO__H_
18 #define _MITK_DecisionForestFileIO__H_
19 
20 #include <mitkAbstractFileIO.h>
21 #include "vigra/random_forest.hxx"
22 
23 namespace mitk
24 {
25 
31 {
32 public:
33 
36  virtual ~RandomForestFileIO();
37 
39  virtual void Write();
40 
42  virtual std::vector<itk::SmartPointer<BaseData> > Read();
43 
46 
47 
48  protected:
49 
50  mutable vigra::RandomForest<int> m_rf;
51 // DecisionForestFileIO(const DecisionForestFileIO& other);
52 // virtual mitk::DecisionForestFileIO* Clone() const;
53 
54  private:
55  virtual AbstractFileIO* IOClone() const;
56 
57 
58 
59 
60 };
61 
62 
63 } // end of namespace mitk
64 
65 #endif
DataCollection - Class to facilitate loading/accessing structured data.
virtual std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
virtual void Write()
Write the base data to the specified location or output stream.
virtual std::vector< itk::SmartPointer< BaseData > > Read()
Reads a path or stream and creates a list of BaseData objects.
vigra::RandomForest< int > m_rf
virtual ConfidenceLevel GetReaderConfidenceLevel() const
virtual void Write() override=0
Write the base data to the specified location or output stream.
virtual ConfidenceLevel GetWriterConfidenceLevel() const
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
Definition: mitkIFileIO.h:49
Abstract class for implementing a reader and writer.