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/Issue 29 #30

Merged
merged 1 commit into from
Mar 17, 2024
Merged

Fix/Issue 29 #30

merged 1 commit into from
Mar 17, 2024

Conversation

remydubois
Copy link
Owner

This PR sets the minimal area required to return a box in the RTree intersection routine to 0. The initial value of 1. was based on the misconception that all bboxes' coordinates were expressed in pixels, hence no intersection could be smaller than 1 (pixel).

Users should be able to express their bbox in real world coordinates, or even normalize them, hence have area much smaller than 1., yet still having an IoU with the bbox in reference higher than the threshold.

Closes #29

@remydubois remydubois merged commit 8ed088b into main Mar 17, 2024
4 checks passed
@remydubois remydubois deleted the fix/issue_29 branch March 17, 2024 19:24
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.

RTree query area can not be > 0 if bboxes are not pixel coordinates
1 participant