Meta Byte Track
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dataType.h 1.2KB

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include <cstddef>
  3. #include <vector>
  4. #include <Eigen/Core>
  5. #include <Eigen/Dense>
  6. typedef Eigen::Matrix<float, 1, 4, Eigen::RowMajor> DETECTBOX;
  7. typedef Eigen::Matrix<float, -1, 4, Eigen::RowMajor> DETECTBOXSS;
  8. typedef Eigen::Matrix<float, 1, 128, Eigen::RowMajor> FEATURE;
  9. typedef Eigen::Matrix<float, Eigen::Dynamic, 128, Eigen::RowMajor> FEATURESS;
  10. //typedef std::vector<FEATURE> FEATURESS;
  11. //Kalmanfilter
  12. //typedef Eigen::Matrix<float, 8, 8, Eigen::RowMajor> KAL_FILTER;
  13. typedef Eigen::Matrix<float, 1, 8, Eigen::RowMajor> KAL_MEAN;
  14. typedef Eigen::Matrix<float, 8, 8, Eigen::RowMajor> KAL_COVA;
  15. typedef Eigen::Matrix<float, 1, 4, Eigen::RowMajor> KAL_HMEAN;
  16. typedef Eigen::Matrix<float, 4, 4, Eigen::RowMajor> KAL_HCOVA;
  17. using KAL_DATA = std::pair<KAL_MEAN, KAL_COVA>;
  18. using KAL_HDATA = std::pair<KAL_HMEAN, KAL_HCOVA>;
  19. //main
  20. using RESULT_DATA = std::pair<int, DETECTBOX>;
  21. //tracker:
  22. using TRACKER_DATA = std::pair<int, FEATURESS>;
  23. using MATCH_DATA = std::pair<int, int>;
  24. typedef struct t {
  25. std::vector<MATCH_DATA> matches;
  26. std::vector<int> unmatched_tracks;
  27. std::vector<int> unmatched_detections;
  28. }TRACHER_MATCHD;
  29. //linear_assignment:
  30. typedef Eigen::Matrix<float, -1, -1, Eigen::RowMajor> DYNAMICM;