#include <NormalSpace.h>
Public Member Functions | |
virtual DataPoints | filter (const DataPoints &input) |
Apply filters to input point cloud. This is the non-destructive version and returns a copy. More... | |
virtual void | inPlaceFilter (DataPoints &cloud) |
Apply these filters to a point cloud without copying. More... | |
NormalSpaceDataPointsFilter (const Parameters ¶ms=Parameters()) | |
virtual | ~NormalSpaceDataPointsFilter () |
Public Member Functions inherited from PointMatcher< T >::DataPointsFilter | |
DataPointsFilter () | |
Construct without parameter. More... | |
DataPointsFilter (const std::string &className, const ParametersDoc paramsDoc, const Parameters ¶ms) | |
Construct with parameters. More... | |
virtual void | init () |
Init this filter. More... | |
virtual | ~DataPointsFilter () |
virtual destructor More... | |
Public Member Functions inherited from PointMatcherSupport::Parametrizable | |
template<typename S > | |
S | get (const std::string ¶mName) |
Return the value of paramName, lexically-casted to S. More... | |
std::string | getParamValueString (const std::string ¶mName) |
Get the value of a parameter, as a string. More... | |
Parametrizable () | |
Construct a documentation of parameters from a description in the source. More... | |
Parametrizable (const std::string &className, const ParametersDoc paramsDoc, const Parameters ¶ms) | |
Construct with documented parameters. More... | |
virtual | ~Parametrizable () |
Virtual destructor, do nothing. More... | |
Static Public Member Functions | |
static const ParametersDoc | availableParameters () |
static const std::string | description () |
Static Public Member Functions inherited from PointMatcherSupport::Parametrizable | |
template<typename S > | |
static bool | Comp (std::string a, std::string b) |
Return whether a < b, lexically casted to S. More... | |
Public Attributes | |
const T | epsilon |
const std::size_t | nbSample |
const std::size_t | seed |
Public Attributes inherited from PointMatcherSupport::Parametrizable | |
const std::string | className |
name of the class More... | |
Parameters | parameters |
parameters with their values encoded in string More... | |
const ParametersDoc | parametersDoc |
documentation of parameters More... | |
ParametersUsed | parametersUsed |
parameters whose value has actually been read More... | |
Private Member Functions | |
std::size_t | bucketIdx (T theta, T phi) const |
Private Attributes | |
const std::size_t | nbBucket |
Definition at line 40 of file NormalSpace.h.
typedef PM::DataPoints NormalSpaceDataPointsFilter< T >::DataPoints |
Definition at line 44 of file NormalSpace.h.
typedef PM::DataPointsFilter NormalSpaceDataPointsFilter< T >::DataPointsFilter |
Definition at line 45 of file NormalSpace.h.
typedef DataPoints::Index NormalSpaceDataPointsFilter< T >::Index |
Definition at line 54 of file NormalSpace.h.
typedef PointMatcher<T>::DataPoints::InvalidField NormalSpaceDataPointsFilter< T >::InvalidField |
Definition at line 56 of file NormalSpace.h.
typedef Parametrizable::InvalidParameter NormalSpaceDataPointsFilter< T >::InvalidParameter |
Definition at line 52 of file NormalSpace.h.
typedef PointMatcherSupport::Parametrizable NormalSpaceDataPointsFilter< T >::P |
Definition at line 48 of file NormalSpace.h.
typedef Parametrizable::ParameterDoc NormalSpaceDataPointsFilter< T >::ParameterDoc |
Definition at line 50 of file NormalSpace.h.
typedef Parametrizable::Parameters NormalSpaceDataPointsFilter< T >::Parameters |
Definition at line 49 of file NormalSpace.h.
typedef Parametrizable::ParametersDoc NormalSpaceDataPointsFilter< T >::ParametersDoc |
Definition at line 51 of file NormalSpace.h.
typedef PointMatcherSupport::Parametrizable NormalSpaceDataPointsFilter< T >::Parametrizable |
Definition at line 47 of file NormalSpace.h.
typedef PointMatcher<T> NormalSpaceDataPointsFilter< T >::PM |
Definition at line 43 of file NormalSpace.h.
NormalSpaceDataPointsFilter< T >::NormalSpaceDataPointsFilter | ( | const Parameters & | params = Parameters() | ) |
Definition at line 47 of file NormalSpace.cpp.
|
inlinevirtual |
Definition at line 82 of file NormalSpace.h.
|
inlinestatic |
Definition at line 63 of file NormalSpace.h.
|
inlineprivate |
Definition at line 169 of file NormalSpace.cpp.
|
inlinestatic |
Definition at line 58 of file NormalSpace.h.
|
virtual |
Apply filters to input point cloud. This is the non-destructive version and returns a copy.
Implements PointMatcher< T >::DataPointsFilter.
Definition at line 59 of file NormalSpace.cpp.
|
virtual |
Apply these filters to a point cloud without copying.
(1) put all points of the data into buckets based on their normal direction
(2) uniformly pick points from all the buckets until the desired number of points is selected
(3) A point is randomly picked in a bucket that contains multiple points
(4) Sample the point cloud
Implements PointMatcher< T >::DataPointsFilter.
Definition at line 69 of file NormalSpace.cpp.
const T NormalSpaceDataPointsFilter< T >::epsilon |
Definition at line 75 of file NormalSpace.h.
|
private |
Definition at line 90 of file NormalSpace.h.
const std::size_t NormalSpaceDataPointsFilter< T >::nbSample |
Definition at line 73 of file NormalSpace.h.
const std::size_t NormalSpaceDataPointsFilter< T >::seed |
Definition at line 74 of file NormalSpace.h.