class mp2p_icp_filters::FilterDecimate

Overview

Naive point cloud downsampling.

This filter reduces the number of points by keeping only one out of every N points. It can be configured either with a fixed decimation factor or by providing a target maximum size (in which case the decimation factor is computed automatically).

If the output layer exists, new points are accumulated on it: previous contents are not cleared.

Note: This filter is non-deterministic regarding the spatial distribution of points, as it relies purely on the internal storage order.

#include <FilterDecimate.h>

class FilterDecimate: 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

    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.