Medical Imaging Interaction Toolkit  2018.4.99-eed36131
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 
41 
42 
43 protected:
44  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
45 
46 
47  mutable vigra::RandomForest<int> m_rf;
48 // DecisionForestFileIO(const DecisionForestFileIO& other);
49 // virtual mitk::DecisionForestFileIO* Clone() const;
50 
51  private:
52  AbstractFileIO* IOClone() const override;
53 
54 
55 
56 
57 };
58 
59 
60 } // end of namespace mitk
61 
62 #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 > > DoRead() override
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