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

Fix inaccurate covariance matrix computation #4983

Merged
merged 4 commits into from
Nov 20, 2021

Conversation

mvieth
Copy link
Member

@mvieth mvieth commented Oct 17, 2021

See issue #4965 for detailed discussion
Regarding the tests: the test TranslatedNormalEstimation was taken from pull request #1407 with slight modifications. The new tests (added in the first commit) failed on Azure Pipelines with the old covariance implementation, but pass with the new implementation.
@pmdifran for your information

@mvieth mvieth added the changelog: fix Meta-information for changelog generation label Oct 17, 2021
…ations

The previous, naive implementation was not accurate enough. The new implementation uses an estimate of the mean to shift the data. It is much more accurate and almost as fast as the naive implementation.
Also considered were a two-pass and an online implementation, but they are overall not as accurate and/or fast as the chosen algorithm.
See PointCloudLibrary#4965 for details
The old test values were apparently only chosen to fit the old covariance algorithm, so they can simply be replaced with values that fit the new, more accurate covariance algorithm.
Avoids "maybe uninitialized" warnings
@mvieth mvieth added this to the pcl-1.12.1 milestone Oct 17, 2021
@mvieth mvieth marked this pull request as ready for review October 19, 2021 08:04
@mvieth mvieth added the needs: code review Specify why not closed/merged yet label Oct 20, 2021
@mvieth mvieth requested a review from kunaltyagi October 23, 2021 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Meta-information for changelog generation module: common needs: code review Specify why not closed/merged yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants