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
5a2a0b32
Commit
5a2a0b32
authored
Jan 13, 2014
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added perf tests for cv::dilate
parent
f61597dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
perf_filters.cpp
modules/imgproc/perf/opencl/perf_filters.cpp
+22
-0
perf_imgproc.cpp
modules/imgproc/perf/opencl/perf_imgproc.cpp
+0
-1
No files found.
modules/imgproc/perf/opencl/perf_filters.cpp
View file @
5a2a0b32
...
...
@@ -118,6 +118,28 @@ OCL_PERF_TEST_P(ErodeFixture, Erode,
SANITY_CHECK
(
dst
);
}
///////////// Dilate ////////////////////
typedef
Size_MatType
DilateFixture
;
OCL_PERF_TEST_P
(
DilateFixture
,
Dilate
,
::
testing
::
Combine
(
OCL_TEST_SIZES
,
OCL_TEST_TYPES
))
{
const
Size_MatType_t
params
=
GetParam
();
const
Size
srcSize
=
get
<
0
>
(
params
);
const
int
type
=
get
<
1
>
(
params
),
ksize
=
3
;
const
Mat
ker
=
getStructuringElement
(
MORPH_RECT
,
Size
(
ksize
,
ksize
));
checkDeviceMaxMemoryAllocSize
(
srcSize
,
type
);
UMat
src
(
srcSize
,
type
),
dst
(
srcSize
,
type
);
declare
.
in
(
src
,
WARMUP_RNG
).
out
(
dst
).
in
(
ker
);
OCL_TEST_CYCLE
()
cv
::
dilate
(
src
,
dst
,
ker
);
SANITY_CHECK
(
dst
);
}
///////////// Sobel ////////////////////////
typedef
Size_MatType
SobelFixture
;
...
...
modules/imgproc/perf/opencl/perf_imgproc.cpp
View file @
5a2a0b32
...
...
@@ -199,4 +199,3 @@ OCL_PERF_TEST_P(CLAHEFixture, CLAHE, OCL_TEST_SIZES)
}
}
// namespace cvtest::ocl
#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