27#ifndef EASY3D_ALGO_POINT_CLOUD_SIMPLIFICATION_H
28#define EASY3D_ALGO_POINT_CLOUD_SIMPLIFICATION_H
33#include <easy3d/core/point_cloud.h>
84 static std::vector<PointCloud::Vertex>
Base class for nearest neighbor search using KdTree.
Definition: kdtree_search.h:80
A data structure for point clouds.
Definition: point_cloud.h:45
PointCloudSimplification provides various point cloud simplification algorithms.
Definition: point_cloud_simplification.h:42
static float average_space(PointCloud *cloud, KdTreeSearch *kdtree=nullptr, int k=6, bool accurate=false, int samples=10000)
Query the average spacing of a point cloud.
Definition: point_cloud_simplification.cpp:39
static std::vector< PointCloud::Vertex > uniform_simplification(PointCloud *cloud, float epsilon, KdTreeSearch *kdtree=nullptr)
Uniformly downsample a point cloud based on a distance criterion. This function can also be used for ...
Definition: point_cloud_simplification.cpp:160
static std::vector< PointCloud::Vertex > grid_simplification(PointCloud *cloud, float cell_size)
Simplification of a point cloud using a regular grid covering the bounding box of the points....
Definition: point_cloud_simplification.cpp:132
Definition: collider.cpp:182
FT epsilon()
Function returning the epsilon value for a given type.