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