Improving minimum volume OBB matching with Jylänki algorithm. #7138
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update enhances the
OrientedBoundingBox::CreateFromPointsMinimal
method to fit a minimum volume oriented bounding box (OBB) to a given point cloud.Type
Motivation and Context
Fitting a minimum volume OBB to an arbitrary point cloud is a well-known computational geometry problem. An exact solution to this problem was proposed by O'Rourke in the late 80s, with a cubic time complexity. O’Rourke’s paper also describes a simplified version with quadratic complexity, which is -- I believe -- the variant currently implemented in Open3D. In 2015, Jukka Jylänki proposed a faster algorithm for computing a minimum volume OBB. I used his original implementation as well as the article describing his algorithm to improve the current
CreateFromPointsMinimal
function. The original approximate approach previously used inCreateFromPointsMinimal
has been refactored into a new function namedCreateFromPointsMinimalApprox
.Checklist:
python util/check_style.py --apply
to apply Open3D code styleto my code.
updated accordingly.
results (e.g. screenshots or numbers) here.
Description
Algorithm Upgrade: The
CreateFromPointsMinimal
function has been improved using Jylänki's algorithm, resulting in more accurate -- but slower -- OBB fitting.Function Refactoring: The original approximate approach previously used in CreateFromPointsMinimal has been refactored into a new function named
CreateFromPointsMinimalApprox
. I added a suitable python binding and documented my implementation.Impact: I believe these modifications provide an exact computation of the minimum volume OBB, which can significantly benefit applications that rely on precise spatial bounding computations for large datasets.