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

Add num_points to fps as an alternative to ratio #218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LarsHaalck
Copy link

The current implementation of farthest point sampling only allows to set a ratio value to define the number of output points. Some use-cases require a fixed number of output points.

This PR adds an argument num_points to allow this. I also added some tests. The implementation raises a runtime exception if the number of requested points is greater than the number of input points.

@codecov-commenter
Copy link

codecov-commenter commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.52%. Comparing base (f2d9919) to head (00af9dd).
Report is 2 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #218      +/-   ##
==========================================
+ Coverage   97.32%   97.52%   +0.19%     
==========================================
  Files          11       11              
  Lines         224      242      +18     
==========================================
+ Hits          218      236      +18     
  Misses          6        6              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LarsHaalck LarsHaalck force-pushed the master branch 2 times, most recently from 5657169 to d552641 Compare June 24, 2024 14:22
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.

2 participants