Medical Imaging Interaction Toolkit  2018.4.99-07c45cb1
Medical Imaging Interaction Toolkit
mitkCostingStatistic.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 mitkCostingStatistic_h
14 #define mitkCostingStatistic_h
15 
17 
18 #include <mitkDataCollection.h>
19 
20 #include <iostream>
21 
22 namespace mitk {
24  {
25  public:
26  void SetCollection(DataCollection::Pointer collection);
27  DataCollection::Pointer GetCollection();
28 
29  void SetMaskName(std::string name) {m_MaskName = name;}
30  void SetCombinedA(std::string name) {m_CombinedProbabilityA = name; }
31  void SetCombinedB(std::string name) {m_CombinedProbabilityB = name; }
32  void SetCombinedLabel(std::string name) {m_CombinedLabelName = name; }
33  void SetProbabilitiesA (std::vector<std::string> probA) {m_ProbabilityClassA = probA;}
34  void SetProbabilitiesB (std::vector<std::string> probB) {m_ProbabilityClassB = probB;}
35 
36  bool UpdateCollection();
37  bool CalculateClass(double threshold);
38 
39  bool WriteStatistic(std::ostream &out,std::ostream &sout, double stepSize, std::string shortLabel);
40  private:
41 
42  DataCollection::Pointer m_Collection;
43  std::string m_MaskName;
44  std::string m_CombinedProbabilityA;
45  std::string m_CombinedProbabilityB;
46  std::string m_CombinedLabelName;
47 
48  std::vector<std::string> m_ProbabilityClassA;
49  std::vector<std::string> m_ProbabilityClassB;
50  };
51 }
52 
53 #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)
#define MITKDATACOLLECTION_EXPORT
itk::SmartPointer< Self > Pointer
Definition: mitkBaseData.h:41
void SetCombinedA(std::string name)