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
f91f8663
Commit
f91f8663
authored
Oct 07, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Oct 07, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1568 from ilya-lavrenov:ocl_pyrlk
parents
744f4b16
72c35d3a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
perf_bgfg.cpp
modules/ocl/perf/perf_bgfg.cpp
+2
-2
pyrlk.cpp
modules/ocl/src/pyrlk.cpp
+0
-0
test_bgfg.cpp
modules/ocl/test/test_bgfg.cpp
+2
-2
test_optflow.cpp
modules/ocl/test/test_optflow.cpp
+2
-5
No files found.
modules/ocl/perf/perf_bgfg.cpp
View file @
f91f8663
...
...
@@ -191,7 +191,7 @@ PERF_TEST_P(VideoMOG2Fixture, MOG2,
TEST_CYCLE
()
{
cv
::
Ptr
<
cv
::
BackgroundSubtractorMOG2
>
mog2
=
createBackgroundSubtractorMOG2
();
mog2
->
set
(
"detectShadows"
,
false
);
mog2
->
set
DetectShadows
(
false
);
foreground
.
release
();
for
(
int
i
=
0
;
i
<
nFrame
;
i
++
)
...
...
@@ -253,7 +253,7 @@ PERF_TEST_P(Video_MOG2GetBackgroundImage, MOG2,
TEST_CYCLE
()
{
cv
::
Ptr
<
cv
::
BackgroundSubtractorMOG2
>
mog2
=
createBackgroundSubtractorMOG2
();
mog2
->
set
(
"detectShadows"
,
false
);
mog2
->
set
DetectShadows
(
false
);
foreground
.
release
();
background
.
release
();
for
(
int
i
=
0
;
i
<
nFrame
;
i
++
)
...
...
modules/ocl/src/pyrlk.cpp
View file @
f91f8663
This diff is collapsed.
Click to expand it.
modules/ocl/test/test_bgfg.cpp
View file @
f91f8663
...
...
@@ -168,7 +168,7 @@ TEST_P(mog2, Update)
cv
::
ocl
::
oclMat
foreground
=
createMat_ocl
(
frame
.
size
(),
CV_8UC1
,
useRoi
);
cv
::
Ptr
<
cv
::
BackgroundSubtractorMOG2
>
mog2_gold
=
createBackgroundSubtractorMOG2
();
mog2_gold
->
set
(
"detectShadows"
,
detectShadow
);
mog2_gold
->
set
DetectShadows
(
detectShadow
);
cv
::
Mat
foreground_gold
;
for
(
int
i
=
0
;
i
<
10
;
++
i
)
...
...
@@ -210,7 +210,7 @@ TEST_P(mog2, getBackgroundImage)
cv
::
ocl
::
oclMat
foreground
;
cv
::
Ptr
<
cv
::
BackgroundSubtractorMOG2
>
mog2_gold
=
createBackgroundSubtractorMOG2
();
mog2_gold
->
set
(
"detectShadows"
,
detectShadow
);
mog2_gold
->
set
DetectShadows
(
detectShadow
);
cv
::
Mat
foreground_gold
;
for
(
int
i
=
0
;
i
<
10
;
++
i
)
...
...
modules/ocl/test/test_optflow.cpp
View file @
f91f8663
...
...
@@ -251,7 +251,6 @@ TEST_P(Sparse, Mat)
cv
::
Point2i
b
=
nextPts_gold
[
i
];
bool
eq
=
std
::
abs
(
a
.
x
-
b
.
x
)
<
1
&&
std
::
abs
(
a
.
y
-
b
.
y
)
<
1
;
//float errdiff = std::abs(err[i] - err_gold[i]);
float
errdiff
=
0.0
f
;
if
(
!
eq
||
errdiff
>
1e-1
)
...
...
@@ -262,12 +261,10 @@ TEST_P(Sparse, Mat)
double
bad_ratio
=
static_cast
<
double
>
(
mistmatch
)
/
(
nextPts
.
size
());
ASSERT_LE
(
bad_ratio
,
0.02
f
);
}
INSTANTIATE_TEST_CASE_P
(
OCL_Video
,
Sparse
,
Combine
(
Values
(
false
,
true
),
Values
(
false
,
true
)));
INSTANTIATE_TEST_CASE_P
(
OCL_Video
,
Sparse
,
Combine
(
Bool
(),
Bool
()));
//////////////////////////////////////////////////////
// FarnebackOpticalFlow
...
...
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