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

Conversation

dgarlor
Copy link

@dgarlor dgarlor commented Oct 17, 2016

I found a bug in ModelOutlierRemoval when setIndices is used.

The model_ was not initialized with the same indices giving a index misalignement when performing the threshold.

This pull request corrects this bug and optimizes the computation of distances only to the selected indices.

@stefanbuettner
Copy link
Contributor

Hey dgarlor,
didn't test it but looks like there was a bug indeed and your patch will fix it. Thanks for the PR.
Cheers,
Stefan

@dgarlor
Copy link
Author

dgarlor commented Oct 18, 2016

Hi Stephan,
No problem, it took my a while to figure out that it was not my code that was wrong. With the modification everything is working well now. I can try to make a quick example with the error but I think it seems logical to give the indices to the model so there is no problem when retreiving the distances.

Glad I could help!
Daniel

@SergioRAgostinho SergioRAgostinho added this to the pcl-1.8.1 milestone Oct 24, 2016
@SergioRAgostinho SergioRAgostinho merged commit 1043b76 into PointCloudLibrary:master Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants