Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
69adf86a
Commit
69adf86a
authored
Jun 28, 2010
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed compile error; renamed createDescriptorMatch to createGenericDescriptorMatch
parent
add94f9b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
features2d.hpp
modules/features2d/include/opencv2/features2d/features2d.hpp
+3
-3
descriptors.cpp
modules/features2d/src/descriptors.cpp
+1
-2
generic_descriptor_match.cpp
samples/cpp/generic_descriptor_match.cpp
+6
-5
adetectordescriptor_evaluation.cpp
tests/cv/src/adetectordescriptor_evaluation.cpp
+2
-2
No files found.
modules/features2d/include/opencv2/features2d/features2d.hpp
View file @
69adf86a
...
...
@@ -1470,7 +1470,7 @@ protected:
SURF
surf
;
};
DescriptorExtractor
*
createDescriptorExtractor
(
const
string
&
descriptorExtractorType
);
CV_EXPORTS
DescriptorExtractor
*
createDescriptorExtractor
(
const
string
&
descriptorExtractorType
);
/****************************************************************************************\
* Distance *
...
...
@@ -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 *
...
...
@@ -2170,7 +2170,7 @@ protected:
Params
params
;
};
GenericDescriptorMatch
*
create
DescriptorMatch
(
const
string
&
genericDescritptorMatchType
,
const
string
&
paramsFilename
=
string
()
);
CV_EXPORTS
GenericDescriptorMatch
*
createGeneric
DescriptorMatch
(
const
string
&
genericDescritptorMatchType
,
const
string
&
paramsFilename
=
string
()
);
/****************************************************************************************\
* VectorDescriptorMatch *
\****************************************************************************************/
...
...
modules/features2d/src/descriptors.cpp
View file @
69adf86a
...
...
@@ -40,7 +40,6 @@
//M*/
#include "precomp.hpp"
#include <stdio.h>
//#define _KDTREE
...
...
@@ -335,7 +334,7 @@ void GenericDescriptorMatch::clear()
collection
.
clear
();
}
GenericDescriptorMatch
*
createDescriptorMatch
(
const
string
&
genericDescritptorMatchType
,
const
string
&
paramsFilename
)
GenericDescriptorMatch
*
create
Generic
DescriptorMatch
(
const
string
&
genericDescritptorMatchType
,
const
string
&
paramsFilename
)
{
GenericDescriptorMatch
*
descriptorMatch
=
0
;
if
(
!
genericDescritptorMatchType
.
compare
(
"ONEWAY"
)
)
...
...
samples/cpp/generic_descriptor_match.cpp
View file @
69adf86a
#include <cv.h>
#include <cvaux.h>
#include "opencv2/core/core.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp"
#include <highgui.h>
#include <string>
#include <cstdio>
using
namespace
cv
;
...
...
@@ -23,7 +24,7 @@ int main(int argc, char** argv)
std
::
string
alg_name
=
std
::
string
(
argv
[
3
]);
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
)
{
printf
(
"Cannot create descriptor
\n
"
);
...
...
tests/cv/src/adetectordescriptor_evaluation.cpp
View file @
69adf86a
...
...
@@ -1325,8 +1325,8 @@ void DescriptorQualityTest::writePlotData( int di ) const
void
DescriptorQualityTest
::
readAlgorithm
(
)
{
defaultDescMatch
=
createDescriptorMatch
(
algName
);
specificDescMatch
=
createDescriptorMatch
(
algName
);
defaultDescMatch
=
create
Generic
DescriptorMatch
(
algName
);
specificDescMatch
=
create
Generic
DescriptorMatch
(
algName
);
if
(
defaultDescMatch
==
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment