Commit d28b3b64 authored by limingbo's avatar limingbo

add period

parent 4c6560b9
......@@ -184,14 +184,14 @@ vector<pair<string, vector<pair<double, double>>>> crossFilter(
int result_index;
float sqr_distance;
octree.approxNearestSearch(query, result_index, sqr_distance);
if(sqr_distance < 10){
if(sqrt(sqr_distance) < 10){
found = true;
if(!inPeriod){
start = query.info;
inPeriod = true;
// LOG(INFO) << setprecision(15) << "start: " << start;
}
}else if(sqr_distance > 25){
}else if(sqrt(sqr_distance) > 15){
if(inPeriod){
end = query.info;
inPeriod = false;
......
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