Easy3D 2.6.1
|
Estimates and reorients point cloud normals. More...
#include <easy3d/algo/point_cloud_normals.h>
Static Public Member Functions | |
static bool | estimate (PointCloud *cloud, unsigned int k=16, bool compute_curvature=false) |
Estimates the point cloud normals using PCA. | |
static bool | reorient (PointCloud *cloud, unsigned int k=16) |
Reorients the point cloud normals. | |
Estimates and reorients point cloud normals.
This class provides methods to estimate the normals of a point cloud using Principal Component Analysis (PCA) and to reorient the normals based on a minimum spanning tree algorithm.
|
static |
Estimates the point cloud normals using PCA.
This method estimates the normals of the input point cloud by constructing a covariance matrix from the neighboring points and computing its eigenvectors.
cloud | The input point cloud. |
k | The number of neighboring points to construct the covariance matrix. |
compute_curvature | Whether to also compute the curvature. |
|
static |
Reorients the point cloud normals.
This method reorients the normals of the input point cloud using the normal reorientation method described in Hoppe et al. Surface reconstruction from unorganized points. SIGGRAPH 1992.
cloud | The input point cloud. |
k | The number of neighboring points to construct the graph. |