Go to the documentation of this file. 1 #ifndef CVGFTTFEATUREDETECTOR_H
2 #define CVGFTTFEATUREDETECTOR_H
16 _detector = cv::GFTTDetector::create(n_per_cell);
20 double computeDist(
const cv::Mat &desc1,
const cv::Mat &desc2)
const override {
21 return cv::norm(desc1, desc2,
_descriptor->defaultNorm());
23 std::vector<std::shared_ptr<AFeature>>
26 std::vector<std::shared_ptr<AFeature>> existing_features)
override;
31 #endif // CVGFTTFEATUREDETECTOR_H
std::vector< std::shared_ptr< AFeature > > detectAndComputeGrid(const cv::Mat &img, const cv::Mat &mask, std::vector< std::shared_ptr< AFeature >> existing_features) override
Virtual function to detect and compute features in a grid (bucketting).
Definition: cvGFTTFeatureDetector.cpp:5
cv::Ptr< cv::DescriptorExtractor > _descriptor
Stores the opencv descriptor extractor.
Definition: aOpenCVFeatureDetector.h:38
cv::Ptr< cv::FeatureDetector > _detector
Stores the opencv detector.
Definition: aOpenCVFeatureDetector.h:37
void init() override
Virtual function to initialize the feature detector.
Definition: cvGFTTFeatureDetector.h:19
double computeDist(const cv::Mat &desc1, const cv::Mat &desc2) const override
Virtual function to compute the distance between two feature descriptors.
Definition: cvGFTTFeatureDetector.h:20
cvGFTTFeatureDetector(int n, int n_per_cell, double max_matching_dist=64)
Definition: cvGFTTFeatureDetector.h:13
Class for detecting and computing GFTT (Good Features To Track) features using OpenCV.
Definition: cvGFTTFeatureDetector.h:11
Definition: AFeature2D.h:8
double _max_matching_dist
distance threshold for matching
Definition: aFeatureDetector.h:136
AOpenCVFeatureDetector class for detecting and computing features using OpenCV.
Definition: aOpenCVFeatureDetector.h:16