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
66e4aead
Commit
66e4aead
authored
Sep 30, 2013
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf tests: added SANITY_CHECK_NOTHING()
parent
e35bc115
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ts_perf.hpp
modules/ts/include/opencv2/ts/ts_perf.hpp
+3
-1
ts_perf.cpp
modules/ts/src/ts_perf.cpp
+1
-1
No files found.
modules/ts/include/opencv2/ts/ts_perf.hpp
View file @
66e4aead
...
...
@@ -209,6 +209,7 @@ private:
#define SANITY_CHECK(array, ...) ::perf::Regression::add(this, #array, array , ## __VA_ARGS__)
#define SANITY_CHECK_KEYPOINTS(array, ...) ::perf::Regression::addKeypoints(this, #array, array , ## __VA_ARGS__)
#define SANITY_CHECK_MATCHES(array, ...) ::perf::Regression::addMatches(this, #array, array , ## __VA_ARGS__)
#define SANITY_CHECK_NOTHING() this->setVerified();
class
CV_EXPORTS
GpuPerf
{
...
...
@@ -345,12 +346,13 @@ private:
friend
class
TestBase
;
};
friend
class
_declareHelper
;
friend
class
Regression
;
bool
verified
;
public
:
_declareHelper
declare
;
void
setVerified
()
{
this
->
verified
=
true
;
}
};
template
<
typename
T
>
class
TestBaseWithParam
:
public
TestBase
,
public
::
testing
::
WithParamInterface
<
T
>
{};
...
...
modules/ts/src/ts_perf.cpp
View file @
66e4aead
...
...
@@ -107,7 +107,7 @@ Regression& Regression::instance()
Regression
&
Regression
::
add
(
TestBase
*
test
,
const
std
::
string
&
name
,
cv
::
InputArray
array
,
double
eps
,
ERROR_TYPE
err
)
{
if
(
test
)
test
->
verified
=
true
;
if
(
test
)
test
->
setVerified
()
;
return
instance
()(
name
,
array
,
eps
,
err
);
}
...
...
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