mexopencv  3.4.1
MEX interface for OpenCV library
Functions | Variables

Implementation of mexopencv_features2d. More...

#include "mexopencv_features2d.hpp"

Go to the source code of this file.

Functions

Ptr< BRISKcreateBRISK (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of BRISK using options in arguments. More...
 
Ptr< ORBcreateORB (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of ORB using options in arguments. More...
 
Ptr< MSERcreateMSER (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of MSER using options in arguments. More...
 
Ptr< FastFeatureDetectorcreateFastFeatureDetector (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of FastFeatureDetector using options in arguments. More...
 
Ptr< GFTTDetectorcreateGFTTDetector (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of GFTTDetector using options in arguments. More...
 
Ptr< SimpleBlobDetectorcreateSimpleBlobDetector (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of SimpleBlobDetector using options in arguments. More...
 
Ptr< KAZEcreateKAZE (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of KAZE using options in arguments. More...
 
Ptr< AKAZEcreateAKAZE (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of AKAZE using options in arguments. More...
 
Ptr< AgastFeatureDetectorcreateAgastFeatureDetector (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of AgastFeatureDetector using options in arguments. More...
 
Ptr< FeatureDetectorcreateFeatureDetector (const string &type, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Factory function for FeatureDetector creation. More...
 
Ptr< DescriptorExtractorcreateDescriptorExtractor (const string &type, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Factory function for DescriptorExtractor creation. More...
 
Ptr< flann::IndexParamstoIndexParams (const MxArray &m)
 Convert MxArray to FLANN index parameters. More...
 
Ptr< flann::SearchParamstoSearchParams (const MxArray &m)
 Convert MxArray to FLANN search parameters. More...
 
Ptr< FlannBasedMatchercreateFlannBasedMatcher (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of FlannBasedMatcher using options in arguments. More...
 
Ptr< BFMatchercreateBFMatcher (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of BFMatcher using options in arguments. More...
 
Ptr< DescriptorMatchercreateDescriptorMatcher (const string &type, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Factory function for DescriptorMatcher creation. More...
 

Variables

const ConstMap< string, cvflann::flann_centers_init_tCentersInit
 IndexParams centers initialization methods. More...
 

Detailed Description

Implementation of mexopencv_features2d.

Author
Amro
Date
2015

Definition in file mexopencv_features2d.cpp.

Function Documentation

◆ createAgastFeatureDetector()

Ptr<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

Definition at line 352 of file mexopencv_features2d.cpp.

◆ createAKAZE()

Ptr<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

Definition at line 315 of file mexopencv_features2d.cpp.

◆ createBFMatcher()

Ptr<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

Definition at line 1052 of file mexopencv_features2d.cpp.

◆ createBRISK()

Ptr<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

Definition at line 23 of file mexopencv_features2d.cpp.

◆ createDescriptorExtractor()

Ptr<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)
  • "VGG" (requires xfeatures2d module)
  • "BoostDesc" (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

Definition at line 789 of file mexopencv_features2d.cpp.

◆ createDescriptorMatcher()

Ptr<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

Definition at line 1073 of file mexopencv_features2d.cpp.

◆ createFastFeatureDetector()

Ptr<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

Definition at line 166 of file mexopencv_features2d.cpp.

◆ createFeatureDetector()

Ptr<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)
  • "HarrisLaplaceFeatureDetector" (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

Definition at line 744 of file mexopencv_features2d.cpp.

◆ createFlannBasedMatcher()

Ptr<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

Definition at line 1026 of file mexopencv_features2d.cpp.

◆ createGFTTDetector()

Ptr<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

Definition at line 190 of file mexopencv_features2d.cpp.

◆ createKAZE()

Ptr<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

Definition at line 281 of file mexopencv_features2d.cpp.

◆ createMSER()

Ptr<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

Definition at line 122 of file mexopencv_features2d.cpp.

◆ createORB()

Ptr<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

Definition at line 79 of file mexopencv_features2d.cpp.

◆ createSimpleBlobDetector()

Ptr<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

Definition at line 227 of file mexopencv_features2d.cpp.

◆ toIndexParams()

Ptr<flann::IndexParams> toIndexParams ( const MxArray m)

Convert MxArray to FLANN index parameters.

Parameters
mMxArray object of a cell array of the form {'type', 'OptionName', optionValue, ...}
Returns
smart pointer to an instance of cv::flann::IndexParams.

Definition at line 850 of file mexopencv_features2d.cpp.

◆ toSearchParams()

Ptr<flann::SearchParams> toSearchParams ( const MxArray m)

Convert MxArray to FLANN search parameters.

Parameters
mMxArray object of a cell array of the form {'OptionName', optionValue, ...}
Returns
smart pointer to an instance of cv::flann::SearchParams.

Definition at line 1004 of file mexopencv_features2d.cpp.

Variable Documentation

◆ CentersInit

Initial value:
=
FLANN_CENTERS_GONZALES
FLANN_CENTERS_GROUPWISE
FLANN_CENTERS_RANDOM
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927
FLANN_CENTERS_KMEANSPP

IndexParams centers initialization methods.

Definition at line 838 of file mexopencv_features2d.cpp.