Skip to content

Commit c49cb99

Browse files
Add missing cloud index in registration neighbour search
1 parent 67afab3 commit c49cb99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

registration/include/pcl/registration/registration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ class Registration : public PCLBase<PointSource> {
665665
pcl::Indices& indices,
666666
std::vector<float>& distances)
667667
{
668-
int k = tree_->nearestKSearch(cloud, index, 1, indices, distances);
668+
int k = tree_->nearestKSearchT(cloud[index], index, 1, indices, distances);
669669
if (k == 0)
670670
return (false);
671671
return (true);

0 commit comments

Comments
 (0)