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
40eea303
Commit
40eea303
authored
May 27, 2014
by
Elena Gvozdeva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OCL: matchTemplate: changed perf test
parent
68165b1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
perf_matchTemplate.cpp
modules/imgproc/perf/opencl/perf_matchTemplate.cpp
+13
-17
No files found.
modules/imgproc/perf/opencl/perf_matchTemplate.cpp
View file @
40eea303
...
...
@@ -9,25 +9,24 @@ namespace ocl {
CV_ENUM
(
MethodType
,
TM_SQDIFF
,
TM_SQDIFF_NORMED
,
TM_CCORR
,
TM_CCORR_NORMED
,
TM_CCOEFF
,
TM_CCOEFF_NORMED
)
typedef
std
::
tr1
::
tuple
<
Size
,
Size
,
MethodType
>
ImgSize_TmplSize_Method
_t
;
typedef
TestBaseWithParam
<
ImgSize_TmplSize_Method_
t
>
ImgSize_TmplSize_Method
;
typedef
std
::
tr1
::
tuple
<
Size
,
Size
,
MethodType
,
MatType
>
ImgSize_TmplSize_Method_MatType
_t
;
typedef
TestBaseWithParam
<
ImgSize_TmplSize_Method_
MatType_t
>
ImgSize_TmplSize_Method_MatType
;
OCL_PERF_TEST_P
(
ImgSize_TmplSize_Method
,
MatchTemplate
,
OCL_PERF_TEST_P
(
ImgSize_TmplSize_Method
_MatType
,
MatchTemplate
,
::
testing
::
Combine
(
testing
::
Values
(
szSmall128
,
cv
::
Size
(
320
,
240
),
cv
::
Size
(
640
,
480
),
cv
::
Size
(
800
,
600
),
cv
::
Size
(
1024
,
768
),
cv
::
Size
(
1280
,
1024
)),
testing
::
Values
(
cv
::
Size
(
12
,
12
),
cv
::
Size
(
28
,
9
),
cv
::
Size
(
8
,
30
),
cv
::
Size
(
16
,
16
)),
MethodType
::
all
()
testing
::
Values
(
cv
::
Size
(
640
,
480
),
cv
::
Size
(
1280
,
1024
)),
testing
::
Values
(
cv
::
Size
(
11
,
11
),
cv
::
Size
(
16
,
16
),
cv
::
Size
(
41
,
41
)),
MethodType
::
all
(),
testing
::
Values
(
CV_8UC1
,
CV_8UC3
,
CV_32FC1
,
CV_32FC3
)
)
)
{
const
ImgSize_TmplSize_Method_t
params
=
GetParam
();
const
ImgSize_TmplSize_Method_
MatType_
t
params
=
GetParam
();
const
Size
imgSz
=
get
<
0
>
(
params
),
tmplSz
=
get
<
1
>
(
params
);
const
int
method
=
get
<
2
>
(
params
);
int
type
=
get
<
3
>
(
GetParam
());
UMat
img
(
imgSz
,
CV_8UC1
),
tmpl
(
tmplSz
,
CV_8UC1
);
UMat
img
(
imgSz
,
type
),
tmpl
(
tmplSz
,
type
);
UMat
result
(
imgSz
-
tmplSz
+
Size
(
1
,
1
),
CV_32F
);
declare
.
in
(
img
,
tmpl
,
WARMUP_RNG
).
out
(
result
);
...
...
@@ -41,13 +40,9 @@ OCL_PERF_TEST_P(ImgSize_TmplSize_Method, MatchTemplate,
double
eps
=
isNormed
?
3e-2
:
255
*
255
*
tmpl
.
total
()
*
1e-4
;
if
(
isNormed
)
SANITY_CHECK
(
result
,
eps
,
ERROR_RELATIVE
);
else
SANITY_CHECK
(
result
,
eps
);
SANITY_CHECK
(
result
,
eps
,
ERROR_RELATIVE
);
}
/////////// matchTemplate (performance tests from 2.4) ////////////////////////
typedef
Size_MatType
CV_TM_CCORRFixture
;
...
...
@@ -91,4 +86,4 @@ OCL_PERF_TEST_P(CV_TM_CCORR_NORMEDFixture, matchTemplate,
}
}
#endif // HAVE_OPENCL
#endif // HAVE_OPENCL
\ No newline at end of file
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