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
f0356004
Commit
f0356004
authored
Jan 11, 2012
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix
parent
bf747e6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
test_features2d.cpp
modules/gpu/test/test_features2d.cpp
+8
-3
No files found.
modules/gpu/test/test_features2d.cpp
View file @
f0356004
...
...
@@ -158,12 +158,12 @@ INSTANTIATE_TEST_CASE_P(Features2D, SURF, DEVICES(cv::gpu::GLOBAL_ATOMICS));
PARAM_TEST_CASE
(
BruteForceMatcher
,
cv
::
gpu
::
DeviceInfo
,
DistType
,
int
)
{
static
const
int
queryDescCount
=
300
;
// must be even number because we split train data in some cases in two
static
const
int
countFactor
=
4
;
// do not change it
cv
::
gpu
::
DeviceInfo
devInfo
;
cv
::
gpu
::
BruteForceMatcher_GPU_base
::
DistType
distType
;
int
dim
;
int
queryDescCount
;
int
countFactor
;
cv
::
Mat
query
,
train
;
...
...
@@ -174,6 +174,9 @@ PARAM_TEST_CASE(BruteForceMatcher, cv::gpu::DeviceInfo, DistType, int)
dim
=
GET_PARAM
(
2
);
cv
::
gpu
::
setDevice
(
devInfo
.
deviceID
());
queryDescCount
=
300
;
// must be even number because we split train data in some cases in two
countFactor
=
4
;
// do not change it
cv
::
RNG
&
rng
=
cvtest
::
TS
::
ptr
()
->
get_rng
();
...
...
@@ -234,6 +237,7 @@ TEST_P(BruteForceMatcher, Match)
ASSERT_EQ
(
0
,
badCount
);
}
TEST_P
(
BruteForceMatcher
,
MatchAdd
)
{
std
::
vector
<
cv
::
DMatch
>
matches
;
...
...
@@ -490,6 +494,7 @@ TEST_P(BruteForceMatcher, RadiusMatch)
const
float
radius
=
1.
f
/
countFactor
;
std
::
vector
<
std
::
vector
<
cv
::
DMatch
>
>
matches
;
ASSERT_NO_THROW
(
...
...
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