Skip to content

Commit

Permalink
Merge pull request #331 from SvenAlbrecht/bugfix_passthrough
Browse files Browse the repository at this point in the history
Fixed bug in passthrough filter
  • Loading branch information
jspricke committed Oct 17, 2013
2 parents e97878d + 3568168 commit 2190eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filters/include/pcl/filters/impl/passthrough.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ pcl::PassThrough<PointT>::applyFilterIndices (std::vector<int> &indices)
}

// Inside of the field limits are passed to removed indices if negative was set
if (negative_ && field_value > filter_limit_min_ && field_value < filter_limit_max_)
if (negative_ && field_value >= filter_limit_min_ && field_value <= filter_limit_max_)
{
if (extract_removed_indices_)
(*removed_indices_)[rii++] = (*indices_)[iii];
Expand Down

0 comments on commit 2190eb8

Please sign in to comment.