eval.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. //
  2. // Created by houri on 20.10.16.
  3. //
  4. #ifndef GBMOT_EVAL_H
  5. #define GBMOT_EVAL_H
  6. #include "../util/FileIO.h"
  7. #include "../core/ObjectData2D.h"
  8. #include "../../../../../usr/include/c++/4.8/string"
  9. #include <vector>
  10. #
  11. namespace Eval {
  12. class eval {
  13. private:
  14. double rateFN; //rate of false negative
  15. double rateTP; //rate of true positive
  16. double rateFP; //rate of false positive
  17. double FN; //amount of false negative detection in the resultant file
  18. double TP; //amount of true positive detection in the resultant file
  19. double FP; //amount of false positive detection in the resultant file
  20. double IDswitch; // amount of switches between different object
  21. double MOTA; // the value of MOTA
  22. double MOTP; // the value of MOTP
  23. public :
  24. eval calculatemotq (std::Vector3d &result,std::Vector3d &groundtruth, const std::string &file_name,std::Vector3d &distance, char delimiter);
  25. // this helps to calculate the parameters that determine the performance of the tracking algo
  26. // Value is a Vector2d contains the ground truth data and Value is the result
  27. };
  28. }
  29. #endif //GBMOT_EVAL_H