@@ -115,18 +115,18 @@ def knn_points(
115
115
return_nn: If set to True returns the K nearest neighors in p2 for each point in p1.
116
116
117
117
Returns:
118
- p1_idx: LongTensor of shape (N, P1, K) giving the indices of the
118
+ dists: Tensor of shape (N, P1, K) giving the squared distances to
119
+ the nearest neighbors. This is padded with zeros both where a cloud in p2
120
+ has fewer than K points and where a cloud in p1 has fewer than P1 points.
121
+
122
+ idx: LongTensor of shape (N, P1, K) giving the indices of the
119
123
K nearest neighbors from points in p1 to points in p2.
120
124
Concretely, if `p1_idx[n, i, k] = j` then `p2[n, j]` is the k-th nearest
121
125
neighbors to `p1[n, i]` in `p2[n]`. This is padded with zeros both where a cloud
122
126
in p2 has fewer than K points and where a cloud in p1 has fewer than P1
123
127
points.
124
128
125
- p1_dists: Tensor of shape (N, P1, K) giving the squared distances to
126
- the nearest neighbors. This is padded with zeros both where a cloud in p2
127
- has fewer than K points and where a cloud in p1 has fewer than P1 points.
128
-
129
- p2_nn: Tensor of shape (N, P1, K, D) giving the K nearest neighbors in p2 for
129
+ nn: Tensor of shape (N, P1, K, D) giving the K nearest neighbors in p2 for
130
130
each point in p1. Concretely, `p2_nn[n, i, k]` gives the k-th nearest neighbor
131
131
for `p1[n, i]`. Returned if `return_nn` is True.
132
132
The nearest neighbors are collected using `knn_gather`
0 commit comments