Image Component Library (ICL)
SurfFeatureDetector.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLCV/src/ICLCV/SurfFeatureDetector.h **
10 ** Module : ICLCV **
11 ** Authors: Christof Elbrechter **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 
32 #pragma once
33 
34 #include <ICLUtils/CompatMacros.h>
35 #include <ICLCore/ImgBase.h>
36 #include <ICLCV/SurfFeature.h>
37 #include <string>
38 #include <vector>
39 
40 namespace icl{
41  namespace cv{
42 
44 
50  struct Data;
51  Data *m_data;
52 
53  public:
54 
56 
58  SurfFeatureDetector(int octaves=5, int intervals=4, int sampleStep=2,
59  float threshold = 0.00005f,
60  const std::string &plugin="best");
61 
63 
65  const std::vector<SurfFeature> &detect(const core::ImgBase *image);
66 
68 
72  void setReferenceImage(const core::ImgBase *image);
73 
75  const std::vector<SurfFeature> &getReferenceFeatures() const ;
76 
78  const std::vector<SurfMatch> &match(const core::ImgBase *image, float significance=0.65);
79 
80  void setOctaves(int octaves);
81 
82  void setIntervals(int intervals);
83 
84  void setSampleStep(int sampleStep);
85 
86  void setThreshold(float threshold);
87  };
88 
89  }
90 }
ICLUtils_API MatchResult match(const std::string &text, const std::string &regex, int numSubMatches=0)
Applies a regular expression match on given text and regex pattern (internally using regex....
undocument this line if you encounter any issues!
Definition: Any.h:37
Data * m_data
hidden implementation
Definition: SurfFeatureDetector.h:50
#define ICLCV_API
Definition: CompatMacros.h:177
ICL's New Generic Surf Feature detection class.
Definition: SurfFeatureDetector.h:49
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131