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
75a6eaf1
Commit
75a6eaf1
authored
Nov 09, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13024 from rgarnov:gapi_fix_lut_test
parents
10e1c2b3
858ba6c7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
2 deletions
+13
-2
gapi_core_perf_tests_inl.hpp
modules/gapi/perf/common/gapi_core_perf_tests_inl.hpp
+1
-0
gapi_core_tests_inl.hpp
modules/gapi/test/common/gapi_core_tests_inl.hpp
+2
-1
gapi_tests_common.hpp
modules/gapi/test/common/gapi_tests_common.hpp
+7
-1
gapi_scalar_tests.cpp
modules/gapi/test/gapi_scalar_tests.cpp
+1
-0
gapi_int_recompilation_test.cpp
modules/gapi/test/internal/gapi_int_recompilation_test.cpp
+2
-0
No files found.
modules/gapi/perf/common/gapi_core_perf_tests_inl.hpp
View file @
75a6eaf1
...
...
@@ -1678,6 +1678,7 @@ PERF_TEST_P_(LUTPerfTest, TestPerformance)
initMatrixRandU
(
type_mat
,
sz_in
,
type_out
);
cv
::
Size
sz_lut
=
cv
::
Size
(
1
,
256
);
cv
::
Mat
in_lut
(
sz_lut
,
type_lut
);
cv
::
randu
(
in_lut
,
cv
::
Scalar
::
all
(
0
),
cv
::
Scalar
::
all
(
255
));
// OpenCV code ///////////////////////////////////////////////////////////
cv
::
LUT
(
in_mat1
,
in_lut
,
out_mat_ocv
);
...
...
modules/gapi/test/common/gapi_core_tests_inl.hpp
View file @
75a6eaf1
...
...
@@ -1373,7 +1373,8 @@ TEST_P(LUTTest, AccuracyTest)
initMatrixRandU
(
type_mat
,
sz_in
,
type_out
);
cv
::
Size
sz_lut
=
cv
::
Size
(
1
,
256
);
cv
::
Mat
in_lut
(
sz_lut
,
type_lut
);
cv
::
Mat
in_lut
(
sz_lut
,
type_lut
);
cv
::
randu
(
in_lut
,
cv
::
Scalar
::
all
(
0
),
cv
::
Scalar
::
all
(
255
));
// G-API code //////////////////////////////////////////////////////////////
cv
::
GMat
in
;
...
...
modules/gapi/test/common/gapi_tests_common.hpp
View file @
75a6eaf1
...
...
@@ -377,6 +377,12 @@ public:
private
:
double
_tol
;
};
}
// namespace opencv_test
namespace
{
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
opencv_test
::
compare_f
&
)
{
return
os
<<
"compare_f"
;
}
}
modules/gapi/test/gapi_scalar_tests.cpp
View file @
75a6eaf1
...
...
@@ -16,6 +16,7 @@ TEST(GAPI_Scalar, Argument)
{
cv
::
Size
sz
(
2
,
2
);
cv
::
Mat
in_mat
(
sz
,
CV_8U
);
cv
::
randn
(
in_mat
,
cv
::
Scalar
::
all
(
127
),
cv
::
Scalar
::
all
(
40.
f
));
cv
::
GComputationT
<
cv
::
GMat
(
cv
::
GMat
,
cv
::
GScalar
)
>
mulS
([](
cv
::
GMat
in
,
cv
::
GScalar
c
)
{
...
...
modules/gapi/test/internal/gapi_int_recompilation_test.cpp
View file @
75a6eaf1
...
...
@@ -193,6 +193,7 @@ TEST(GComputationCompile, ReshapeRois)
cv
::
GComputation
cc
(
in
,
cv
::
gapi
::
resize
(
blurred
,
szOut
));
cv
::
Mat
first_in_mat
(
8
,
8
,
CV_8UC3
);
cv
::
randn
(
first_in_mat
,
cv
::
Scalar
::
all
(
127
),
cv
::
Scalar
::
all
(
40.
f
));
cv
::
Mat
first_out_mat
;
auto
fluidKernels
=
cv
::
gapi
::
combine
(
gapi
::
imgproc
::
fluid
::
kernels
(),
gapi
::
core
::
fluid
::
kernels
(),
...
...
@@ -206,6 +207,7 @@ TEST(GComputationCompile, ReshapeRois)
int
width
=
4
+
2
*
i
;
int
height
=
width
;
cv
::
Mat
in_mat
(
width
,
height
,
CV_8UC3
);
cv
::
randn
(
in_mat
,
cv
::
Scalar
::
all
(
127
),
cv
::
Scalar
::
all
(
40.
f
));
cv
::
Mat
out_mat
=
cv
::
Mat
::
zeros
(
szOut
,
CV_8UC3
);
int
x
=
0
;
...
...
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