Go to the documentation of this file. 1 #ifndef AOPENCVFEATUREDETECTOR_H
2 #define AOPENCVFEATUREDETECTOR_H
22 std::vector<cv::KeyPoint> &keypoints,
25 void computeDescriptor(
const cv::Mat &img, std::vector<std::shared_ptr<AFeature>> &features);
30 void retainBest(std::vector<cv::KeyPoint> &_keypoints,
int n);
34 std::vector<std::shared_ptr<AFeature>> existing_features = std::vector<std::shared_ptr<AFeature>>());
43 #endif // AOPENCVFEATUREDETECTOR_H
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
AOpenCVFeatureDetector(int n, int n_per_cell)
Definition: aOpenCVFeatureDetector.h:18
void detectAndCompute(const cv::Mat &img, const cv::Mat &mask, std::vector< cv::KeyPoint > &keypoints, cv::Mat &descriptors, int n_points=0)
Virtual function to detect and compute features in an image.
Definition: aOpenCVFeatureDetector.cpp:9
void retainBest(std::vector< cv::KeyPoint > &_keypoints, int n)
Retain the n best keypoints based on their response.
Definition: aOpenCVFeatureDetector.cpp:175
Definition: AFeature2D.h:8
void computeDescriptor(const cv::Mat &img, std::vector< std::shared_ptr< AFeature >> &features)
Virtual function to compute descriptors for a set of features.
Definition: aOpenCVFeatureDetector.cpp:153
Abstract class for feature detectors.
Definition: aFeatureDetector.h:22
std::vector< std::shared_ptr< AFeature > > detectAndComputeGrid(const cv::Mat &img, const cv::Mat &mask, std::vector< std::shared_ptr< AFeature >> existing_features=std::vector< std::shared_ptr< AFeature >>())
Virtual function to detect and compute features in a grid (bucketting).
Definition: aOpenCVFeatureDetector.cpp:41
AOpenCVFeatureDetector class for detecting and computing features using OpenCV.
Definition: aOpenCVFeatureDetector.h:16