Kaynağa Gözat

add evaluation

Mohmmed Al Houri 9 yıl önce
ebeveyn
işleme
aa75c988aa
2 değiştirilmiş dosya ile 140 ekleme ve 0 silme
  1. 56 0
      eval/eval.cpp
  2. 84 0
      eval/eval.h

+ 56 - 0
eval/eval.cpp

@@ -0,0 +1,56 @@
+//
+// Created by houri on 24.10.16.
+//
+
+
+#include "eval.h"
+
+
+namespace Eval
+{
+    eval calculatemotq ( std::Vector2d &result,std::Vector2d &groundtruth, const std::string &file_name,std::Vector2d &distance, char delimiter);
+{
+    int Nf; //number of frames
+
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+};

+ 84 - 0
eval/eval.h

@@ -0,0 +1,84 @@
+//
+// Created by houri on 20.10.16.
+//
+
+#ifndef GBMOT_EVAL_H
+#define GBMOT_EVAL_H
+
+#include "../util/FileIO.h"
+#include "../core/ObjectData2D.h"
+#include "../../../../../usr/include/c++/4.8/string"
+#include <vector>
+#
+
+
+
+namespace Eval {
+
+
+    class eval {
+    private:
+        double rateFN;      //rate of false negative
+        double rateTP;      //rate of true positive
+        double rateFP;      //rate of false positive
+        double FN;          //amount of false negative detection in the resultant file
+        double TP;          //amount of true positive detection in the resultant file
+        double FP;          //amount of false positive detection in the resultant file
+        double IDswitch;    // amount of switches between different object
+        double MOTA;        // the value of MOTA
+        double MOTP;        // the value of MOTP
+
+
+    public :
+
+
+        eval calculatemotq (std::Vector3d &result,std::Vector3d &groundtruth, const std::string &file_name,std::Vector3d &distance, char delimiter);
+        // this helps to calculate the parameters that determine the performance of the tracking algo
+        // Value is a Vector2d contains the ground truth data and Value is the result
+
+
+
+
+
+
+
+
+
+
+    };
+
+
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#endif //GBMOT_EVAL_H
+
+
+