Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkLRDensityEstimation.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 mitkLRDensityEstimation_h
18 #define mitkLRDensityEstimation_h
19 
20 #include <vigra/matrix.hxx>
21 #include <vigra/random_forest.hxx>
22 
23 #include <mitkDataCollection.h>
24 
25 #include <MitkCLImportanceWeightingExports.h>
26 
27 namespace mitk
28 {
29  class MITKCLIMPORTANCEWEIGHTING_EXPORT LRDensityEstimation
30  {
31  public:
32  typedef vigra::MultiArray<2, double> MatrixType;
33 
34  void SetCollection(DataCollection::Pointer data);
35  DataCollection::Pointer GetCollection();
36 
37  void SetTestMask(std::string name);
38  std::string GetTestMask();
39 
40  void SetTrainMask(std::string name);
41  std::string GetTrainMask();
42 
43  void SetWeightName(std::string name);
44  std::string GetWeightName();
45 
46  void Update();
48  void SetModalities(std::vector<std::string> modalities);
49  std::vector<std::string> GetModalities();
50 
51  void Predict();
52 
53  private:
54  DataCollection::Pointer m_Collection;
55  MatrixType m_Weights;
56  std::string m_TestMask;
57  std::string m_TrainMask;
58  std::string m_WeightName;
59  std::vector<std::string> m_Modalities;
60 
61  std::string m_WeightFileName;
62  }; // class LRDensityEstimation
63 } //namespace mitk
64 
65 #endif //mitkLRDensityEstimation_h
Follow Up Storage - Class to facilitate loading/accessing structured follow-up data.
Definition: testcase.h:32
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:35
vigra::MultiArray< 2, double > MatrixType
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< Self > Pointer
Definition: mitkBaseData.h:42