cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
norm.hpp File Reference

法向量提取算法统一导出文件 / Unified export file for normal extraction algorithms More...

Include dependency graph for norm.hpp:

Go to the source code of this file.

Namespaces

namespace  toolbox
 
namespace  toolbox::pcl
 

Functions

template<typename T >
auto toolbox::pcl::create_normal_extractor ()
 法向量提取算法的选择指南 / Guide for choosing normal extraction algorithms
 
template<typename T >
void toolbox::pcl::orient_normals_towards_viewpoint (toolbox::types::point_cloud_t< T > &normals, const point_t< T > &viewpoint, const toolbox::types::point_cloud_t< T > &cloud)
 法向量方向一致性处理 / Normal orientation consistency processing
 
template<typename T >
double toolbox::pcl::validate_normals (const toolbox::types::point_cloud_t< T > &normals)
 验证法向量的有效性 / Validate normal validity
 

Detailed Description

法向量提取算法统一导出文件 / Unified export file for normal extraction algorithms

该文件提供了所有法向量提取算法的统一接口。法向量是点云处理中的基础特征, 用于描述局部表面的方向,是许多高级算法(如特征描述、表面重建等)的基础。 This file provides a unified interface for all normal extraction algorithms. Normals are fundamental features in point cloud processing, describing the direction of local surfaces, and serve as the basis for many advanced algorithms (such as feature description, surface reconstruction, etc.).

using namespace toolbox::pcl;
// 加载点云 / Load point cloud
point_cloud_t<float> cloud = load_point_cloud("data.pcd");
// 使用PCA方法提取法向量 / Extract normals using PCA method
norm_extractor.set_input(cloud);
norm_extractor.set_num_neighbors(30);
// 提取法向量 / Extract normals
auto normals = norm_extractor.extract();
// 可视化或保存法向量 / Visualize or save normals
save_normals(normals, "normals.pcd");
基于PCA的法向量提取器 / PCA-based normal extractor
Definition pca_norm.hpp:56
Definition base_correspondence_generator.hpp:18
法向量提取算法统一导出文件 / Unified export file for normal extraction algorithms