AddDescriptor.h
Go to the documentation of this file.
1 // kate: replace-tabs off; indent-width 4; indent-mode normal
2 // vim: ts=4:sw=4:noexpandtab
3 
4 #pragma once
5 
6 #include "PointMatcher.h"
7 
9 template<typename T>
11 {
12  // Type definitions
14  typedef typename PM::DataPoints DataPoints;
16 
23 
24  typedef typename PointMatcher<T>::Matrix Matrix;
25  typedef typename PointMatcher<T>::Vector Vector;
27 
29  const std::size_t descriptorDimension;
30  const std::vector<T> descriptorValues;
31 
32  inline static const std::string description()
33  {
34  return "Adds a new descriptor to an existing point cloud or overwrites existing descriptor with the same name.\n\n"
35  "Required descriptors: none.\n"
36  "Produced descriptors: User defined.\n"
37  "Altered descriptors: none.\n"
38  "Altered features: none.";
39  }
40 
41  inline static const ParametersDoc availableParameters()
42  {
43  return {
44  {"descriptorName", "Name of the descriptor to be added.", "testDescriptor" },
45  {"descriptorDimension", "Length of the descriptor to be added.", "1", "1", "4294967295", &P::Comp < std::size_t > },
46  {"descriptorValues", "Values of the descriptor to be added.\n"
47  "List of 'descriptorDimension' numbers of type T, separated by commas, closed in brackets,\n"
48  "e.g. [2.2, 3.0, 6.1]", ""}
49  };
50  }
51 
52  //Constructor, uses parameter interface
54 
55  virtual DataPoints filter(const DataPoints& input);
56  virtual void inPlaceFilter(DataPoints& cloud);
57 };
AddDescriptorDataPointsFilter::P
PointMatcherSupport::Parametrizable P
Definition: AddDescriptor.h:18
AddDescriptorDataPointsFilter::Vector
PointMatcher< T >::Vector Vector
Definition: AddDescriptor.h:25
Parameters
PM::Parameters Parameters
Definition: filterProfiler.cpp:20
AddDescriptorDataPointsFilter::inPlaceFilter
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
Definition: AddDescriptor.cpp:29
PointMatcher
Functions and classes that are dependant on scalar type are defined in this templatized class.
Definition: PointMatcher.h:130
AddDescriptorDataPointsFilter::InvalidParameter
Parametrizable::InvalidParameter InvalidParameter
Definition: AddDescriptor.h:22
PointMatcher::DataPoints
A point cloud.
Definition: PointMatcher.h:207
testing::internal::string
::std::string string
Definition: gtest.h:1979
AddDescriptorDataPointsFilter::InvalidField
PointMatcher< T >::DataPoints::InvalidField InvalidField
Definition: AddDescriptor.h:26
PointMatcher::DataPoints::InvalidField
An exception thrown when one tries to access features or descriptors unexisting or of wrong dimension...
Definition: PointMatcher.h:250
AddDescriptorDataPointsFilter::ParametersDoc
Parametrizable::ParametersDoc ParametersDoc
Definition: AddDescriptor.h:21
AddDescriptorDataPointsFilter::availableParameters
static const ParametersDoc availableParameters()
Definition: AddDescriptor.h:41
PointMatcherSupport::Parametrizable::ParametersDoc
std::vector< ParameterDoc > ParametersDoc
The documentation of all parameters.
Definition: Parametrizable.h:187
align_sequence.params
params
Definition: align_sequence.py:13
AddDescriptorDataPointsFilter
Add new descriptor to an existing point cloud.
Definition: AddDescriptor.h:10
AddDescriptorDataPointsFilter::PM
PointMatcher< T > PM
Definition: AddDescriptor.h:13
PointMatcher::Matrix
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > Matrix
A dense matrix over ScalarType.
Definition: PointMatcher.h:169
PointMatcher::DataPointsFilter
A data filter takes a point cloud as input, transforms it, and produces another point cloud as output...
Definition: PointMatcher.h:440
PointMatcherSupport::Parametrizable::InvalidParameter
An exception thrown when one tries to fetch the value of an unexisting parameter.
Definition: Parametrizable.h:144
AddDescriptorDataPointsFilter::DataPointsFilter
PM::DataPointsFilter DataPointsFilter
Definition: AddDescriptor.h:15
PointMatcher::Vector
Eigen::Matrix< T, Eigen::Dynamic, 1 > Vector
A vector over ScalarType.
Definition: PointMatcher.h:161
AddDescriptorDataPointsFilter::ParameterDoc
Parametrizable::ParameterDoc ParameterDoc
Definition: AddDescriptor.h:20
AddDescriptorDataPointsFilter::Parametrizable
PointMatcherSupport::Parametrizable Parametrizable
Definition: AddDescriptor.h:17
PointMatcherSupport::Parametrizable
The superclass of classes that are constructed using generic parameters. This class provides the para...
Definition: Parametrizable.h:141
AddDescriptorDataPointsFilter::descriptorName
const std::string descriptorName
Definition: AddDescriptor.h:28
PointMatcherSupport::Parametrizable::ParameterDoc
The documentation of a parameter.
Definition: Parametrizable.h:160
AddDescriptorDataPointsFilter::description
static const std::string description()
Definition: AddDescriptor.h:32
AddDescriptorDataPointsFilter::descriptorValues
const std::vector< T > descriptorValues
Definition: AddDescriptor.h:30
AddDescriptorDataPointsFilter::filter
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy.
Definition: AddDescriptor.cpp:19
AddDescriptorDataPointsFilter::AddDescriptorDataPointsFilter
AddDescriptorDataPointsFilter(const Parameters &params=Parameters())
Definition: AddDescriptor.cpp:7
PointMatcher.h
public interface
AddDescriptorDataPointsFilter::Parameters
Parametrizable::Parameters Parameters
Definition: AddDescriptor.h:19
AddDescriptorDataPointsFilter::Matrix
PointMatcher< T >::Matrix Matrix
Definition: AddDescriptor.h:24
AddDescriptorDataPointsFilter::descriptorDimension
const std::size_t descriptorDimension
Definition: AddDescriptor.h:29
PointMatcherSupport::Parametrizable::Parameters
std::map< std::string, Parameter > Parameters
Parameters stored as a map of string->string.
Definition: Parametrizable.h:199
AddDescriptorDataPointsFilter::DataPoints
PM::DataPoints DataPoints
Definition: AddDescriptor.h:14


libpointmatcher
Author(s):
autogenerated on Mon Jan 1 2024 03:24:42