Open
Description
the localmaxmum fliter has an error in flitered point indces, the Points in the neighborhood of a previously identified local max can not be added to indces. the code can be modified as follow:
if (point_is_visited[iii] && !point_is_max[iii])
{
if (negative_)
{
if (extract_removed_indices_)
{
(*removed_indices_)[rii++] = iii;
}
continue;
}
indices[oii++] = iii;
continue;
}
the code which check to see if a neighbor is higher than the query point assume the radius_indices is sorted, the searcher_ should be set sorted, the code can be modified as follow:
searcher_->setInputCloud (cloud_projected);
searcher_->setSortedResults(true);