Skip to content

Commit

Permalink
Merge pull request #1735 from bagazov/master
Browse files Browse the repository at this point in the history
Resolved bug with ModelOutlierRemoval using indices
  • Loading branch information
SergioRAgostinho authored Oct 24, 2016
2 parents dd532fe + 9dc9d07 commit 1043b76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion filters/include/pcl/filters/impl/model_outlier_removal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ pcl::ModelOutlierRemoval<PointT>::applyFilterIndices (std::vector<int> &indices)
// check distance of pointcloud to model
std::vector<double> distances;
//TODO: get signed distances !
model_->setIndices(indices_); // added to reduce computation and arrange distances with indices
model_->getDistancesToModel (model_coefficients_, distances);

bool thresh_result;

// Filter for non-finite entries and the specified field limits
Expand All @@ -230,7 +232,7 @@ pcl::ModelOutlierRemoval<PointT>::applyFilterIndices (std::vector<int> &indices)
continue;
}

// use threshold function to seperate outliers from inliers:
// use threshold function to separate outliers from inliers:
thresh_result = threshold_function_ (distances[iii]);

// in normal mode: define outliers as false thresh_result
Expand Down

0 comments on commit 1043b76

Please sign in to comment.