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, indices)) { // may return false if OrganizedNeighbor cannot work with the cloud, then use another search method instead
26
-
return searcher;
23
+
ifconstexpr (pcl::traits::has_xyz_v<PointT>) {
24
+
if (cloud->isOrganized ()) {
25
+
searcher = new pcl::search::OrganizedNeighbor<PointT> (sorted_results);
26
+
if(searcher->setInputCloud (cloud, indices)) { // may return false if OrganizedNeighbor cannot work with the cloud, then use another search method instead
// we get the number of search dimensions as a compile-time-constant via NR_DIMS. NR_DIMS may be -1 if it is not possible to determine the dimensions at compile-time (only at run-time), however then searching may be slower. If NR_DIMS is not -1, it must be the same as the return value of getNumberOfDimensions().
0 commit comments