You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
searcher = new pcl::search::OrganizedNeighbor<PointT> (sorted_results);
25
-
if(searcher->setInputCloud (cloud)) { // may return false if OrganizedNeighbor cannot work with the cloud, then use another search method instead
25
+
if(searcher->setInputCloud (cloud, indices)) { // may return false if OrganizedNeighbor cannot work with the cloud, then use another search method instead
searcher_.reset (new pcl::search::OrganizedNeighbor<PointT> (false)); // not requiring sorted results is much faster
64
-
else
65
-
searcher_.reset (new pcl::search::KdTree<PointT> (false)); // not requiring sorted results is much faster
61
+
searcher_.reset (pcl::search::autoSelectMethod<PointT>(input_, indices_, false, pcl::search::Purpose::radius_search)); // not requiring sorted results is much faster
62
+
}
63
+
else
64
+
{
65
+
searcher_->setInputCloud (input_, indices_);
66
66
}
67
-
searcher_->setInputCloud (input_, indices_);
68
67
// If searcher_ gives sorted results, we can skip the first one because it is the query point itself
0 commit comments