Sitelet https://github.com/pypose/pypose/pull/357
Skip to content

knn_filter - #357

Merged
wang-chen merged 1 commit into
mainfrom
knn_filter
Dec 30, 2024
Merged

wang-chen merged 1 commit into
mainfrom
knn_filter

Conversation

@wang-chen

Copy link
Copy Markdown
Member

add knn_filter

>>> import torch, pypose as pp
>>> points = torch.tensor([[0.,  0.,  0.],
...                        [1.,  0.,  0.],
...                        [0.,  1.,  0.],
...                        [0.,  1.,  1.],
...                        [10., 1.,  1.],
...                        [10., 1., 10.]])
>>> pp.knn_filter(points, k=2, radius=5)
tensor([[0.3333, 0.3333, 0.0000],
        [0.3333, 0.3333, 0.0000],
        [0.0000, 0.6667, 0.3333],
        [0.0000, 0.6667, 0.3333]])

@wang-chen
wang-chen merged commit 7ce22c4 into main Dec 30, 2024
@wang-chen
wang-chen deleted the knn_filter branch December 30, 2024 02:54
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.

1 participant