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
Aug 11, 2016
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
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)
...
@@ -299,33 +299,30 @@ OCL_PERF_TEST_P(CLAHEFixture, CLAHE, OCL_TEST_SIZES)
///////////// Canny ////////////////////////
///////////// Canny ////////////////////////
typedef
tuple
<
int
,
bool
>
CannyParams
;
typedef
tuple
<
Size
,
int
,
bool
>
CannyParams
;
typedef
TestBaseWithParam
<
CannyParams
>
CannyFixture
;
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
();
const
CannyParams
&
params
=
GetParam
();
int
apertureSize
=
get
<
0
>
(
params
);
cv
::
Size
imgSize
=
get
<
0
>
(
params
);
bool
L2Grad
=
get
<
1
>
(
params
);
int
apertureSize
=
get
<
1
>
(
params
);
bool
L2Grad
=
get
<
2
>
(
params
);
Mat
_img
=
imread
(
getDataPath
(
"gpu/stereobm/aloe-L.png"
),
cv
::
IMREAD_GRAYSCALE
);
Mat
_img
=
imread
(
getDataPath
(
"gpu/stereobm/aloe-L.png"
),
cv
::
IMREAD_GRAYSCALE
);
ASSERT_TRUE
(
!
_img
.
empty
())
<<
"can't open aloe-L.png"
;
ASSERT_TRUE
(
!
_img
.
empty
())
<<
"can't open aloe-L.png"
;
UMat
img
;
UMat
img
;
_img
.
copyTo
(
img
);
cv
::
resize
(
_img
,
img
,
imgSize
);
UMat
edges
(
img
.
size
(),
CV_8UC1
);
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
);
OCL_TEST_CYCLE
()
cv
::
Canny
(
img
,
edges
,
50.0
,
100.0
,
apertureSize
,
L2Grad
);
if
(
apertureSize
==
3
)
SANITY_CHECK_NOTHING
();
SANITY_CHECK
(
edges
);
else
SANITY_CHECK_NOTHING
();
}
}
}
}
// namespace cvtest::ocl
}
}
// namespace cvtest::ocl
#endif // HAVE_OPENCL
#endif // HAVE_OPENCL
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