00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef RANGEDETECTOR_H_
00024 #define RANGEDETECTOR_H_
00025
00026 #include <feature/InterestPoint.h>
00027 #include <feature/Detector.h>
00028 #include <feature/MultiScaleDetector.h>
00029 #include <utils/Convolution.h>
00030 #include <utils/PeakFinder.h>
00031
00032 #include <vector>
00033
00042 class RangeDetector: public MultiScaleDetector {
00043 public:
00053 RangeDetector(const PeakFinder* peak, unsigned int scales = 5, double sigma = 1.6, double step = 1.4, SmoothingFilterFamily filterType = BESSEL);
00054
00055 protected:
00057 virtual void computeDifferentialBank();
00058
00059 virtual void computeSignal(const LaserReading& reading, std::vector<double>& signal, std::vector<unsigned int>& maxRangeMapping) const;
00060
00061 virtual unsigned int computeInterestPoints(const LaserReading& reading, const std::vector<double>& signal, std::vector<InterestPoint*>& point,
00062 std::vector< std::vector<unsigned int> >& indexes, std::vector<unsigned int>& maxRangeMapping) const;
00063 };
00064
00065 #endif