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
bac7c26c
Commit
bac7c26c
authored
Sep 19, 2017
by
Vladislav Sovrasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
features2d: add a separate regression test for OCL SURF
parent
dae2c1ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
test_features2d.cpp
modules/xfeatures2d/test/test_features2d.cpp
+24
-0
No files found.
modules/xfeatures2d/test/test_features2d.cpp
View file @
bac7c26c
...
...
@@ -1027,10 +1027,34 @@ TEST( Features2d_DescriptorExtractor_SIFT, regression )
TEST
(
Features2d_DescriptorExtractor_SURF
,
regression
)
{
#ifdef HAVE_OPENCL
bool
useOCL
=
ocl
::
useOpenCL
();
ocl
::
setUseOpenCL
(
false
);
#endif
CV_DescriptorExtractorTest
<
L2
<
float
>
>
test
(
"descriptor-surf"
,
0.05
f
,
SURF
::
create
()
);
test
.
safe_run
();
#ifdef HAVE_OPENCL
ocl
::
setUseOpenCL
(
useOCL
);
#endif
}
#ifdef HAVE_OPENCL
TEST
(
Features2d_DescriptorExtractor_SURF_OCL
,
regression
)
{
bool
useOCL
=
ocl
::
useOpenCL
();
ocl
::
setUseOpenCL
(
true
);
if
(
ocl
::
useOpenCL
())
{
CV_DescriptorExtractorTest
<
L2
<
float
>
>
test
(
"descriptor-surf_ocl"
,
0.05
f
,
SURF
::
create
()
);
test
.
safe_run
();
}
ocl
::
setUseOpenCL
(
useOCL
);
}
#endif
TEST
(
Features2d_DescriptorExtractor_DAISY
,
regression
)
{
...
...
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