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
6c2079b7
Commit
6c2079b7
authored
Apr 12, 2013
by
peng xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test code clean up.
parent
22ca7e44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
test_canny.cpp
modules/ocl/test/test_canny.cpp
+0
-14
No files found.
modules/ocl/test/test_canny.cpp
View file @
6c2079b7
...
@@ -45,7 +45,6 @@
...
@@ -45,7 +45,6 @@
#include "precomp.hpp"
#include "precomp.hpp"
#ifdef HAVE_OPENCL
#ifdef HAVE_OPENCL
#define SHOW_RESULT 0
////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
// Canny
// Canny
...
@@ -59,13 +58,10 @@ PARAM_TEST_CASE(Canny, AppertureSize, L2gradient)
...
@@ -59,13 +58,10 @@ PARAM_TEST_CASE(Canny, AppertureSize, L2gradient)
bool
useL2gradient
;
bool
useL2gradient
;
cv
::
Mat
edges_gold
;
cv
::
Mat
edges_gold
;
//std::vector<cv::ocl::Info> oclinfo;
virtual
void
SetUp
()
virtual
void
SetUp
()
{
{
apperture_size
=
GET_PARAM
(
0
);
apperture_size
=
GET_PARAM
(
0
);
useL2gradient
=
GET_PARAM
(
1
);
useL2gradient
=
GET_PARAM
(
1
);
//int devnums = getDevice(oclinfo);
//CV_Assert(devnums > 0);
}
}
};
};
...
@@ -89,16 +85,6 @@ TEST_P(Canny, Accuracy)
...
@@ -89,16 +85,6 @@ TEST_P(Canny, Accuracy)
cv
::
Mat
edges_gold
;
cv
::
Mat
edges_gold
;
cv
::
Canny
(
img
,
edges_gold
,
low_thresh
,
high_thresh
,
apperture_size
,
useL2gradient
);
cv
::
Canny
(
img
,
edges_gold
,
low_thresh
,
high_thresh
,
apperture_size
,
useL2gradient
);
#if SHOW_RESULT
cv
::
Mat
edges_x2
,
ocl_edges
(
edges
);
edges_x2
.
create
(
edges
.
rows
,
edges
.
cols
*
2
,
edges
.
type
());
edges_x2
.
setTo
(
0
);
cv
::
add
(
edges_gold
,
cv
::
Mat
(
edges_x2
,
cv
::
Rect
(
0
,
0
,
edges_gold
.
cols
,
edges_gold
.
rows
)),
cv
::
Mat
(
edges_x2
,
cv
::
Rect
(
0
,
0
,
edges_gold
.
cols
,
edges_gold
.
rows
)));
cv
::
add
(
ocl_edges
,
cv
::
Mat
(
edges_x2
,
cv
::
Rect
(
edges_gold
.
cols
,
0
,
edges_gold
.
cols
,
edges_gold
.
rows
)),
cv
::
Mat
(
edges_x2
,
cv
::
Rect
(
edges_gold
.
cols
,
0
,
edges_gold
.
cols
,
edges_gold
.
rows
)));
cv
::
namedWindow
(
"Canny result (left: cpu, right: ocl)"
);
cv
::
imshow
(
"Canny result (left: cpu, right: ocl)"
,
edges_x2
);
cv
::
waitKey
();
#endif //OUTPUT_RESULT
EXPECT_MAT_SIMILAR
(
edges_gold
,
edges
,
1e-2
);
EXPECT_MAT_SIMILAR
(
edges_gold
,
edges
,
1e-2
);
}
}
...
...
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