Commit 69adf86a authored by Maria Dimashova's avatar Maria Dimashova

fixed compile error; renamed createDescriptorMatch to createGenericDescriptorMatch

parent add94f9b
...@@ -1470,7 +1470,7 @@ protected: ...@@ -1470,7 +1470,7 @@ protected:
SURF surf; SURF surf;
}; };
DescriptorExtractor* createDescriptorExtractor( const string& descriptorExtractorType ); CV_EXPORTS DescriptorExtractor* createDescriptorExtractor( const string& descriptorExtractorType );
/****************************************************************************************\ /****************************************************************************************\
* Distance * * Distance *
...@@ -1873,7 +1873,7 @@ void BruteForceMatcher<Distance>::matchImpl( const Mat& descriptors_1, const Mat ...@@ -1873,7 +1873,7 @@ void BruteForceMatcher<Distance>::matchImpl( const Mat& descriptors_1, const Mat
} }
DescriptorMatcher* createDescriptorMatcher( const string& descriptorMatcherType ); CV_EXPORTS DescriptorMatcher* createDescriptorMatcher( const string& descriptorMatcherType );
/****************************************************************************************\ /****************************************************************************************\
* GenericDescriptorMatch * * GenericDescriptorMatch *
...@@ -2170,7 +2170,7 @@ protected: ...@@ -2170,7 +2170,7 @@ protected:
Params params; Params params;
}; };
GenericDescriptorMatch* createDescriptorMatch( const string& genericDescritptorMatchType, const string &paramsFilename = string () ); CV_EXPORTS GenericDescriptorMatch* createGenericDescriptorMatch( const string& genericDescritptorMatchType, const string &paramsFilename = string () );
/****************************************************************************************\ /****************************************************************************************\
* VectorDescriptorMatch * * VectorDescriptorMatch *
\****************************************************************************************/ \****************************************************************************************/
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
//M*/ //M*/
#include "precomp.hpp" #include "precomp.hpp"
#include <stdio.h>
//#define _KDTREE //#define _KDTREE
...@@ -335,7 +334,7 @@ void GenericDescriptorMatch::clear() ...@@ -335,7 +334,7 @@ void GenericDescriptorMatch::clear()
collection.clear(); collection.clear();
} }
GenericDescriptorMatch* createDescriptorMatch( const string& genericDescritptorMatchType, const string &paramsFilename ) GenericDescriptorMatch* createGenericDescriptorMatch( const string& genericDescritptorMatchType, const string &paramsFilename )
{ {
GenericDescriptorMatch *descriptorMatch = 0; GenericDescriptorMatch *descriptorMatch = 0;
if( ! genericDescritptorMatchType.compare ("ONEWAY") ) if( ! genericDescritptorMatchType.compare ("ONEWAY") )
......
#include <cv.h> #include "opencv2/core/core.hpp"
#include <cvaux.h> #include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp"
#include <highgui.h> #include <highgui.h>
#include <cstdio>
#include <string>
using namespace cv; using namespace cv;
...@@ -23,7 +24,7 @@ int main(int argc, char** argv) ...@@ -23,7 +24,7 @@ int main(int argc, char** argv)
std::string alg_name = std::string(argv[3]); std::string alg_name = std::string(argv[3]);
std::string params_filename = std::string(argv[4]); std::string params_filename = std::string(argv[4]);
GenericDescriptorMatch *descriptorMatch = GenericDescriptorMatch::CreateDescriptorMatch (alg_name, params_filename); GenericDescriptorMatch *descriptorMatch = createGenericDescriptorMatch(alg_name, params_filename);
if( descriptorMatch == 0 ) if( descriptorMatch == 0 )
{ {
printf ("Cannot create descriptor\n"); printf ("Cannot create descriptor\n");
......
...@@ -1325,8 +1325,8 @@ void DescriptorQualityTest::writePlotData( int di ) const ...@@ -1325,8 +1325,8 @@ void DescriptorQualityTest::writePlotData( int di ) const
void DescriptorQualityTest::readAlgorithm( ) void DescriptorQualityTest::readAlgorithm( )
{ {
defaultDescMatch = createDescriptorMatch( algName ); defaultDescMatch = createGenericDescriptorMatch( algName );
specificDescMatch = createDescriptorMatch( algName ); specificDescMatch = createGenericDescriptorMatch( algName );
if( defaultDescMatch == 0 ) if( defaultDescMatch == 0 )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment