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 RoPS total area #6187

Merged

Conversation

lucagrementieri
Copy link
Contributor

In ROPSEstimation implementation there's a if clause in the normalization of the total area meant to avoid a division by 0. Unfortunately the code currently in the if branch should go in the else branch and vice-versa.
The current code does not perform any normalization unless the area is close to zero; in that case the division 1.0 / area causes the weight to explode to infinity.

This PR fixes this small but relevant bug.

@mvieth mvieth added module: features changelog: fix Meta-information for changelog generation labels Dec 2, 2024
Copy link
Member

@mvieth mvieth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@mvieth mvieth merged commit ed435bd into PointCloudLibrary:master Dec 2, 2024
13 checks passed
@lucagrementieri lucagrementieri deleted the luca/fix-rops-area branch December 2, 2024 22:06
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: features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants