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
3e899f6f
Commit
3e899f6f
authored
Apr 26, 2012
by
Alexander Kapustin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
File perf_addWeited.cpp added
parent
2270c2f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
perf_addWeighted.cpp
modules/core/perf/perf_addWeighted.cpp
+29
-0
No files found.
modules/core/perf/perf_addWeighted.cpp
0 → 100644
View file @
3e899f6f
#include "perf_precomp.hpp"
using
namespace
std
;
using
namespace
cv
;
using
namespace
perf
;
using
std
::
tr1
::
make_tuple
;
using
std
::
tr1
::
get
;
#define TYPICAL_MAT_TYPES_ADWEIGHTED CV_8UC1, CV_8UC4, CV_8SC1, CV_16UC1, CV_16SC1, CV_32SC1, CV_32SC4
#define TYPICAL_MATS_ADWEIGHTED testing::Combine(testing::Values(szVGA, sz720p, sz1080p), testing::Values(TYPICAL_MAT_TYPES_ADWEIGHTED))
PERF_TEST_P
(
Size_MatType
,
addWeighted
,
TYPICAL_MATS_ADWEIGHTED
)
{
Size
size
=
get
<
0
>
(
GetParam
());
int
type
=
get
<
1
>
(
GetParam
());
Mat
src1
(
size
,
type
);
Mat
src2
(
size
,
type
);
double
alpha
=
3.75
;
double
beta
=
-
0.125
;
double
gamma
=
100.0
;
Mat
dst
(
size
,
type
);
declare
.
in
(
src1
,
src2
,
dst
,
WARMUP_RNG
).
out
(
dst
);
TEST_CYCLE
()
cv
::
addWeighted
(
src1
,
alpha
,
src2
,
beta
,
gamma
,
dst
,
dst
.
type
()
);
SANITY_CHECK
(
dst
);
}
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