Commit f707dc68 authored by oscar's avatar oscar

提交代码

parent aa35e42d
......@@ -2,6 +2,8 @@
#include "Track3D.h"
#include <eigen3/Eigen/Dense>
#include "Iou.h"
#include "Component.h"
#include "LogBase.h"
Track3D::Track3D():BaseTrack(10, 7)
{
......@@ -64,8 +66,11 @@ double Track3D::CalculateIou(const std::vector<float>& data)
std::vector<float> states;
GetStateData(states);
SDK_LOG(SDK_INFO, "calculate size1 = %d, size2 = %d",states.size(),data.size());
std::vector<float> truth_poses{ states[0], states[1], states[2],0, 0, states[6], states[3]/2, states[4]/2, states[5]/2 };
std::vector<float> landmark_poses{ data[0], data[1], data[2],0, 0, data[6], data[3]/2, data[4]/2, data[5]/2 };
uint64_t begin = GetCurTime();
double iou_3d = CuboidIoU(truth_poses, landmark_poses);
SDK_LOG(SDK_INFO, "CuboidIoU time = %llu", GetCurTime() - begin);
return iou_3d;
}
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