24 void CCMat::save(
const std::string &path,
const std::string &name,
short idx)
const 29 void CCMat::load(
const std::string &path,
const std::string &name,
short idx)
36 if (mask.empty()) DGM_ELEMENTWISE2<CCMat, &CCMat::estimate>(*
this, gt, solution);
37 else DGM_ELEMENTWISE2<CCMat, &CCMat::estimate>(*
this, gt, solution, mask);
55 res += cMat.at<
float>(s, s);
float getAccuracy(void) const
Returns the overall classification accuracy.
void load(const std::string &path, const std::string &name=std::string(), short idx=-1)
Loads the confusion matrix.
void save(const std::string &path, const std::string &name=std::string(), short idx=-1) const
Saves the confusion matrix.
void estimate(const Mat >, const Mat &solution, const Mat &mask=Mat())
Estimates the confusion matrix.
void addEdgeGroundTruth(byte gt1, byte gt2)
Adds the groud-truth value to the co-occurance histogram matrix.
virtual void load(const std::string &path, const std::string &name=std::string(), short idx=-1)
Loads the training data.
void reset(void)
Resets class variables.
CPriorEdge * m_pConfusionMatrix
COnfusion matrix container.
Mat getPrior(float weight=1.0f) const
Returns the prior probabilies.
Mat getConfusionMatrix(void) const
Returns the confusion matrix.
virtual void save(const std::string &path, const std::string &name=std::string(), short idx=-1) const
Saves the training data.
Edge prior probability estimation class.
void reset(void)
Resets class variables.
byte getNumStates(void) const
Returns number of states (classes)
CCMat(byte nStates)
Constructor.