Skip to content

Commit

Permalink
Fix missing sharing attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
larshg committed Nov 26, 2024
1 parent 0b04d31 commit c93bae9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions filters/include/pcl/filters/impl/radius_outlier_removal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ pcl::RadiusOutlierRemoval<PointT>::applyFilterIndices (Indices &indices)
#pragma omp parallel for \
default(none) \
schedule(dynamic,64) \
firstprivate(nn_indices) \
firstprivate(nn_dists) \
firstprivate(nn_indices, nn_dists) \
shared(nn_dists_max, mean_k, indices, oii, rii) \
num_threads(num_threads_)
for (ptrdiff_t i = 0; i < indices_->size(); i++)
for (ptrdiff_t i = 0; i < static_cast<ptrdiff_t>(indices_->size()); i++)
{
const index_t index = indices_->at(i);
// Perform the nearest-k search
Expand Down Expand Up @@ -153,10 +153,10 @@ pcl::RadiusOutlierRemoval<PointT>::applyFilterIndices (Indices &indices)
#pragma omp parallel for \
default(none) \
schedule(dynamic, 64) \
firstprivate(nn_indices) \
firstprivate(nn_dists) \
firstprivate(nn_indices, nn_dists) \
shared(nn_dists_max, mean_k, indices, oii, rii) \
num_threads(num_threads_)
for (ptrdiff_t i = 0; i < indices_->size(); i++)
for (ptrdiff_t i = 0; i < static_cast<ptrdiff_t>(indices_->size()); i++)
{
const index_t index = indices_->at(i);
if (!pcl::isXYFinite((*input_)[index]))
Expand Down

0 comments on commit c93bae9

Please sign in to comment.