![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <confusionmatrix.h>


Public Types | |
| enum | metrics { PRECISION = 0 , RECALL = 1 , F1_SCORE = 2 } |
Public Member Functions | |
| ConfusionMatrix (const std::vector< ScalarType > &actual, const std::vector< ScalarType > &predicted) | |
| ~ConfusionMatrix () override | |
| void | computePrecisionRecallF1Score (cv::Mat &matrix, cv::Mat &precisionRecallF1Score, cv::Mat &vec_TP_FN) |
| float | computeOverallAccuracy (cv::Mat &matrix) |
| void | compute (const std::vector< ScalarType > &actual, const std::vector< ScalarType > &predicted) |
| void | setSessionRun (QString session, int run) |
| bool | save (QString filePath) |
| float | getOverallAccuracy () |
Definition at line 21 of file confusionmatrix.h.
| Enumerator | |
|---|---|
| PRECISION | |
| RECALL | |
| F1_SCORE | |
Definition at line 25 of file confusionmatrix.h.
|
explicit |
Definition at line 42 of file confusionmatrix.cpp.
References compute().
|
override |
Definition at line 62 of file confusionmatrix.cpp.
| void ConfusionMatrix::compute | ( | const std::vector< ScalarType > & | actual, |
| const std::vector< ScalarType > & | predicted | ||
| ) |
Definition at line 144 of file confusionmatrix.cpp.
References computeOverallAccuracy(), computePrecisionRecallF1Score(), F1_SCORE, GetColor(), PRECISION, and RECALL.
Referenced by ConfusionMatrix().
| float ConfusionMatrix::computeOverallAccuracy | ( | cv::Mat & | matrix | ) |
| void ConfusionMatrix::computePrecisionRecallF1Score | ( | cv::Mat & | matrix, |
| cv::Mat & | precisionRecallF1Score, | ||
| cv::Mat & | vec_TP_FN | ||
| ) |
| float ConfusionMatrix::getOverallAccuracy | ( | ) |
Definition at line 308 of file confusionmatrix.cpp.
Referenced by Train3DMASCDialog::saveTraces().
| bool ConfusionMatrix::save | ( | QString | filePath | ) |
Definition at line 277 of file confusionmatrix.cpp.
References QtCompat::endl(), CVLog::Error(), F1_SCORE, PRECISION, and RECALL.
Referenced by Train3DMASCDialog::saveTraces().
| void ConfusionMatrix::setSessionRun | ( | QString | session, |
| int | run | ||
| ) |
Definition at line 269 of file confusionmatrix.cpp.
Referenced by Train3DMASCDialog::saveTraces().