Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
65abc709
Commit
65abc709
authored
Dec 19, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge moved code from opencv/3.4
parents
f9bbe706
12ffd7f0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
+37
-0
mog2.cu
modules/cudabgsegm/src/cuda/mog2.cu
+0
-0
mog2.hpp
modules/cudabgsegm/src/cuda/mog2.hpp
+37
-0
mog2.cpp
modules/cudabgsegm/src/mog2.cpp
+0
-0
No files found.
modules/cudabgsegm/src/cuda/mog2.cu
View file @
65abc709
This diff is collapsed.
Click to expand it.
modules/cudabgsegm/src/cuda/mog2.hpp
0 → 100644
View file @
65abc709
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef OPENCV_CUDA_MOG2_H
#define OPENCV_CUDA_MOG2_H
#include "opencv2/core/cuda.hpp"
struct
CUstream_st
;
typedef
struct
CUstream_st
*
cudaStream_t
;
namespace
cv
{
namespace
cuda
{
class
Stream
;
namespace
device
{
namespace
mog2
{
typedef
struct
{
float
Tb_
;
float
TB_
;
float
Tg_
;
float
varInit_
;
float
varMin_
;
float
varMax_
;
float
tau_
;
int
nmixtures_
;
unsigned
char
shadowVal_
;
}
Constants
;
void
mog2_gpu
(
PtrStepSzb
frame
,
int
cn
,
PtrStepSzb
fgmask
,
PtrStepSzb
modesUsed
,
PtrStepSzf
weight
,
PtrStepSzf
variance
,
PtrStepSzb
mean
,
float
alphaT
,
float
prune
,
bool
detectShadows
,
const
Constants
*
const
constants
,
cudaStream_t
stream
);
void
getBackgroundImage2_gpu
(
int
cn
,
PtrStepSzb
modesUsed
,
PtrStepSzf
weight
,
PtrStepSzb
mean
,
PtrStepSzb
dst
,
const
Constants
*
const
constants
,
cudaStream_t
stream
);
}
}
}
}
#endif
/* OPENCV_CUDA_MOG2_H */
modules/cudabgsegm/src/mog2.cpp
View file @
65abc709
This diff is collapsed.
Click to expand it.
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