ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
neighbors.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include <cstdint>
9 #include <nanoflann.hpp>
10 #include <set>
11 
12 #include "ml/contrib/Cloud.h"
13 
14 namespace cloudViewer {
15 namespace ml {
16 namespace contrib {
17 
25 void ordered_neighbors(std::vector<PointXYZ>& queries,
26  std::vector<PointXYZ>& supports,
27  std::vector<int>& neighbors_indices,
28  float radius);
29 
36 void batch_nanoflann_neighbors(std::vector<PointXYZ>& queries,
37  std::vector<PointXYZ>& supports,
38  std::vector<int>& q_batches,
39  std::vector<int>& s_batches,
40  std::vector<int>& neighbors_indices,
41  float radius);
42 } // namespace contrib
43 } // namespace ml
44 } // namespace cloudViewer
void batch_nanoflann_neighbors(std::vector< PointXYZ > &queries, std::vector< PointXYZ > &supports, std::vector< int > &q_batches, std::vector< int > &s_batches, std::vector< int > &neighbors_indices, float radius)
Definition: neighbors.cpp:125
void ordered_neighbors(std::vector< PointXYZ > &queries, std::vector< PointXYZ > &supports, std::vector< int > &neighbors_indices, float radius)
Definition: neighbors.cpp:64
Generic file read and write utility for python interface.