Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved bug with ModelOutlierRemoval using indices #1735

Merged
merged 1 commit into from
Oct 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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