SaDVIO
csvKeypointDetector.h
Go to the documentation of this file.
1 #ifndef CSVKEYPOINTDETECTOR_H
2 #define CSVKEYPOINTDETECTOR_H
3 
5 
6 namespace isae {
7 
29  public:
30  CsvKeypointDetector(int n, int n_per_cell, double max_matching_dist = 64)
31  : ACustomFeatureDetector(n, n_per_cell) {
32  this->init();
33  _max_matching_dist = max_matching_dist;
34  }
35 
36  void customDetectAndCompute(const cv::Mat &img,
37  const cv::Mat &mask,
38  std::vector<std::shared_ptr<AFeature>> &features) override;
39  void computeDescriptor(const cv::Mat &img, std::vector<std::shared_ptr<AFeature>> &features) override;
40 
41  void init() override;
42  double computeDist(const cv::Mat &desc1, const cv::Mat &desc2) const override;
43 
44  private:
45  std::string _folder_path;
46 };
47 
48 } // namespace isae
49 
50 #endif // CSVKEYPOINTDETECTOR_H
isae::CsvKeypointDetector::init
void init() override
Virtual function to initialize the feature detector.
Definition: csvKeypointDetector.cpp:11
isae::CsvKeypointDetector::computeDescriptor
void computeDescriptor(const cv::Mat &img, std::vector< std::shared_ptr< AFeature >> &features) override
Virtual function to compute descriptors for a set of features.
Definition: csvKeypointDetector.cpp:62
isae::CsvKeypointDetector::CsvKeypointDetector
CsvKeypointDetector(int n, int n_per_cell, double max_matching_dist=64)
Definition: csvKeypointDetector.h:30
isae::CsvKeypointDetector
This Class is design for CSV reading features.
Definition: csvKeypointDetector.h:28
aCustomFeatureDetector.h
isae
Definition: AFeature2D.h:8
isae::AFeatureDetector::_max_matching_dist
double _max_matching_dist
distance threshold for matching
Definition: aFeatureDetector.h:136
isae::CsvKeypointDetector::computeDist
double computeDist(const cv::Mat &desc1, const cv::Mat &desc2) const override
Virtual function to compute the distance between two feature descriptors.
Definition: csvKeypointDetector.cpp:64
isae::ACustomFeatureDetector
Class for custom feature detection and computation.
Definition: aCustomFeatureDetector.h:20
isae::CsvKeypointDetector::customDetectAndCompute
void customDetectAndCompute(const cv::Mat &img, const cv::Mat &mask, std::vector< std::shared_ptr< AFeature >> &features) override
Definition: csvKeypointDetector.cpp:15