Medical Imaging Interaction Toolkit  2022.04.99-7b8c4c8a
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
mitk::RandomForestFileIO::Write
void Write() override
Write the base data to the specified location or output stream.
mitk::RandomForestFileIO::GetReaderConfidenceLevel
ConfidenceLevel GetReaderConfidenceLevel() const override
mitk::RandomForestFileIO::m_rf
vigra::RandomForest< int > m_rf
Definition: mitkRandomForestIO.h:47
mitk::AbstractFileWriter::Write
void Write() override=0
Write the base data to the specified location or output stream.
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitkAbstractFileIO.h
mitk::RandomForestFileIO::RandomForestFileIO
RandomForestFileIO()
mitk::RandomForestFileIO::GetWriterConfidenceLevel
ConfidenceLevel GetWriterConfidenceLevel() const override
mitk::RandomForestFileIO
Definition: mitkRandomForestIO.h:26
mitk::IFileIO::ConfidenceLevel
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data.
Definition: mitkIFileIO.h:45
mitk::AbstractFileIO
Abstract class for implementing a reader and writer.
Definition: mitkAbstractFileIO.h:69
mitk::RandomForestFileIO::~RandomForestFileIO
~RandomForestFileIO() override
mitk::AbstractFileReader::Read
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
mitk::RandomForestFileIO::DoRead
std::vector< itk::SmartPointer< BaseData > > DoRead() override