class mp2p_icp::NearestCellCapable¶
Overview¶
Virtual interface for maps that hold the statistics of the surface inside each cell of a lattice, rather than points (e.g. mola::VoxelStatsMap).
A matcher (mp2p_icp::Matcher_VoxelCell) looks up the cell a query point falls in and builds a cov2cov pairing from the cell’s model. All quantities are metric: covariances in m^2, so the information of a pairing is an inverse variance.
See also:
#include <NearestCellCapable.h> class NearestCellCapable { public: // structs struct CellQuery; struct CellRef; // construction NearestCellCapable(); NearestCellCapable(const NearestCellCapable&); NearestCellCapable(NearestCellCapable&&); // methods NearestCellCapable& operator = (const NearestCellCapable&); NearestCellCapable& operator = (NearestCellCapable&&); virtual CellQuery nn_search_cell(const mrpt::math::TPoint3Df& p_global, bool neighbor_fallback) const = 0; }; // direct descendants class VoxelStatsMap;
Methods¶
virtual CellQuery nn_search_cell( const mrpt::math::TPoint3Df& p_global, bool neighbor_fallback ) const = 0
Looks up the active cell containing p_global (map frame).
With neighbor_fallback, if that cell is not active, the closest active cell among its 26 neighbors is returned instead, provided its mean lies within one cell diagonal of the query.
The returned pointer is valid until the map is next modified. Must be a pure read, safe to call from several threads at once.