-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Breaking change in uniform sampling #1826
Comments
Hi, sorry for the late reply. Can you please be more specific, which functionality (i.e. which function) worked before and does not work anymore? I'm not very familiar with the class in question, but looking at the commit diff I don't see any functionality being removed. For reference, the PR in question is #1411 and the respective author is @fran6co (ping). |
The main change is that UniformSampling inherits from Filter instead of Keypoint. That makes it use |
If I understood correctly, I thing the biggest critique @paulhilbert was mentioning is that the removed indices are not being properly maintained in Adding a method (compute) just to declare it deprecated and later remove it, is not worthy at this point. We already broke the interface and this is settled. @paulhilbert point is valid though. It needs to properly provide the indexes. We overlooked it. |
Ah, sorry. I overlooked the issue. I'll submit a fix for it. |
@fran6co Thanks for taking the time to do it. (Albeit probably a redundant request) Please be sure to fork from the most recent version of |
Agree, no need to add As for the indices, before it was |
I wonder if it wouldn't make more sense to simply overload the |
This is an interesting idea. Would make sense to put these overloads in the base Downsides: a lot of work, plus we will break custom user classes deriving from |
That was exactly the idea 👍 . |
Hm, another problem here will be that for many filters we have a specialization for |
Is there a specific reason to break the uniform sampling? I understand it has been moved to filters, yet it does not implement the filter interface (it completely ignores the interface for retrieving sampled indices - in fact it even doesn't call the filter constructor).
To be clear: Getting the indices is the point of subsampling (at least in all my use cases).
Your Environment
Expected Behavior
Please unbreak the uniform sampling.
Changing the uniform sampling interface broke existing functionality without apparent benefits. You should maybe consider more closely evaluating breaking pull requests.
Context
The interface change breaks roughly 6-7 of my point cloud processing libraries and my entire toolchain.
The text was updated successfully, but these errors were encountered: