Medical Imaging Interaction Toolkit  2022.10.99-92cc8b65
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
mitk::CostingStatistic::SetProbabilitiesB
void SetProbabilitiesB(std::vector< std::string > probB)
Definition: mitkCostingStatistic.h:34
itk::SmartPointer< Self >
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::CostingStatistic::SetMaskName
void SetMaskName(std::string name)
Definition: mitkCostingStatistic.h:29
mitkDataCollection.h
mitk::CostingStatistic::SetCombinedLabel
void SetCombinedLabel(std::string name)
Definition: mitkCostingStatistic.h:32
MitkDataCollectionExports.h
mitk::CostingStatistic::SetCombinedA
void SetCombinedA(std::string name)
Definition: mitkCostingStatistic.h:30
mitk::CostingStatistic
Definition: mitkCostingStatistic.h:23
MITKDATACOLLECTION_EXPORT
#define MITKDATACOLLECTION_EXPORT
Definition: MitkDataCollectionExports.h:15
mitk::CostingStatistic::SetProbabilitiesA
void SetProbabilitiesA(std::vector< std::string > probA)
Definition: mitkCostingStatistic.h:33
mitk::CostingStatistic::SetCombinedB
void SetCombinedB(std::string name)
Definition: mitkCostingStatistic.h:31
mitk::BaseData::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkBaseData.h:46