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
d2b46d42
Commit
d2b46d42
authored
Dec 03, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Dec 03, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1910 from alalek:ts_perf_warmuptype
parents
17f53bc3
cb4267cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
ts_perf.hpp
modules/ts/include/opencv2/ts/ts_perf.hpp
+13
-13
ts_perf.cpp
modules/ts/src/ts_perf.cpp
+11
-11
No files found.
modules/ts/include/opencv2/ts/ts_perf.hpp
View file @
d2b46d42
...
...
@@ -288,7 +288,7 @@ protected:
//_declareHelper declare;
enum
enum
WarmUpType
{
WARMUP_READ
,
WARMUP_WRITE
,
...
...
@@ -297,7 +297,7 @@ protected:
};
void
reportMetrics
(
bool
toJUnitXML
=
false
);
static
void
warmup
(
cv
::
InputOutputArray
a
,
int
wtype
=
WARMUP_READ
);
static
void
warmup
(
cv
::
InputOutputArray
a
,
WarmUpType
wtype
=
WARMUP_READ
);
performance_metrics
&
calcMetrics
();
void
RunPerfTestBody
();
...
...
@@ -327,23 +327,23 @@ private:
static
int64
_timeadjustment
;
static
int64
_calibrate
();
static
void
warmup_impl
(
cv
::
Mat
m
,
int
wtype
);
static
void
warmup_impl
(
cv
::
Mat
m
,
WarmUpType
wtype
);
static
int
getSizeInBytes
(
cv
::
InputArray
a
);
static
cv
::
Size
getSize
(
cv
::
InputArray
a
);
static
void
declareArray
(
SizeVector
&
sizes
,
cv
::
InputOutputArray
a
,
int
wtype
=
0
);
static
void
declareArray
(
SizeVector
&
sizes
,
cv
::
InputOutputArray
a
,
WarmUpType
wtype
);
class
CV_EXPORTS
_declareHelper
{
public
:
_declareHelper
&
in
(
cv
::
InputOutputArray
a1
,
int
wtype
=
WARMUP_READ
);
_declareHelper
&
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
int
wtype
=
WARMUP_READ
);
_declareHelper
&
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
int
wtype
=
WARMUP_READ
);
_declareHelper
&
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
cv
::
InputOutputArray
a4
,
int
wtype
=
WARMUP_READ
);
_declareHelper
&
out
(
cv
::
InputOutputArray
a1
,
int
wtype
=
WARMUP_WRITE
);
_declareHelper
&
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
int
wtype
=
WARMUP_WRITE
);
_declareHelper
&
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
int
wtype
=
WARMUP_WRITE
);
_declareHelper
&
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
cv
::
InputOutputArray
a4
,
int
wtype
=
WARMUP_WRITE
);
_declareHelper
&
in
(
cv
::
InputOutputArray
a1
,
WarmUpType
wtype
=
WARMUP_READ
);
_declareHelper
&
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
WarmUpType
wtype
=
WARMUP_READ
);
_declareHelper
&
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
WarmUpType
wtype
=
WARMUP_READ
);
_declareHelper
&
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
cv
::
InputOutputArray
a4
,
WarmUpType
wtype
=
WARMUP_READ
);
_declareHelper
&
out
(
cv
::
InputOutputArray
a1
,
WarmUpType
wtype
=
WARMUP_WRITE
);
_declareHelper
&
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
WarmUpType
wtype
=
WARMUP_WRITE
);
_declareHelper
&
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
WarmUpType
wtype
=
WARMUP_WRITE
);
_declareHelper
&
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
cv
::
InputOutputArray
a4
,
WarmUpType
wtype
=
WARMUP_WRITE
);
_declareHelper
&
iterations
(
unsigned
int
n
);
_declareHelper
&
time
(
double
timeLimitSecs
);
...
...
modules/ts/src/ts_perf.cpp
View file @
d2b46d42
...
...
@@ -851,7 +851,7 @@ TestBase::TestBase(): declare(this)
#endif
void
TestBase
::
declareArray
(
SizeVector
&
sizes
,
cv
::
InputOutputArray
a
,
int
wtype
)
void
TestBase
::
declareArray
(
SizeVector
&
sizes
,
cv
::
InputOutputArray
a
,
WarmUpType
wtype
)
{
if
(
!
a
.
empty
())
{
...
...
@@ -862,7 +862,7 @@ void TestBase::declareArray(SizeVector& sizes, cv::InputOutputArray a, int wtype
ADD_FAILURE
()
<<
" Uninitialized input/output parameters are not allowed for performance tests"
;
}
void
TestBase
::
warmup
(
cv
::
InputOutputArray
a
,
int
wtype
)
void
TestBase
::
warmup
(
cv
::
InputOutputArray
a
,
WarmUpType
wtype
)
{
if
(
a
.
empty
())
return
;
if
(
a
.
kind
()
!=
cv
::
_InputArray
::
STD_VECTOR_MAT
&&
a
.
kind
()
!=
cv
::
_InputArray
::
STD_VECTOR_VECTOR
)
...
...
@@ -974,7 +974,7 @@ bool TestBase::next()
return
has_next
;
}
void
TestBase
::
warmup_impl
(
cv
::
Mat
m
,
int
wtype
)
void
TestBase
::
warmup_impl
(
cv
::
Mat
m
,
WarmUpType
wtype
)
{
switch
(
wtype
)
{
...
...
@@ -1411,14 +1411,14 @@ TestBase::_declareHelper& TestBase::_declareHelper::runs(unsigned int runsNumber
return
*
this
;
}
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
in
(
cv
::
InputOutputArray
a1
,
int
wtype
)
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
in
(
cv
::
InputOutputArray
a1
,
WarmUpType
wtype
)
{
if
(
!
test
->
times
.
empty
())
return
*
this
;
TestBase
::
declareArray
(
test
->
inputData
,
a1
,
wtype
);
return
*
this
;
}
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
int
wtype
)
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
WarmUpType
wtype
)
{
if
(
!
test
->
times
.
empty
())
return
*
this
;
TestBase
::
declareArray
(
test
->
inputData
,
a1
,
wtype
);
...
...
@@ -1426,7 +1426,7 @@ TestBase::_declareHelper& TestBase::_declareHelper::in(cv::InputOutputArray a1,
return
*
this
;
}
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
int
wtype
)
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
WarmUpType
wtype
)
{
if
(
!
test
->
times
.
empty
())
return
*
this
;
TestBase
::
declareArray
(
test
->
inputData
,
a1
,
wtype
);
...
...
@@ -1435,7 +1435,7 @@ TestBase::_declareHelper& TestBase::_declareHelper::in(cv::InputOutputArray a1,
return
*
this
;
}
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
cv
::
InputOutputArray
a4
,
int
wtype
)
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
in
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
cv
::
InputOutputArray
a4
,
WarmUpType
wtype
)
{
if
(
!
test
->
times
.
empty
())
return
*
this
;
TestBase
::
declareArray
(
test
->
inputData
,
a1
,
wtype
);
...
...
@@ -1445,14 +1445,14 @@ TestBase::_declareHelper& TestBase::_declareHelper::in(cv::InputOutputArray a1,
return
*
this
;
}
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
out
(
cv
::
InputOutputArray
a1
,
int
wtype
)
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
out
(
cv
::
InputOutputArray
a1
,
WarmUpType
wtype
)
{
if
(
!
test
->
times
.
empty
())
return
*
this
;
TestBase
::
declareArray
(
test
->
outputData
,
a1
,
wtype
);
return
*
this
;
}
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
int
wtype
)
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
WarmUpType
wtype
)
{
if
(
!
test
->
times
.
empty
())
return
*
this
;
TestBase
::
declareArray
(
test
->
outputData
,
a1
,
wtype
);
...
...
@@ -1460,7 +1460,7 @@ TestBase::_declareHelper& TestBase::_declareHelper::out(cv::InputOutputArray a1,
return
*
this
;
}
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
int
wtype
)
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
WarmUpType
wtype
)
{
if
(
!
test
->
times
.
empty
())
return
*
this
;
TestBase
::
declareArray
(
test
->
outputData
,
a1
,
wtype
);
...
...
@@ -1469,7 +1469,7 @@ TestBase::_declareHelper& TestBase::_declareHelper::out(cv::InputOutputArray a1,
return
*
this
;
}
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
cv
::
InputOutputArray
a4
,
int
wtype
)
TestBase
::
_declareHelper
&
TestBase
::
_declareHelper
::
out
(
cv
::
InputOutputArray
a1
,
cv
::
InputOutputArray
a2
,
cv
::
InputOutputArray
a3
,
cv
::
InputOutputArray
a4
,
WarmUpType
wtype
)
{
if
(
!
test
->
times
.
empty
())
return
*
this
;
TestBase
::
declareArray
(
test
->
outputData
,
a1
,
wtype
);
...
...
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