Easy3D 2.6.1
Loading...
Searching...
No Matches
PointCloudNormals Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ estimate()

bool estimate ( PointCloud * cloud,
unsigned int k = 16,
bool compute_curvature = false )
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.

Parameters
cloudThe input point cloud.
kThe number of neighboring points to construct the covariance matrix.
compute_curvatureWhether to also compute the curvature.
Returns
True if the estimation is successful, false otherwise.

◆ reorient()

bool reorient ( PointCloud * cloud,
unsigned int k = 16 )
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.

Parameters
cloudThe input point cloud.
kThe number of neighboring points to construct the graph.
Returns
True if the reorientation is successful, false otherwise.

The documentation for this class was generated from the following files: