Go to the documentation of this file. 1 #ifndef ACUSTOMFEATUREDETECTOR_H
2 #define ACUSTOMFEATUREDETECTOR_H
5 #include <opencv2/core.hpp>
6 #include <opencv2/features2d.hpp>
26 std::vector<cv::KeyPoint> &keypoints,
32 std::vector<std::shared_ptr<AFeature>> existing_features = std::vector<std::shared_ptr<AFeature>>());
36 std::vector<std::shared_ptr<AFeature>> &features) = 0;
37 virtual void computeDescriptor(
const cv::Mat &img, std::vector<std::shared_ptr<AFeature>> &features) = 0;
46 #endif // ACUSTOMFEATUREDETECTOR_H
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: aCustomFeatureDetector.cpp:9
virtual void customDetectAndCompute(const cv::Mat &img, const cv::Mat &mask, std::vector< std::shared_ptr< AFeature >> &features)=0
const int getDefaultNorm() const
Definition: aCustomFeatureDetector.h:40
int _defaultNorm
Definition: aCustomFeatureDetector.h:41
Definition: AFeature2D.h:8
ACustomFeatureDetector(int n, int n_per_cell)
Definition: aCustomFeatureDetector.h:22
Abstract class for feature detectors.
Definition: aFeatureDetector.h:22
Class for custom feature detection and computation.
Definition: aCustomFeatureDetector.h:20
virtual void computeDescriptor(const cv::Mat &img, std::vector< std::shared_ptr< AFeature >> &features)=0
Virtual function to compute descriptors for a set of features.
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: aCustomFeatureDetector.h:24