small_gicp
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
small_gicp::AxisAlignedProjection Struct Reference

Conventional axis-aligned projection (i.e., selecting any of XYZ axes with the largest variance). More...

#include <projection.hpp>

Public Member Functions

double operator() (const Eigen::Vector4d &pt) const
 Project the point to the selected axis. More...
 

Static Public Member Functions

template<typename PointCloud , typename IndexConstIterator >
static AxisAlignedProjection find_axis (const PointCloud &points, IndexConstIterator first, IndexConstIterator last, const ProjectionSetting &setting)
 Find the axis with the largest variance. More...
 

Public Attributes

int axis
 Axis index (0: X, 1: Y, 2: Z) More...
 

Detailed Description

Conventional axis-aligned projection (i.e., selecting any of XYZ axes with the largest variance).

Note
Up to max_scan_count samples are used to estimate the variance.

Member Function Documentation

◆ find_axis()

template<typename PointCloud , typename IndexConstIterator >
static AxisAlignedProjection small_gicp::AxisAlignedProjection::find_axis ( const PointCloud points,
IndexConstIterator  first,
IndexConstIterator  last,
const ProjectionSetting setting 
)
inlinestatic

Find the axis with the largest variance.

Parameters
pointsPoint cloud
firstFirst point index iterator
lastLast point index iterator
settingSearch setting
Returns
Projection with the largest variance axis

◆ operator()()

double small_gicp::AxisAlignedProjection::operator() ( const Eigen::Vector4d &  pt) const
inline

Project the point to the selected axis.

Parameters
ptPoint to project
Returns
Projected value

Member Data Documentation

◆ axis

int small_gicp::AxisAlignedProjection::axis

Axis index (0: X, 1: Y, 2: Z)


The documentation for this struct was generated from the following file: