27#ifndef EASY3D_KD_TREE_SEARCH_FLANN_H
28#define EASY3D_KD_TREE_SEARCH_FLANN_H
30#include <easy3d/kdtree/kdtree_search.h>
102 const vec3 &p,
int k,
103 std::vector<int> &neighbors, std::vector<float> &squared_distances
113 const vec3 &p,
int k,
114 std::vector<int> &neighbors
131 const vec3 &p,
float squared_radius,
132 std::vector<int> &neighbors, std::vector<float> &squared_distances
142 const vec3 &p,
float squared_radius,
143 std::vector<int> &neighbors
KdTree implementation based on FLANN.
Definition: kdtree_search_flann.h:42
void find_points_in_range(const vec3 &p, float squared_radius, std::vector< int > &neighbors, std::vector< float > &squared_distances) const override
Queries the nearest neighbors within a fixed range.
Definition: kdtree_search_flann.cpp:126
KdTreeSearch_FLANN(const PointCloud *cloud)
Constructor.
Definition: kdtree_search_flann.cpp:37
void set_checks(int chk)
Specifies the maximum number of leaves to visit when searching for neighbors.
Definition: kdtree_search_flann.cpp:77
void find_closest_k_points(const vec3 &p, int k, std::vector< int > &neighbors, std::vector< float > &squared_distances) const override
Queries the K nearest neighbors for a given point.
Definition: kdtree_search_flann.cpp:101
int find_closest_point(const vec3 &p, float &squared_distance) const override
Queries the closest point for a given point.
Definition: kdtree_search_flann.cpp:82
Base class for nearest neighbor search using KdTree.
Definition: kdtree_search.h:80
A data structure for point clouds.
Definition: point_cloud.h:45
Definition: collider.cpp:182