Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #pragma once
00036
00037 #include "PointMatcher.h"
00038
00040 template<typename T>
00041 struct ObservationDirectionDataPointsFilter: public PointMatcher<T>::DataPointsFilter
00042 {
00043 typedef PointMatcherSupport::Parametrizable Parametrizable;
00044 typedef PointMatcherSupport::Parametrizable P;
00045 typedef Parametrizable::Parameters Parameters;
00046 typedef Parametrizable::ParameterDoc ParameterDoc;
00047 typedef Parametrizable::ParametersDoc ParametersDoc;
00048 typedef Parametrizable::InvalidParameter InvalidParameter;
00049
00050 typedef typename PointMatcher<T>::Vector Vector;
00051 typedef typename PointMatcher<T>::DataPoints DataPoints;
00052 typedef typename PointMatcher<T>::DataPoints::InvalidField InvalidField;
00053
00054 inline static const std::string description()
00055 {
00056 return "This filter extracts observation directions (vector from point to sensor), considering a sensor at position (x,y,z).\n\n"
00057 "Required descriptors: none.\n"
00058 "Produced descritors: observationDirections.\n"
00059 "Altered descriptors: none.\n"
00060 "Altered features: none.";
00061 }
00062
00063 inline static const ParametersDoc availableParameters()
00064 {
00065 return {
00066 {"x", "x-coordinate of sensor", "0"},
00067 {"y", "y-coordinate of sensor", "0"},
00068 {"z", "z-coordinate of sensor", "0"}
00069 };
00070 }
00071
00072 const T centerX;
00073 const T centerY;
00074 const T centerZ;
00075
00077 ObservationDirectionDataPointsFilter(const Parameters& params = Parameters());
00078 virtual DataPoints filter(const DataPoints& input);
00079 virtual void inPlaceFilter(DataPoints& cloud);
00080 };