mexopencv  0.1
mex interface for opencv library
mexopencv_features2d.hpp
Go to the documentation of this file.
1 
12 #ifndef __MEXOPENCV_FEATURES2D_HPP__
13 #define __MEXOPENCV_FEATURES2D_HPP__
14 
15 #include "mexopencv.hpp"
16 
17 #include "opencv2/opencv_modules.hpp"
18 #ifdef HAVE_OPENCV_XFEATURES2D
19 #include "opencv2/xfeatures2d.hpp"
20 #endif
21 
22 
23 // ==================== Feature Detection and Description ====================
24 
27  ("Harris", cv::ORB::HARRIS_SCORE)
28  ("FAST", cv::ORB::FAST_SCORE);
29 
32  (cv::ORB::HARRIS_SCORE, "Harris")
33  (cv::ORB::FAST_SCORE, "FAST");
34 
37  ("TYPE_5_8", cv::FastFeatureDetector::TYPE_5_8)
38  ("TYPE_7_12", cv::FastFeatureDetector::TYPE_7_12)
39  ("TYPE_9_16", cv::FastFeatureDetector::TYPE_9_16);
40 
43  (cv::FastFeatureDetector::TYPE_5_8, "TYPE_5_8")
44  (cv::FastFeatureDetector::TYPE_7_12, "TYPE_7_12")
45  (cv::FastFeatureDetector::TYPE_9_16, "TYPE_9_16");
46 
49  ("PM_G1", cv::KAZE::DIFF_PM_G1)
50  ("PM_G2", cv::KAZE::DIFF_PM_G2)
51  ("WEICKERT", cv::KAZE::DIFF_WEICKERT)
52  ("CHARBONNIER", cv::KAZE::DIFF_CHARBONNIER);
53 
56  (cv::KAZE::DIFF_PM_G1, "PM_G1")
57  (cv::KAZE::DIFF_PM_G2, "PM_G2")
58  (cv::KAZE::DIFF_WEICKERT, "WEICKERT")
59  (cv::KAZE::DIFF_CHARBONNIER, "CHARBONNIER");
60 
63  ("KAZEUpright", cv::AKAZE::DESCRIPTOR_KAZE_UPRIGHT)
64  ("KAZE", cv::AKAZE::DESCRIPTOR_KAZE)
65  ("MLDBUpright", cv::AKAZE::DESCRIPTOR_MLDB_UPRIGHT)
66  ("MLDB", cv::AKAZE::DESCRIPTOR_MLDB);
67 
70  (cv::AKAZE::DESCRIPTOR_KAZE_UPRIGHT, "KAZEUpright")
71  (cv::AKAZE::DESCRIPTOR_KAZE, "KAZE")
72  (cv::AKAZE::DESCRIPTOR_MLDB_UPRIGHT, "MLDBUpright")
73  (cv::AKAZE::DESCRIPTOR_MLDB, "MLDB");
74 
77  ("AGAST_5_8", cv::AgastFeatureDetector::AGAST_5_8)
78  ("AGAST_7_12d", cv::AgastFeatureDetector::AGAST_7_12d)
79  ("AGAST_7_12s", cv::AgastFeatureDetector::AGAST_7_12s)
80  ("OAST_9_16", cv::AgastFeatureDetector::OAST_9_16);
81 
84  (cv::AgastFeatureDetector::AGAST_5_8, "AGAST_5_8")
85  (cv::AgastFeatureDetector::AGAST_7_12d, "AGAST_7_12d")
86  (cv::AgastFeatureDetector::AGAST_7_12s, "AGAST_7_12s")
87  (cv::AgastFeatureDetector::OAST_9_16, "OAST_9_16");
88 
89 #ifdef HAVE_OPENCV_XFEATURES2D
92  ("None", cv::xfeatures2d::DAISY::NRM_NONE)
93  ("Partial", cv::xfeatures2d::DAISY::NRM_PARTIAL)
94  ("Full", cv::xfeatures2d::DAISY::NRM_FULL)
95  ("SIFT", cv::xfeatures2d::DAISY::NRM_SIFT);
96 
99  (cv::xfeatures2d::DAISY::NRM_NONE, "None")
100  (cv::xfeatures2d::DAISY::NRM_PARTIAL, "Partial")
101  (cv::xfeatures2d::DAISY::NRM_FULL, "Full")
102  (cv::xfeatures2d::DAISY::NRM_SIFT, "SIFT");
103 #endif
104 
110 cv::Ptr<cv::BRISK> createBRISK(
111  std::vector<MxArray>::const_iterator first,
112  std::vector<MxArray>::const_iterator last);
113 
119 cv::Ptr<cv::ORB> createORB(
120  std::vector<MxArray>::const_iterator first,
121  std::vector<MxArray>::const_iterator last);
122 
128 cv::Ptr<cv::MSER> createMSER(
129  std::vector<MxArray>::const_iterator first,
130  std::vector<MxArray>::const_iterator last);
131 
137 cv::Ptr<cv::FastFeatureDetector> createFastFeatureDetector(
138  std::vector<MxArray>::const_iterator first,
139  std::vector<MxArray>::const_iterator last);
140 
146 cv::Ptr<cv::GFTTDetector> createGFTTDetector(
147  std::vector<MxArray>::const_iterator first,
148  std::vector<MxArray>::const_iterator last);
149 
155 cv::Ptr<cv::SimpleBlobDetector> createSimpleBlobDetector(
156  std::vector<MxArray>::const_iterator first,
157  std::vector<MxArray>::const_iterator last);
158 
164 cv::Ptr<cv::KAZE> createKAZE(
165  std::vector<MxArray>::const_iterator first,
166  std::vector<MxArray>::const_iterator last);
167 
173 cv::Ptr<cv::AKAZE> createAKAZE(
174  std::vector<MxArray>::const_iterator first,
175  std::vector<MxArray>::const_iterator last);
176 
182 cv::Ptr<cv::AgastFeatureDetector> createAgastFeatureDetector(
183  std::vector<MxArray>::const_iterator first,
184  std::vector<MxArray>::const_iterator last);
185 
186 #ifdef HAVE_OPENCV_XFEATURES2D
187 
192 cv::Ptr<cv::xfeatures2d::SIFT> createSIFT(
193  std::vector<MxArray>::const_iterator first,
194  std::vector<MxArray>::const_iterator last);
195 
201 cv::Ptr<cv::xfeatures2d::SURF> createSURF(
202  std::vector<MxArray>::const_iterator first,
203  std::vector<MxArray>::const_iterator last);
204 
210 cv::Ptr<cv::xfeatures2d::FREAK> createFREAK(
211  std::vector<MxArray>::const_iterator first,
212  std::vector<MxArray>::const_iterator last);
213 
219 cv::Ptr<cv::xfeatures2d::StarDetector> createStarDetector(
220  std::vector<MxArray>::const_iterator first,
221  std::vector<MxArray>::const_iterator last);
222 
228 cv::Ptr<cv::xfeatures2d::BriefDescriptorExtractor> createBriefDescriptorExtractor(
229  std::vector<MxArray>::const_iterator first,
230  std::vector<MxArray>::const_iterator last);
231 
237 cv::Ptr<cv::xfeatures2d::LUCID> createLUCID(
238  std::vector<MxArray>::const_iterator first,
239  std::vector<MxArray>::const_iterator last);
240 
246 cv::Ptr<cv::xfeatures2d::LATCH> createLATCH(
247  std::vector<MxArray>::const_iterator first,
248  std::vector<MxArray>::const_iterator last);
249 
255 cv::Ptr<cv::xfeatures2d::DAISY> createDAISY(
256  std::vector<MxArray>::const_iterator first,
257  std::vector<MxArray>::const_iterator last);
258 
264 cv::Ptr<cv::xfeatures2d::MSDDetector> createMSDDetector(
265  std::vector<MxArray>::const_iterator first,
266  std::vector<MxArray>::const_iterator last);
267 #endif
268 
288 cv::Ptr<cv::FeatureDetector> createFeatureDetector(
289  const std::string& type,
290  std::vector<MxArray>::const_iterator first,
291  std::vector<MxArray>::const_iterator last);
292 
310 cv::Ptr<cv::DescriptorExtractor> createDescriptorExtractor(
311  const std::string& type,
312  std::vector<MxArray>::const_iterator first,
313  std::vector<MxArray>::const_iterator last);
314 
315 
316 // ==================== Descriptor Matching ====================
317 
323 cv::Ptr<cv::FlannBasedMatcher> createFlannBasedMatcher(
324  std::vector<MxArray>::const_iterator first,
325  std::vector<MxArray>::const_iterator last);
326 
332 cv::Ptr<cv::BFMatcher> createBFMatcher(
333  std::vector<MxArray>::const_iterator first,
334  std::vector<MxArray>::const_iterator last);
335 
355 cv::Ptr<cv::DescriptorMatcher> createDescriptorMatcher(
356  const std::string& type,
357  std::vector<MxArray>::const_iterator first,
358  std::vector<MxArray>::const_iterator last);
359 
360 #endif
const ConstMap< std::string, int > AgastTypeMap
AGAST neighborhood types.
const ConstMap< std::string, int > KAZEDiffusivityType
KAZE Diffusivity type.
cv::Ptr< cv::MSER > createMSER(std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of MSER using options in arguments.
const ConstMap< int, std::string > ORBScoreTypeInv
inverse ORB score types
cv::Ptr< cv::AKAZE > createAKAZE(std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of AKAZE using options in arguments.
cv::Ptr< cv::BFMatcher > createBFMatcher(std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of BFMatcher using options in arguments.
cv::Ptr< cv::DescriptorExtractor > createDescriptorExtractor(const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Factory function for DescriptorExtractor creation.
const ConstMap< std::string, int > AKAZEDescriptorType
AKAZE descriptor type.
cv::Ptr< cv::GFTTDetector > createGFTTDetector(std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of GFTTDetector using options in arguments.
cv::Ptr< cv::KAZE > createKAZE(std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of KAZE using options in arguments.
cv::Ptr< cv::FastFeatureDetector > createFastFeatureDetector(std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of FastFeatureDetector using options in arguments.
cv::Ptr< cv::ORB > createORB(std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of ORB using options in arguments.
cv::Ptr< cv::FeatureDetector > createFeatureDetector(const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Factory function for FeatureDetector creation.
cv::Ptr< cv::FlannBasedMatcher > createFlannBasedMatcher(std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of FlannBasedMatcher using options in arguments.
cv::Ptr< cv::DescriptorMatcher > createDescriptorMatcher(const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Factory function for DescriptorMatcher creation.
const ConstMap< int, std::string > KAZEDiffusivityTypeInv
inverse KAZE Diffusivity type
cv::Ptr< cv::AgastFeatureDetector > createAgastFeatureDetector(std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of AgastFeatureDetector using options in arguments.
Global constant definitions.
const ConstMap< int, std::string > AKAZEDescriptorTypeInv
inverse AKAZE descriptor type
const ConstMap< int, std::string > FASTTypeMapInv
inverse FAST types
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927
cv::Ptr< cv::SimpleBlobDetector > createSimpleBlobDetector(std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of SimpleBlobDetector using options in arguments.
const ConstMap< int, std::string > AgastTypeInvMap
inverse AGAST neighborhood types
const ConstMap< std::string, int > FASTTypeMap
FAST types.
cv::Ptr< cv::BRISK > createBRISK(std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of BRISK using options in arguments.
const ConstMap< std::string, int > ORBScoreType
ORB score types.