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
599f5ef5
Commit
599f5ef5
authored
Aug 15, 2014
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use downscaled frames in FGDStatModel test
parent
86e12b60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
test_bgfg.cpp
modules/gpu/test/test_bgfg.cpp
+9
-7
No files found.
modules/gpu/test/test_bgfg.cpp
View file @
599f5ef5
...
...
@@ -98,10 +98,13 @@ GPU_TEST_P(FGDStatModel, Update)
cap
>>
frame
;
ASSERT_FALSE
(
frame
.
empty
());
IplImage
ipl_frame
=
frame
;
cv
::
Mat
frameSmall
;
cv
::
resize
(
frame
,
frameSmall
,
cv
::
Size
(),
0.5
,
0.5
);
IplImage
ipl_frame
=
frameSmall
;
cv
::
Ptr
<
CvBGStatModel
>
model
(
cvCreateFGDStatModel
(
&
ipl_frame
));
cv
::
gpu
::
GpuMat
d_frame
(
frame
);
cv
::
gpu
::
GpuMat
d_frame
(
frame
Small
);
cv
::
gpu
::
FGDStatModel
d_model
(
out_cn
);
d_model
.
create
(
d_frame
);
...
...
@@ -109,18 +112,17 @@ GPU_TEST_P(FGDStatModel, Update)
cv
::
Mat
h_foreground
;
cv
::
Mat
h_background3
;
cv
::
Mat
backgroundDiff
;
cv
::
Mat
foregroundDiff
;
for
(
int
i
=
0
;
i
<
5
;
++
i
)
{
cap
>>
frame
;
ASSERT_FALSE
(
frame
.
empty
());
ipl_frame
=
frame
;
cv
::
resize
(
frame
,
frameSmall
,
cv
::
Size
(),
0.5
,
0.5
);
ipl_frame
=
frameSmall
;
int
gold_count
=
cvUpdateBGStatModel
(
&
ipl_frame
,
model
);
d_frame
.
upload
(
frame
);
d_frame
.
upload
(
frame
Small
);
int
count
=
d_model
.
update
(
d_frame
);
...
...
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