13 #ifndef mitkCollectionStatistic_h
14 #define mitkCollectionStatistic_h
37 m_TruePositive(0), m_FalsePositive(0), m_TrueNegative(0), m_FalseNegative(0),
38 m_DICE(0), m_Jaccard(0), m_Sensitivity(0), m_Specificity(0), m_RMSD(-1.0)
45 virtual unsigned char operator() (
unsigned char value)
const = 0;
51 unsigned char operator() (
unsigned char value)
const override
60 unsigned char operator() (
unsigned char value)
const override
69 unsigned char operator() (
unsigned char value)
const override
71 if (value == 1 || value == 5)
81 unsigned char operator() (
unsigned char value)
const override
83 if (value == 1 || value == 0)
103 void SetClassCount (
size_t count);
104 size_t GetClassCount();
106 void SetGoldName(std::string name);
107 std::string GetGoldName();
109 void SetTestName(std::string name);
110 std::string GetTestName();
120 void Print(std::ostream& out, std::ostream& sout = std::cout,
bool withHeader =
false, std::string label =
"None");
122 int IsInSameVirtualClass(
unsigned char gold,
unsigned char test);
129 std::vector<StatisticData> GetStatisticData(
unsigned char c)
const;
138 std::string m_GroundTruthName;
139 std::string m_TestName;
140 std::string m_MaskName;
143 std::vector<unsigned char> m_ConnectionGold;
144 std::vector<unsigned char> m_ConnectionTest;
145 std::vector<unsigned char> m_ConnectionClass;
147 MultiDataVector m_ImageClassStatistic;
148 std::vector<std::string> m_ImageNames;
149 DataVector m_ImageStatistic;