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

Removing nodes from a KDTree #207

Open
lukkio88 opened this issue Jul 27, 2023 · 0 comments
Open

Removing nodes from a KDTree #207

lukkio88 opened this issue Jul 27, 2023 · 0 comments

Comments

@lukkio88
Copy link

Hi,

I am trying to implement an algorithm ICP style. And to find correspondences between the two d-dimensional point sets (assuming same number of points per set).

However because I would like to enforce bijection in these correspondences my approach was to remove certain nodes from the tree iteratively.

Roughly the following pseudocode

input P,Q : d-dimensional point sets with |P| = |Q|
output: corresponce map C

T = KDTree constructed from Q
C = correspondence map of size |Q|
for each p in P:
  j = T.find(p);
  T.remove(j); //How to do this?
  C[p.index()] = j;

This should guarantee the bijection. But by looking through past issues it doesn't seem to me you implemented such feature?
Can you tell me how to do this? or if removal is not available maybe some approaches maybe based on re-adjusting the tree cleverly?

I could construct a new tree everytime but I have a feeling at that point might be better just doing the naive way. But would be nice to have a solution that uses a KDTree.

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

No branches or pull requests

1 participant