Commit 7f2394f0 authored by oscar's avatar oscar

提交代码

parent 89b5eb7d
......@@ -159,12 +159,12 @@ void BaseTracker<T>::AssociateDetectionsToTrackers(const std::vector<std::vector
tracker_states.emplace_back(measure);
}
}
//int detect_size = detections.size() * (detections.size() > 0 ? detections[0].size() : 0);
//int tracker_size = tracker_states.size() * (tracker_states.size() > 0 ? tracker_states[0].size() : 0);
//int iou_size = detections.size() * tracker_states.size();
//std::shared_ptr<float> detect_ptr = std::make_shared<float>(new float[detect_size]);
//std::shared_ptr<float> tracker_ptr = std::make_shared<float>(new float[tracker_size]);
//std::shared_ptr<float> iou_ptr = std::make_shared<float>(new float[iou_size]);
int detect_size = detections.size() * (detections.size() > 0 ? detections[0].size() : 0);
int tracker_size = tracker_states.size() * (tracker_states.size() > 0 ? tracker_states[0].size() : 0);
int iou_size = detections.size() * tracker_states.size();
std::shared_ptr<float> detect_ptr = std::make_shared<float>(new float[detect_size]);
std::shared_ptr<float> tracker_ptr = std::make_shared<float>(new float[tracker_size]);
std::shared_ptr<float> iou_ptr = std::make_shared<float>(new float[iou_size]);
////bev_overlap(detections.size(), detect_ptr.get(), tracker_states.size(), tracker_ptr.get(), iou_ptr.get());
//for(int i = 0; i < detections.size(); i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment