Avoid duplicated surf extraction step when same parameters are used for detection and descriptors calculation

This commit is contained in:
Andrey Kamaev
2011-10-03 08:44:28 +00:00
parent 20af242a03
commit ee413b8026
2 changed files with 22 additions and 5 deletions

View File

@@ -79,13 +79,14 @@ class CV_EXPORTS SurfFeaturesFinder : public FeaturesFinder
{
public:
SurfFeaturesFinder(double hess_thresh = 300., int num_octaves = 3, int num_layers = 4,
int num_octaves_descr = 4, int num_layers_descr = 2);
int num_octaves_descr = /*4*/3, int num_layers_descr = /*2*/4);
private:
void find(const Mat &image, ImageFeatures &features);
Ptr<FeatureDetector> detector_;
Ptr<DescriptorExtractor> extractor_;
Ptr<SURF> surf;
};