8 #ifndef _BYTETRACK_BYTE_TRACKER_H_
9 #define _BYTETRACK_BYTE_TRACKER_H_
21 BYTETracker(
int frame_rate = 10,
int track_buffer = 30,
float track_thresh = 0.5,
float high_thresh = 0.6,
float match_thresh = 0.8,
float scale_factor = 1000.0);
28 std::vector<STrack>
update(
const std::vector<ma_bbox_t>& objects);
31 std::vector<STrack*> joint_stracks(std::vector<STrack*>& tlista, std::vector<STrack>& tlistb);
32 std::vector<STrack> joint_stracks(std::vector<STrack>& tlista, std::vector<STrack>& tlistb);
34 std::vector<STrack> sub_stracks(std::vector<STrack>& tlista, std::vector<STrack>& tlistb);
35 void remove_duplicate_stracks(std::vector<STrack>& resa, std::vector<STrack>& resb, std::vector<STrack>& stracksa, std::vector<STrack>& stracksb);
37 void linear_assignment(std::vector<std::vector<float>>& cost_matrix,
39 int cost_matrix_size_size,
41 std::vector<std::vector<int>>& matches,
42 std::vector<int>& unmatched_a,
43 std::vector<int>& unmatched_b);
44 std::vector<std::vector<float>> iou_distance(std::vector<STrack*>& atracks, std::vector<STrack>& btracks,
int& dist_size,
int& dist_size_size);
45 std::vector<std::vector<float>> iou_distance(std::vector<STrack>& atracks, std::vector<STrack>& btracks);
46 std::vector<std::vector<float>> ious(std::vector<std::vector<float>>& atlbrs, std::vector<std::vector<float>>& btlbrs);
48 double lapjv(
const std::vector<std::vector<float>>& cost, std::vector<int>& rowsol, std::vector<int>& colsol,
bool extend_cost =
false,
float cost_limit = LONG_MAX,
bool return_cost =
true);
58 std::vector<STrack> tracked_stracks;
59 std::vector<STrack> lost_stracks;
60 std::vector<STrack> removed_stracks;
Definition: byte_tracker.h:19
~BYTETracker()
Definition: byte_tracker.cpp:35
std::vector< STrack > update(const std::vector< ma_bbox_t > &objects)
Definition: byte_tracker.cpp:69
void clear()
Definition: byte_tracker.cpp:61
std::vector< int > inplace_update(std::vector< ma_bbox_t > &objects)
Definition: byte_tracker.cpp:37
BYTETracker(int frame_rate=10, int track_buffer=30, float track_thresh=0.5, float high_thresh=0.6, float match_thresh=0.8, float scale_factor=1000.0)
Definition: byte_tracker.cpp:25
Definition: kalman_filter.h:39