Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkCostingStatistic.h
Go to the documentation of this file.
1 #ifndef mitkCostingStatistic_h
2 #define mitkCostingStatistic_h
3 
4 #include <MitkDataCollectionExports.h>
5 
6 #include <mitkDataCollection.h>
7 
8 #include <iostream>
9 
10 namespace mitk {
11  class MITKDATACOLLECTION_EXPORT CostingStatistic
12  {
13  public:
14  void SetCollection(DataCollection::Pointer collection);
15  DataCollection::Pointer GetCollection();
16 
17  void SetMaskName(std::string name) {m_MaskName = name;}
18  void SetCombinedA(std::string name) {m_CombinedProbabilityA = name; }
19  void SetCombinedB(std::string name) {m_CombinedProbabilityB = name; }
20  void SetCombinedLabel(std::string name) {m_CombinedLabelName = name; }
21  void SetProbabilitiesA (std::vector<std::string> probA) {m_ProbabilityClassA = probA;}
22  void SetProbabilitiesB (std::vector<std::string> probB) {m_ProbabilityClassB = probB;}
23 
24  bool UpdateCollection();
25  bool CalculateClass(double threshold);
26 
27  bool WriteStatistic(std::ostream &out,std::ostream &sout, double stepSize, std::string shortLabel);
28  private:
29 
30  DataCollection::Pointer m_Collection;
31  std::string m_MaskName;
32  std::string m_CombinedProbabilityA;
33  std::string m_CombinedProbabilityB;
34  std::string m_CombinedLabelName;
35 
36  std::vector<std::string> m_ProbabilityClassA;
37  std::vector<std::string> m_ProbabilityClassB;
38  };
39 }
40 
41 #endif // mitkCostingStatistic_h
void SetCombinedB(std::string name)
void SetMaskName(std::string name)
DataCollection - Class to facilitate loading/accessing structured data.
void SetProbabilitiesB(std::vector< std::string > probB)
void SetProbabilitiesA(std::vector< std::string > probA)
void SetCombinedLabel(std::string name)
itk::SmartPointer< Self > Pointer
Definition: mitkBaseData.h:42
void SetCombinedA(std::string name)