Commit b585795c authored by oscar's avatar oscar

去除3D计算

parent e7f5d30d
......@@ -245,18 +245,18 @@ double Track3D::CalculateIou(const std::vector<float>& data)
double area = calcIntersectionArea(rect1,rect2);
if (area > 0)
{
double interHeight = 0.0f;
double tru_minz = states[2] - states[5] / 2;
double tru_maxz = states[2] + states[5] / 2;
double land_minz = data[3] - data[6] / 2;
double land_maxz = data[3] + data[6] / 2;
if (land_maxz <= tru_maxz && land_maxz >= tru_minz) {
interHeight = land_maxz - tru_minz;
}
else if (tru_maxz < land_maxz && tru_maxz > land_minz) {
interHeight = tru_maxz - land_minz;
}
//double interHeight = 0.0f;
//double tru_minz = states[2] - states[5] / 2;
//double tru_maxz = states[2] + states[5] / 2;
//double land_minz = data[3] - data[6] / 2;
//double land_maxz = data[3] + data[6] / 2;
//if (land_maxz <= tru_maxz && land_maxz >= tru_minz) {
// interHeight = land_maxz - tru_minz;
//}
//else if (tru_maxz < land_maxz && tru_maxz > land_minz) {
// interHeight = tru_maxz - land_minz;
//}
if (1)//interHeight > 0)
{
//double inter3D = area * interHeight;
......
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