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
2e5e2782
Commit
2e5e2782
authored
Jan 07, 2014
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added cv::PSNR performance test
parent
a01e81c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
perf_arithm.cpp
modules/core/perf/opencl/perf_arithm.cpp
+22
-0
No files found.
modules/core/perf/opencl/perf_arithm.cpp
View file @
2e5e2782
...
...
@@ -890,6 +890,28 @@ OCL_PERF_TEST_P(ScaleAddFixture, ScaleAdd,
SANITY_CHECK
(
dst
,
1e-6
);
}
///////////// PSNR ////////////////////////
typedef
Size_MatType
PSNRFixture
;
OCL_PERF_TEST_P
(
PSNRFixture
,
PSNR
,
::
testing
::
Combine
(
OCL_TEST_SIZES
,
OCL_PERF_ENUM
(
CV_8UC1
,
CV_8UC4
)))
{
const
Size_MatType_t
params
=
GetParam
();
const
Size
srcSize
=
get
<
0
>
(
params
);
const
int
type
=
get
<
1
>
(
params
);
checkDeviceMaxMemoryAllocSize
(
srcSize
,
type
);
double
psnr
=
0
;
UMat
src1
(
srcSize
,
type
),
src2
(
srcSize
,
type
);
declare
.
in
(
src1
,
src2
,
WARMUP_RNG
);
OCL_TEST_CYCLE
()
psnr
=
cv
::
PSNR
(
src1
,
src2
);
SANITY_CHECK
(
psnr
,
1e-6
,
ERROR_RELATIVE
);
}
}
}
// 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