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
0edd0aaf
Commit
0edd0aaf
authored
Jan 28, 2014
by
Elena Gvozdeva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
1391ca1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
bgfg_gaussmix2.cpp
modules/video/src/bgfg_gaussmix2.cpp
+1
-1
bgfg_mog2.cl
modules/video/src/opencl/bgfg_mog2.cl
+1
-1
test_bgfg_mog2.cpp
modules/video/test/ocl/test_bgfg_mog2.cpp
+2
-4
No files found.
modules/video/src/bgfg_gaussmix2.cpp
View file @
0edd0aaf
...
@@ -852,7 +852,7 @@ void BackgroundSubtractorMOG2Impl::getBackgroundImage(OutputArray backgroundImag
...
@@ -852,7 +852,7 @@ void BackgroundSubtractorMOG2Impl::getBackgroundImage(OutputArray backgroundImag
{
{
if
(
ocl_getBackgroundImage
(
backgroundImage
));
if
(
ocl_getBackgroundImage
(
backgroundImage
));
return
;
return
;
opencl_ON
=
false
;
opencl_ON
=
false
;
return
;
return
;
}
}
...
...
modules/video/src/opencl/bgfg_mog2.cl
View file @
0edd0aaf
...
@@ -67,7 +67,7 @@ __kernel void mog2_kernel(__global const uchar* frame, int frame_step, int frame
...
@@ -67,7 +67,7 @@ __kernel void mog2_kernel(__global const uchar* frame, int frame_step, int frame
__global
uchar*
variance,
int
var_step,
int
var_offset,
//float
__global
uchar*
variance,
int
var_step,
int
var_offset,
//float
__global
uchar*
fgmask,
int
fgmask_step,
int
fgmask_offset,
//int
__global
uchar*
fgmask,
int
fgmask_step,
int
fgmask_offset,
//int
float
alphaT,
float
alpha1,
float
prune,
float
alphaT,
float
alpha1,
float
prune,
int
detectShadows_flag,
int
detectShadows_flag,
float
c_Tb,
float
c_TB,
float
c_Tg,
float
c_varMin,
//constants
float
c_Tb,
float
c_TB,
float
c_Tg,
float
c_varMin,
//constants
float
c_varMax,
float
c_varInit,
float
c_tau,
uchar
c_shadowVal
)
float
c_varMax,
float
c_varInit,
float
c_tau,
uchar
c_shadowVal
)
{
{
...
...
modules/video/test/ocl/test_bgfg_mog2.cpp
View file @
0edd0aaf
...
@@ -28,7 +28,7 @@ namespace
...
@@ -28,7 +28,7 @@ namespace
IMPLEMENT_PARAM_CLASS
(
DetectShadow
,
bool
)
IMPLEMENT_PARAM_CLASS
(
DetectShadow
,
bool
)
}
}
PARAM_TEST_CASE
(
Mog2
,
UseGray
,
DetectShadow
,
bool
)
PARAM_TEST_CASE
(
Mog2
,
UseGray
,
DetectShadow
)
{
{
bool
useGray
;
bool
useGray
;
bool
detectShadow
;
bool
detectShadow
;
...
@@ -37,7 +37,6 @@ PARAM_TEST_CASE(Mog2, UseGray, DetectShadow, bool)
...
@@ -37,7 +37,6 @@ PARAM_TEST_CASE(Mog2, UseGray, DetectShadow, bool)
{
{
useGray
=
GET_PARAM
(
0
);
useGray
=
GET_PARAM
(
0
);
detectShadow
=
GET_PARAM
(
1
);
detectShadow
=
GET_PARAM
(
1
);
useRoi
=
GET_PARAM
(
2
);
}
}
};
};
...
@@ -116,8 +115,7 @@ OCL_TEST_P(Mog2, getBackgroundImage)
...
@@ -116,8 +115,7 @@ OCL_TEST_P(Mog2, getBackgroundImage)
OCL_INSTANTIATE_TEST_CASE_P
(
OCL_Video
,
Mog2
,
Combine
(
OCL_INSTANTIATE_TEST_CASE_P
(
OCL_Video
,
Mog2
,
Combine
(
Values
(
UseGray
(
true
),
UseGray
(
false
)),
Values
(
UseGray
(
true
),
UseGray
(
false
)),
Values
(
DetectShadow
(
true
),
DetectShadow
(
false
)),
Values
(
DetectShadow
(
true
),
DetectShadow
(
false
)))
Bool
())
);
);
}}
// namespace cvtest::ocl
}}
// namespace cvtest::ocl
...
...
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