Commit b3ec79fe authored by limingbo's avatar limingbo

test filterByPosition

parent da44014d
...@@ -224,13 +224,11 @@ void filterByPosition( ...@@ -224,13 +224,11 @@ void filterByPosition(
octree.approxNearestSearch(query, result_index, sqr_distance); octree.approxNearestSearch(query, result_index, sqr_distance);
if(sqr_distance < Squared30){ if(sqr_distance < Squared30){
hitCnt++; hitCnt++;
aroundIndexVec.push_back(make_pair(tarRetIndex, tarPeriodIndex));
break;
} }
} }
// if((float)hitCnt / tarPeriodCloud.size() > 0.8){ if((float)hitCnt / tarPeriodCloud.size() > 0.8){
// aroundIndexVec.push_back(make_pair(tarRetIndex, tarPeriodIndex)); aroundIndexVec.push_back(make_pair(tarRetIndex, tarPeriodIndex));
// } }
} }
} }
pair<size_t, size_t> longestIndex = make_pair(retIndex, periodIndex); pair<size_t, size_t> longestIndex = make_pair(retIndex, periodIndex);
......
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