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
c2394339
Commit
c2394339
authored
8 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7075 from alalek:ocl_fix_canny_perf_test
parents
de0909e0
f2e41ce3
master
4.3.0
4.2.0
4.1.2
4.1.2-openvino
4.1.1
4.1.1-openvino
4.1.0
4.1.0-openvino
4.0.1
4.0.1-openvino
4.0.0
4.0.0-rc
4.0.0-openvino
4.0.0-beta
4.0.0-alpha
3.4.10
3.4.9
3.4.8
3.4.7
3.4.6
3.4.5
3.4.4
3.4.3
3.4.3-openvino
3.4.2
3.4.2-openvino
3.4.1
3.4.1-cvsdk
3.4.0
3.4.0-rc
3.3.1
3.3.1-cvsdk
3.3.0
3.3.0-rc
3.3.0-cvsdk
3.2.0
3.2.0-rc
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
perf_imgproc.cpp
modules/imgproc/perf/opencl/perf_imgproc.cpp
+9
-12
No files found.
modules/imgproc/perf/opencl/perf_imgproc.cpp
View file @
c2394339
...
...
@@ -299,33 +299,30 @@ OCL_PERF_TEST_P(CLAHEFixture, CLAHE, OCL_TEST_SIZES)
///////////// Canny ////////////////////////
typedef
tuple
<
int
,
bool
>
CannyParams
;
typedef
tuple
<
Size
,
int
,
bool
>
CannyParams
;
typedef
TestBaseWithParam
<
CannyParams
>
CannyFixture
;
OCL_PERF_TEST_P
(
CannyFixture
,
Canny
,
::
testing
::
Combine
(
OCL_PERF_ENUM
(
3
,
5
),
Bool
()))
OCL_PERF_TEST_P
(
CannyFixture
,
Canny
,
::
testing
::
Combine
(
OCL_
TEST_SIZES
,
OCL_
PERF_ENUM
(
3
,
5
),
Bool
()))
{
const
CannyParams
params
=
GetParam
();
int
apertureSize
=
get
<
0
>
(
params
);
bool
L2Grad
=
get
<
1
>
(
params
);
const
CannyParams
&
params
=
GetParam
();
cv
::
Size
imgSize
=
get
<
0
>
(
params
);
int
apertureSize
=
get
<
1
>
(
params
);
bool
L2Grad
=
get
<
2
>
(
params
);
Mat
_img
=
imread
(
getDataPath
(
"gpu/stereobm/aloe-L.png"
),
cv
::
IMREAD_GRAYSCALE
);
ASSERT_TRUE
(
!
_img
.
empty
())
<<
"can't open aloe-L.png"
;
UMat
img
;
_img
.
copyTo
(
img
);
cv
::
resize
(
_img
,
img
,
imgSize
);
UMat
edges
(
img
.
size
(),
CV_8UC1
);
declare
.
in
(
img
,
WARMUP_RNG
).
out
(
edges
);
declare
.
in
(
img
).
out
(
edges
);
OCL_TEST_CYCLE
()
cv
::
Canny
(
img
,
edges
,
50.0
,
100.0
,
apertureSize
,
L2Grad
);
if
(
apertureSize
==
3
)
SANITY_CHECK
(
edges
);
else
SANITY_CHECK_NOTHING
();
SANITY_CHECK_NOTHING
();
}
}
}
// namespace cvtest::ocl
#endif // HAVE_OPENCL
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