mexopencv  0.1
mex interface for opencv library
Functions | Variables
mexopencv_features2d.hpp File Reference

Common definitions for the features2d and xfeatures2d modules. More...

#include "mexopencv.hpp"
#include "opencv2/opencv_modules.hpp"

Go to the source code of this file.

Functions

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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 

Variables

const ConstMap< std::string, int > ORBScoreType
 ORB score types. More...
 
const ConstMap< int, std::string > ORBScoreTypeInv
 inverse ORB score types More...
 
const ConstMap< std::string, int > FASTTypeMap
 FAST types. More...
 
const ConstMap< int, std::string > FASTTypeMapInv
 inverse FAST types More...
 
const ConstMap< std::string, int > KAZEDiffusivityType
 KAZE Diffusivity type. More...
 
const ConstMap< int, std::string > KAZEDiffusivityTypeInv
 inverse KAZE Diffusivity type More...
 
const ConstMap< std::string, int > AKAZEDescriptorType
 AKAZE descriptor type. More...
 
const ConstMap< int, std::string > AKAZEDescriptorTypeInv
 inverse AKAZE descriptor type More...
 
const ConstMap< std::string, int > AgastTypeMap
 AGAST neighborhood types. More...
 
const ConstMap< int, std::string > AgastTypeInvMap
 inverse AGAST neighborhood types More...
 

Detailed Description

Common definitions for the features2d and xfeatures2d modules.

Author
Amro
Date
2015

Header file for MEX-functions that use features2d or xfeatures2d modules from OpenCV library. This file includes maps for option processing, as well as functions for creating instances of Features2D-derived classes from parsed arguments.

Definition in file mexopencv_features2d.hpp.

Function Documentation

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.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::AgastFeatureDetector
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.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::AKAZE
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.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::BFMatcher
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.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::BRISK
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.

Parameters
typedescriptor extractor type, one of:
  • "BRISK"
  • "ORB"
  • "KAZE"
  • "AKAZE"
  • "SIFT" (requires xfeatures2d module)
  • "SURF" (requires xfeatures2d module)
  • "FREAK" (requires xfeatures2d module)
  • "BriefDescriptorExtractor" (requires xfeatures2d module)
  • "LUCID" (requires xfeatures2d module)
  • "LATCH" (requires xfeatures2d module)
  • "DAISY" (requires xfeatures2d module)
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::DescriptorExtractor
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.

Parameters
typedescriptor matcher type, one of:
  • "BruteForce"
  • "BruteForce-L1"
  • "BruteForce-SL2"
  • "BruteForce-Hamming" or "BruteForce-HammingLUT"
  • "BruteForce-Hamming(2)"
  • "FlannBased"
Or:
  • "FlannBasedMatcher"
  • "BFMatcher"
The last two matcher types are the ones that accept extra arguments passed to the corresponding create functions.
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::DescriptorMatcher
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.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::FastFeatureDetector
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.

Parameters
typefeature detector type, one of:
  • "BRISK"
  • "ORB"
  • "MSER"
  • "FastFeatureDetector"
  • "GFTTDetector"
  • "SimpleBlobDetector"
  • "KAZE"
  • "AKAZE"
  • "AgastFeatureDetector"
  • "SIFT" (requires xfeatures2d module)
  • "SURF" (requires xfeatures2d module)
  • "StarDetector" (requires xfeatures2d module)
  • "MSDDetector" (requires xfeatures2d module)
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::FeatureDetector
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.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::FlannBasedMatcher
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.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::GFTTDetector
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.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::KAZE
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.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::MSER
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.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::ORB
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.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance cv::SimpleBlobDetector

Variable Documentation

const ConstMap<int, std::string> AgastTypeInvMap
Initial value:
(cv::AgastFeatureDetector::AGAST_5_8, "AGAST_5_8")
(cv::AgastFeatureDetector::AGAST_7_12d, "AGAST_7_12d")
(cv::AgastFeatureDetector::AGAST_7_12s, "AGAST_7_12s")
(cv::AgastFeatureDetector::OAST_9_16, "OAST_9_16")
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

inverse AGAST neighborhood types

Definition at line 83 of file mexopencv_features2d.hpp.

const ConstMap<std::string, int> AgastTypeMap
Initial value:
("AGAST_5_8", cv::AgastFeatureDetector::AGAST_5_8)
("AGAST_7_12d", cv::AgastFeatureDetector::AGAST_7_12d)
("AGAST_7_12s", cv::AgastFeatureDetector::AGAST_7_12s)
("OAST_9_16", cv::AgastFeatureDetector::OAST_9_16)
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

AGAST neighborhood types.

Definition at line 76 of file mexopencv_features2d.hpp.

const ConstMap<std::string, int> AKAZEDescriptorType
Initial value:
("KAZEUpright", cv::AKAZE::DESCRIPTOR_KAZE_UPRIGHT)
("KAZE", cv::AKAZE::DESCRIPTOR_KAZE)
("MLDBUpright", cv::AKAZE::DESCRIPTOR_MLDB_UPRIGHT)
("MLDB", cv::AKAZE::DESCRIPTOR_MLDB)
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

AKAZE descriptor type.

Definition at line 62 of file mexopencv_features2d.hpp.

const ConstMap<int, std::string> AKAZEDescriptorTypeInv
Initial value:
(cv::AKAZE::DESCRIPTOR_KAZE_UPRIGHT, "KAZEUpright")
(cv::AKAZE::DESCRIPTOR_KAZE, "KAZE")
(cv::AKAZE::DESCRIPTOR_MLDB_UPRIGHT, "MLDBUpright")
(cv::AKAZE::DESCRIPTOR_MLDB, "MLDB")
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

inverse AKAZE descriptor type

Definition at line 69 of file mexopencv_features2d.hpp.

const ConstMap<std::string, int> FASTTypeMap
Initial value:
("TYPE_5_8", cv::FastFeatureDetector::TYPE_5_8)
("TYPE_7_12", cv::FastFeatureDetector::TYPE_7_12)
("TYPE_9_16", cv::FastFeatureDetector::TYPE_9_16)
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

FAST types.

Definition at line 36 of file mexopencv_features2d.hpp.

const ConstMap<int, std::string> FASTTypeMapInv
Initial value:
(cv::FastFeatureDetector::TYPE_5_8, "TYPE_5_8")
(cv::FastFeatureDetector::TYPE_7_12, "TYPE_7_12")
(cv::FastFeatureDetector::TYPE_9_16, "TYPE_9_16")
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

inverse FAST types

Definition at line 42 of file mexopencv_features2d.hpp.

const ConstMap<std::string, int> KAZEDiffusivityType
Initial value:
("PM_G1", cv::KAZE::DIFF_PM_G1)
("PM_G2", cv::KAZE::DIFF_PM_G2)
("WEICKERT", cv::KAZE::DIFF_WEICKERT)
("CHARBONNIER", cv::KAZE::DIFF_CHARBONNIER)
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

KAZE Diffusivity type.

Definition at line 48 of file mexopencv_features2d.hpp.

const ConstMap<int, std::string> KAZEDiffusivityTypeInv
Initial value:
(cv::KAZE::DIFF_PM_G1, "PM_G1")
(cv::KAZE::DIFF_PM_G2, "PM_G2")
(cv::KAZE::DIFF_WEICKERT, "WEICKERT")
(cv::KAZE::DIFF_CHARBONNIER, "CHARBONNIER")
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

inverse KAZE Diffusivity type

Definition at line 55 of file mexopencv_features2d.hpp.

const ConstMap<std::string, int> ORBScoreType
Initial value:
("Harris", cv::ORB::HARRIS_SCORE)
("FAST", cv::ORB::FAST_SCORE)
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

ORB score types.

Definition at line 26 of file mexopencv_features2d.hpp.

const ConstMap<int, std::string> ORBScoreTypeInv
Initial value:
(cv::ORB::HARRIS_SCORE, "Harris")
(cv::ORB::FAST_SCORE, "FAST")
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

inverse ORB score types

Definition at line 31 of file mexopencv_features2d.hpp.