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
410583e5
Commit
410583e5
authored
Aug 23, 2019
by
Andrey Golubev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document usage of accuracy tests model
parent
ccecd340
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
0 deletions
+46
-0
gapi_core_tests.hpp
modules/gapi/test/common/gapi_core_tests.hpp
+16
-0
gapi_imgproc_tests.hpp
modules/gapi/test/common/gapi_imgproc_tests.hpp
+15
-0
gapi_operators_tests.hpp
modules/gapi/test/common/gapi_operators_tests.hpp
+15
-0
No files found.
modules/gapi/test/common/gapi_core_tests.hpp
View file @
410583e5
...
...
@@ -62,8 +62,24 @@ inline std::ostream& operator<<(std::ostream& os, bitwiseOp op)
return
os
;
}
// Create new value-parameterized test fixture:
// MathOpTest - fixture name
// initMatsRandU - function that is used to initialize input/output data
// FIXTURE_API(mathOp,bool,double,bool) - test-specific parameters (types)
// 4 - number of test-specific parameters
// opType, testWithScalar, scale, doReverseOp - test-spcific parameters (names)
//
// We get:
// 1. Default parameters: int type, cv::Size sz, int dtype, getCompileArgs() function
// - available in test body
// 2. Input/output matrices will be initialized by initMatsRandU (in this fixture)
// 3. Specific parameters: opType, testWithScalar, scale, doReverseOp of correponding types
// - created (and initialized) automatically
// - available in test body
// Note: all parameter _values_ (e.g. type CV_8UC3) are set via INSTANTIATE_TEST_CASE_P macro
GAPI_TEST_FIXTURE
(
MathOpTest
,
initMatsRandU
,
FIXTURE_API
(
mathOp
,
bool
,
double
,
bool
),
4
,
opType
,
testWithScalar
,
scale
,
doReverseOp
)
// No specific parameters for MulDoubleTest, so "fixture API" is empty - <>
GAPI_TEST_FIXTURE
(
MulDoubleTest
,
initMatrixRandU
,
<>
,
0
)
GAPI_TEST_FIXTURE
(
DivTest
,
initMatrixRandU
,
<>
,
0
)
GAPI_TEST_FIXTURE
(
DivCTest
,
initMatrixRandU
,
<>
,
0
)
...
...
modules/gapi/test/common/gapi_imgproc_tests.hpp
View file @
410583e5
...
...
@@ -14,6 +14,21 @@
namespace
opencv_test
{
// Create new value-parameterized test fixture:
// Filter2DTest - fixture name
// initMatrixRandN - function that is used to initialize input/output data
// FIXTURE_API(CompareMats,int,int) - test-specific parameters (types)
// 3 - number of test-specific parameters
// cmpF, kernSize, borderType - test-spcific parameters (names)
//
// We get:
// 1. Default parameters: int type, cv::Size sz, int dtype, getCompileArgs() function
// - available in test body
// 2. Input/output matrices will be initialized by initMatrixRandN (in this fixture)
// 3. Specific parameters: cmpF, kernSize, borderType of correponding types
// - created (and initialized) automatically
// - available in test body
// Note: all parameter _values_ (e.g. type CV_8UC3) are set via INSTANTIATE_TEST_CASE_P macro
GAPI_TEST_FIXTURE
(
Filter2DTest
,
initMatrixRandN
,
FIXTURE_API
(
CompareMats
,
int
,
int
),
3
,
cmpF
,
kernSize
,
borderType
)
GAPI_TEST_FIXTURE
(
BoxFilterTest
,
initMatrixRandN
,
FIXTURE_API
(
CompareMats
,
int
,
int
),
3
,
...
...
modules/gapi/test/common/gapi_operators_tests.hpp
View file @
410583e5
...
...
@@ -184,6 +184,21 @@ g_api_ocv_pair_mat_mat opXor = {std::string{"operator^"},
}
// anonymous namespace
// Create new value-parameterized test fixture:
// MathOperatorMatScalarTest - fixture name
// initMatsRandU - function that is used to initialize input/output data
// FIXTURE_API(CompareMats, g_api_ocv_pair_mat_scalar) - test-specific parameters (types)
// 2 - number of test-specific parameters
// cmpF, op - test-spcific parameters (names)
//
// We get:
// 1. Default parameters: int type, cv::Size sz, int dtype, getCompileArgs() function
// - available in test body
// 2. Input/output matrices will be initialized by initMatsRandU (in this fixture)
// 3. Specific parameters: cmpF, op of correponding types
// - created (and initialized) automatically
// - available in test body
// Note: all parameter _values_ (e.g. type CV_8UC3) are set via INSTANTIATE_TEST_CASE_P macro
GAPI_TEST_FIXTURE
(
MathOperatorMatScalarTest
,
initMatsRandU
,
FIXTURE_API
(
CompareMats
,
g_api_ocv_pair_mat_scalar
),
2
,
cmpF
,
op
)
GAPI_TEST_FIXTURE
(
MathOperatorMatMatTest
,
initMatsRandU
,
...
...
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