Commit 56063621 authored by oscar's avatar oscar

提交iou计算函数

parent 864dadc7
......@@ -116,8 +116,8 @@ double Track3D::CalculateIou(const std::vector<float>& data)
//double i3d_iou = CuboidIoU(truth_poses, landmark_poses);
cv::RotatedRect rect1 = cv::RotatedRect(cv::Point2f(states[0], states[1]), cv::Size2f(states[3], states[4]), states[6]);
cv::RotatedRect rect2 = cv::RotatedRect(cv::Point2f(data[0], data[1]), cv::Size2f(data[3], data[4]), data[6]);
cv::RotatedRect rect1 = cv::RotatedRect(cv::Point2f(states[0], states[1]), cv::Size2f(states[3], states[4]), states[6]*180 / 3.1415926);
cv::RotatedRect rect2 = cv::RotatedRect(cv::Point2f(data[0], data[1]), cv::Size2f(data[3], data[4]), data[6]*180/3.1415926);
uint64_t begin = GetCurTime();
double iou_3d = 0.0f;
......
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