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
cfcef3ec
Commit
cfcef3ec
authored
May 06, 2015
by
laurentBerger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
File was not saved due to wrong file name.
Add a comment about bug 4308
parent
09930938
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
matchmethod_orb_akaze_brisk.cpp
samples/cpp/matchmethod_orb_akaze_brisk.cpp
+5
-2
No files found.
samples/cpp/matchmethod_orb_akaze_brisk.cpp
View file @
cfcef3ec
...
...
@@ -21,6 +21,7 @@ int main(int argc, char *argv[])
vector
<
String
>
typeAlgoMatch
;
vector
<
String
>
fileName
;
help
();
system
(
"cd"
);
// This descriptor are going to be detect and compute
typeDesc
.
push_back
(
"AKAZE"
);
// see http://docs.opencv.org/trunk/d8/d30/classcv_1_1AKAZE.html
typeDesc
.
push_back
(
"ORB"
);
// see http://docs.opencv.org/trunk/de/dbf/classcv_1_1BRISK.html
...
...
@@ -112,13 +113,15 @@ int main(int argc, char *argv[])
drawMatches
(
img1
,
keyImg1
,
img2
,
keyImg2
,
bestMatches
,
result
);
namedWindow
(
*
itDesc
+
": "
+*
itMatcher
,
WINDOW_AUTOSIZE
);
imshow
(
*
itDesc
+
": "
+
*
itMatcher
,
result
);
FileStorage
fs
(
*
itDesc
+
"_"
+*
itMatcher
+
"_"
+
fileName
[
0
]
+
"_"
+
fileName
[
1
]
+
".xml"
,
FileStorage
::
WRITE
);
// Saved result could be wrong due to bug 4308
FileStorage
fs
(
*
itDesc
+
"_"
+
*
itMatcher
+
".yml"
,
FileStorage
::
WRITE
);
fs
<<
"Matches"
<<
matches
;
vector
<
DMatch
>::
iterator
it
;
cout
<<
"**********Match results**********
\n
"
;
cout
<<
"Index
\t
Index
\t
distance
\n
"
;
cout
<<
"in img1
\t
in img2
\n
"
;
double
cumSumDist2
=
0
;
// Use to compute distance between keyPoint matches and to evaluate match algorithm
// Use to compute distance between keyPoint matches and to evaluate match algorithm
double
cumSumDist2
=
0
;
for
(
it
=
bestMatches
.
begin
();
it
!=
bestMatches
.
end
();
it
++
)
{
cout
<<
it
->
queryIdx
<<
"
\t
"
<<
it
->
trainIdx
<<
"
\t
"
<<
it
->
distance
<<
"
\n
"
;
...
...
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