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
0f8f4896
Commit
0f8f4896
authored
Sep 04, 2013
by
ilya-lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed data path and eps
parent
c42d61e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
test_bgfg.cpp
modules/ocl/test/test_bgfg.cpp
+5
-11
test_optflow.cpp
modules/ocl/test/test_optflow.cpp
+2
-2
No files found.
modules/ocl/test/test_bgfg.cpp
View file @
0f8f4896
...
...
@@ -142,7 +142,7 @@ PARAM_TEST_CASE(mog2, UseGray, DetectShadow, bool)
TEST_P
(
mog2
,
Update
)
{
std
::
string
inputFile
=
string
(
cvtest
::
TS
::
ptr
()
->
get_data_path
())
+
"gpu/768x576.avi"
;
std
::
string
inputFile
=
string
(
cvtest
::
TS
::
ptr
()
->
get_data_path
())
+
"gpu/
video/
768x576.avi"
;
cv
::
VideoCapture
cap
(
inputFile
);
ASSERT_TRUE
(
cap
.
isOpened
());
...
...
@@ -175,14 +175,9 @@ TEST_P(mog2, Update)
mog2_gold
(
frame
,
foreground_gold
);
if
(
detectShadow
)
{
EXPECT_MAT_SIMILAR
(
foreground_gold
,
foreground
,
1e-2
);
}
EXPECT_MAT_SIMILAR
(
foreground_gold
,
foreground
,
15e-3
)
else
{
EXPECT_MAT_NEAR
(
foreground_gold
,
foreground
,
0
);
}
EXPECT_MAT_NEAR
(
foreground_gold
,
foreground
,
0
)
}
}
...
...
@@ -191,7 +186,7 @@ TEST_P(mog2, getBackgroundImage)
if
(
useGray
)
return
;
std
::
string
inputFile
=
string
(
cvtest
::
TS
::
ptr
()
->
get_data_path
())
+
"video/768x576.avi"
;
std
::
string
inputFile
=
string
(
cvtest
::
TS
::
ptr
()
->
get_data_path
())
+
"
gpu/
video/768x576.avi"
;
cv
::
VideoCapture
cap
(
inputFile
);
ASSERT_TRUE
(
cap
.
isOpened
());
...
...
@@ -229,4 +224,4 @@ INSTANTIATE_TEST_CASE_P(OCL_Video, mog2, testing::Combine(
testing
::
Values
(
DetectShadow
(
true
),
DetectShadow
(
false
)),
Values
(
true
,
false
)));
#endif
\ No newline at end of file
#endif
modules/ocl/test/test_optflow.cpp
View file @
0f8f4896
...
...
@@ -146,10 +146,10 @@ PARAM_TEST_CASE(TVL1, bool)
TEST_P
(
TVL1
,
Accuracy
)
{
cv
::
Mat
frame0
=
readImage
(
"
F:/mcw/opencv/opencv/samples/gpu
/rubberwhale1.png"
,
cv
::
IMREAD_GRAYSCALE
);
cv
::
Mat
frame0
=
readImage
(
"
gpu/opticalflow
/rubberwhale1.png"
,
cv
::
IMREAD_GRAYSCALE
);
ASSERT_FALSE
(
frame0
.
empty
());
cv
::
Mat
frame1
=
readImage
(
"
../../../opencv/samples/gpu
/rubberwhale2.png"
,
cv
::
IMREAD_GRAYSCALE
);
cv
::
Mat
frame1
=
readImage
(
"
gpu/opticalflow
/rubberwhale2.png"
,
cv
::
IMREAD_GRAYSCALE
);
ASSERT_FALSE
(
frame1
.
empty
());
cv
::
ocl
::
OpticalFlowDual_TVL1_OCL
d_alg
;
...
...
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