Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
5c362968
Commit
5c362968
authored
Sep 07, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1759 from alalek:fix_contrib_1754
parents
a2eae86c
9312f745
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
23 deletions
+24
-23
CMakeLists.txt
modules/xfeatures2d/CMakeLists.txt
+4
-0
test_features2d.cpp
modules/xfeatures2d/test/test_features2d.cpp
+0
-0
test_gms_matcher.cpp
modules/xfeatures2d/test/test_gms_matcher.cpp
+20
-23
test_rotation_and_scale_invariance.cpp
...s/xfeatures2d/test/test_rotation_and_scale_invariance.cpp
+0
-0
No files found.
modules/xfeatures2d/CMakeLists.txt
View file @
5c362968
...
...
@@ -12,3 +12,7 @@ if(NOT boost_status OR NOT vgg_status)
endif
()
ocv_module_include_directories
(
"
${
DOWNLOAD_DIR
}
"
)
if
(
TARGET opencv_test_
${
name
}
)
ocv_target_include_directories
(
opencv_test_
${
name
}
"
${
OpenCV_SOURCE_DIR
}
/modules"
)
# use common files from features2d tests
endif
()
modules/xfeatures2d/test/test_features2d.cpp
View file @
5c362968
This diff is collapsed.
Click to expand it.
modules/xfeatures2d/test/test_gms_matcher.cpp
View file @
5c362968
...
...
@@ -27,21 +27,20 @@ CV_GMSMatcherTest::CV_GMSMatcherTest()
combinations
[
2
][
0
]
=
true
;
combinations
[
2
][
1
]
=
false
;
combinations
[
3
][
0
]
=
true
;
combinations
[
3
][
1
]
=
true
;
//Threshold = truncate(min(acc_win32, acc_win64))
eps
[
0
][
0
]
=
0.9313
;
eps
[
0
][
1
]
=
0.9223
;
eps
[
0
][
2
]
=
0.9313
;
eps
[
0
][
3
]
=
0.9223
;
eps
[
1
][
0
]
=
0.8199
;
eps
[
1
][
1
]
=
0.7964
;
eps
[
1
][
2
]
=
0.8199
;
eps
[
1
][
3
]
=
0.7964
;
eps
[
2
][
0
]
=
0.7098
;
eps
[
2
][
1
]
=
0.6659
;
eps
[
2
][
2
]
=
0.6939
;
eps
[
2
][
3
]
=
0.6457
;
eps
[
0
][
0
]
=
0.91
;
eps
[
0
][
1
]
=
0.91
;
eps
[
0
][
2
]
=
0.91
;
eps
[
0
][
3
]
=
0.91
;
eps
[
1
][
0
]
=
0.80
;
eps
[
1
][
1
]
=
0.78
;
eps
[
1
][
2
]
=
0.80
;
eps
[
1
][
3
]
=
0.78
;
eps
[
2
][
0
]
=
0.70
;
eps
[
2
][
1
]
=
0.66
;
eps
[
2
][
2
]
=
0.68
;
eps
[
2
][
3
]
=
0.63
;
correctMatchDistThreshold
=
5.0
;
}
...
...
@@ -66,7 +65,8 @@ void CV_GMSMatcherTest::run( int )
const
int
nImgs
=
3
;
for
(
int
num
=
startImg
;
num
<
startImg
+
nImgs
;
num
++
)
{
string
imgPath
=
string
(
ts
->
get_data_path
())
+
format
(
"detectors_descriptors_evaluation/images_datasets/graf/img%d.png"
,
num
);
string
fileName
=
cv
::
format
(
"img%d.png"
,
num
);
string
imgPath
=
string
(
ts
->
get_data_path
())
+
"detectors_descriptors_evaluation/images_datasets/graf/"
+
fileName
;
Mat
imgCur
=
imread
(
imgPath
);
orb
->
detectAndCompute
(
imgCur
,
noArray
(),
keypointsCur
,
descriptorsCur
);
...
...
@@ -102,14 +102,11 @@ void CV_GMSMatcherTest::run( int )
}
double
ratio
=
nbCorrectMatches
/
(
double
)
matchesGMS
.
size
();
if
(
ratio
<
eps
[
num
-
startImg
][
comb
])
{
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Invalid accuracy for image %s and combination withRotation=%d withScale=%d, "
"matches ratio is %f, ratio threshold is %f, distance threshold is %f.
\n
"
,
imgPath
.
substr
(
imgPath
.
size
()
-
8
).
c_str
(),
combinations
[
comb
][
0
],
combinations
[
comb
][
1
],
ratio
,
EXPECT_GT
(
ratio
,
eps
[
num
-
startImg
][
comb
])
<<
cv
::
format
(
"Invalid accuracy for image %s and combination withRotation=%d withScale=%d, "
"matches ratio is %g, ratio threshold is %g, distance threshold is %g."
,
fileName
.
c_str
(),
combinations
[
comb
][
0
],
combinations
[
comb
][
1
],
ratio
,
eps
[
num
-
startImg
][
comb
],
correctMatchDistThreshold
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_BAD_ACCURACY
);
}
}
}
}
...
...
modules/xfeatures2d/test/test_rotation_and_scale_invariance.cpp
View file @
5c362968
This diff is collapsed.
Click to expand it.
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