class mp2p_icp_filters::FilterPlaneSegmentation¶
Overview¶
Segments the large planar surfaces (ground, walls, facades…) of a point layer with segment_planes() : region growing on voxel normals, conservative merging, and robust refinement. Meant for whole maps (1e6 to 1e7 points) as well as single scans; see PlaneSegmentationParams for the parameters.
Outputs, all optional:
output_layer_planes: the inliers of all planes, with all the input point fields.output_layer_others: the remaining points.plane_id_field: auint16per-point field with the plane of each point: 0 for none,kfor the k-th plane found by this call (by decreasing number of points). It is written tooutput_layer_planesif that is set, otherwise to the input layer itself, which must then support extra fields (e.g. mrpt::maps::CGenericPointsMap). Ids restart at each call.store_planes: append each plane, with its area and number of points, tometric_map_t::planes.
Output layers are created if they do not exist (as mrpt::maps::CGenericPointsMap when they must hold the plane id field, or as the input class otherwise), or appended to. The configuration is checked before the map is changed.
#include <FilterPlaneSegmentation.h> class FilterPlaneSegmentation: 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&&);
Fields¶
Parameters params
Algorithm parameters
Methods¶
virtual void filter(mp2p_icp::metric_map_t& inOut) const
See docs above for FilterBase.