class mp2p_icp_filters::FilterPointCovariances¶
Overview¶
Estimates the covariance of each point’s neighborhood, in place, in metric units.
For each point, the k nearest neighbors in the same layer (including the point itself) within max_search_distance give a sample covariance about their centroid. Its eigenvalues are kept as found, but floored at eigenvalue_floor [m^2], so a perfectly flat or collinear neighborhood stays invertible. Points with fewer than min_neighbors neighbors get a zero covariance.
Adds the “cov_xx”, “cov_xy”, “cov_xz”, “cov_yy”, “cov_yz”, “cov_zz” fields [m^2] to the layer, which must support extra fields (e.g. mrpt::maps::CGenericPointsMap). Read by mp2p_icp::Matcher_VoxelCell with scan_side: point_covs.
Unlike the shape-only covariances of the cov2cov point maps (unit variance in the plane), these are the neighborhood’s own spread, in m^2.
#include <FilterPointCovariances.h> class FilterPointCovariances: public mp2p_icp_filters::FilterBase { public: // structs struct Parameters; // fields Parameters params; // methods virtual void filter(mp2p_icp::metric_map_t& inOut) const; };
Inherited Members¶
public: // methods Parameterizable& operator = (const Parameterizable&); Parameterizable& operator = (Parameterizable&&); virtual void filter(mp2p_icp::metric_map_t& inOut) const = 0; FilterBase& operator = (const FilterBase&); FilterBase& operator = (FilterBase&&);
Methods¶
virtual void filter(mp2p_icp::metric_map_t& inOut) const
See docs above for FilterBase.