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
f531dd83
Commit
f531dd83
authored
Apr 18, 2013
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gpubgsegm module fixes
parent
c0b3424a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
22 additions
and
34 deletions
+22
-34
CMakeLists.txt
modules/gpubgsegm/CMakeLists.txt
+2
-2
background_segmentation.rst
modules/gpubgsegm/doc/background_segmentation.rst
+0
-0
gpubgsegm.rst
modules/gpubgsegm/doc/gpubgsegm.rst
+3
-3
gpubgsegm.hpp
modules/gpubgsegm/include/opencv2/gpubgsegm.hpp
+4
-0
perf_bgsegm.cpp
modules/gpubgsegm/perf/perf_bgsegm.cpp
+6
-5
perf_main.cpp
modules/gpubgsegm/perf/perf_main.cpp
+1
-1
perf_precomp.hpp
modules/gpubgsegm/perf/perf_precomp.hpp
+0
-2
fgd.cu
modules/gpubgsegm/src/cuda/fgd.cu
+1
-1
fgd.hpp
modules/gpubgsegm/src/cuda/fgd.hpp
+0
-0
gmg.cu
modules/gpubgsegm/src/cuda/gmg.cu
+0
-0
mog.cu
modules/gpubgsegm/src/cuda/mog.cu
+0
-0
fgd.cpp
modules/gpubgsegm/src/fgd.cpp
+1
-1
gmg.cpp
modules/gpubgsegm/src/gmg.cpp
+0
-0
mog.cpp
modules/gpubgsegm/src/mog.cpp
+0
-0
precomp.hpp
modules/gpubgsegm/src/precomp.hpp
+0
-13
test_bgsegm.cpp
modules/gpubgsegm/test/test_bgsegm.cpp
+4
-4
test_precomp.hpp
modules/gpubgsegm/test/test_precomp.hpp
+0
-2
No files found.
modules/gpubgsegm/CMakeLists.txt
View file @
f531dd83
...
...
@@ -4,6 +4,6 @@ endif()
set
(
the_description
"GPU-accelerated Background Segmentation"
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS
/wd4127 /wd4324 /wd4512
-Wundef -Wmissing-declarations
)
ocv_define_module
(
gpubgsegm opencv_video opencv_
legacy
opencv_gpufilters opencv_gpuimgproc
)
ocv_define_module
(
gpubgsegm opencv_video opencv_
imgproc opencv_legacy opencv_gpuarithm
opencv_gpufilters opencv_gpuimgproc
)
modules/gpubgsegm/doc/background_segmentation.rst
View file @
f531dd83
This diff is collapsed.
Click to expand it.
modules/gpubgsegm/doc/gpubgsegm.rst
View file @
f531dd83
********************************************
gpu. GPU-accelerated Background Segmentation
********************************************
********************************************
******
gpu
bgsegm
. GPU-accelerated Background Segmentation
********************************************
******
.. toctree::
:maxdepth: 1
...
...
modules/gpubgsegm/include/opencv2/gpubgsegm.hpp
View file @
f531dd83
...
...
@@ -43,6 +43,10 @@
#ifndef __OPENCV_GPUBGSEGM_HPP__
#define __OPENCV_GPUBGSEGM_HPP__
#ifndef __cplusplus
# error gpubgsegm.hpp header must be compiled as C++
#endif
#include <memory>
#include "opencv2/core/gpumat.hpp"
...
...
modules/gpubgsegm/perf/perf_bg
fg
.cpp
→
modules/gpubgsegm/perf/perf_bg
segm
.cpp
View file @
f531dd83
...
...
@@ -41,6 +41,7 @@
//M*/
#include "perf_precomp.hpp"
#include "opencv2/legacy.hpp"
using
namespace
std
;
using
namespace
testing
;
...
...
@@ -73,7 +74,7 @@ namespace cv
DEF_PARAM_TEST_1
(
Video
,
string
);
PERF_TEST_P
(
Video
,
Video_
FGDStatModel
,
PERF_TEST_P
(
Video
,
FGDStatModel
,
Values
(
string
(
"gpu/video/768x576.avi"
)))
{
declare
.
time
(
60
);
...
...
@@ -146,7 +147,7 @@ PERF_TEST_P(Video, Video_FGDStatModel,
DEF_PARAM_TEST
(
Video_Cn_LearningRate
,
string
,
MatCn
,
double
);
PERF_TEST_P
(
Video_Cn_LearningRate
,
Video_
MOG
,
PERF_TEST_P
(
Video_Cn_LearningRate
,
MOG
,
Combine
(
Values
(
"gpu/video/768x576.avi"
,
"gpu/video/1920x1080.avi"
),
GPU_CHANNELS_1_3_4
,
Values
(
0.0
,
0.01
)))
...
...
@@ -245,7 +246,7 @@ PERF_TEST_P(Video_Cn_LearningRate, Video_MOG,
DEF_PARAM_TEST
(
Video_Cn
,
string
,
int
);
PERF_TEST_P
(
Video_Cn
,
Video_
MOG2
,
PERF_TEST_P
(
Video_Cn
,
MOG2
,
Combine
(
Values
(
"gpu/video/768x576.avi"
,
"gpu/video/1920x1080.avi"
),
GPU_CHANNELS_1_3_4
))
{
...
...
@@ -344,7 +345,7 @@ PERF_TEST_P(Video_Cn, Video_MOG2,
#if BUILD_WITH_VIDEO_INPUT_SUPPORT
PERF_TEST_P
(
Video_Cn
,
Video_
MOG2GetBackgroundImage
,
PERF_TEST_P
(
Video_Cn
,
MOG2GetBackgroundImage
,
Combine
(
Values
(
"gpu/video/768x576.avi"
,
"gpu/video/1920x1080.avi"
),
GPU_CHANNELS_1_3_4
))
{
...
...
@@ -428,7 +429,7 @@ PERF_TEST_P(Video_Cn, Video_MOG2GetBackgroundImage,
DEF_PARAM_TEST
(
Video_Cn_MaxFeatures
,
string
,
MatCn
,
int
);
PERF_TEST_P
(
Video_Cn_MaxFeatures
,
Video_
GMG
,
PERF_TEST_P
(
Video_Cn_MaxFeatures
,
GMG
,
Combine
(
Values
(
string
(
"gpu/video/768x576.avi"
)),
GPU_CHANNELS_1_3_4
,
Values
(
20
,
40
,
60
)))
...
...
modules/gpubgsegm/perf/perf_main.cpp
View file @
f531dd83
...
...
@@ -44,4 +44,4 @@
using
namespace
perf
;
CV_PERF_TEST_MAIN
(
gpu
arith
m
,
printCudaInfo
())
CV_PERF_TEST_MAIN
(
gpu
bgseg
m
,
printCudaInfo
())
modules/gpubgsegm/perf/perf_precomp.hpp
View file @
f531dd83
...
...
@@ -55,9 +55,7 @@
#include "opencv2/ts/gpu_perf.hpp"
#include "opencv2/gpubgsegm.hpp"
#include "opencv2/video.hpp"
#include "opencv2/legacy.hpp"
#ifdef GTEST_CREATE_SHARED_LIBRARY
#error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
...
...
modules/gpubgsegm/src/cuda/fgd
_bgfg
.cu
→
modules/gpubgsegm/src/cuda/fgd.cu
View file @
f531dd83
...
...
@@ -48,7 +48,7 @@
#include "opencv2/core/cuda/utility.hpp"
#include "opencv2/core/cuda/reduce.hpp"
#include "opencv2/core/cuda/functional.hpp"
#include "fgd
_bgfg_common
.hpp"
#include "fgd.hpp"
using namespace cv::gpu;
using namespace cv::gpu::cudev;
...
...
modules/gpubgsegm/src/cuda/fgd
_bgfg_common
.hpp
→
modules/gpubgsegm/src/cuda/fgd.hpp
View file @
f531dd83
File moved
modules/gpubgsegm/src/cuda/
bgfg_
gmg.cu
→
modules/gpubgsegm/src/cuda/gmg.cu
View file @
f531dd83
File moved
modules/gpubgsegm/src/cuda/
bgfg_
mog.cu
→
modules/gpubgsegm/src/cuda/mog.cu
View file @
f531dd83
File moved
modules/gpubgsegm/src/fgd
_bgfg
.cpp
→
modules/gpubgsegm/src/fgd.cpp
View file @
f531dd83
...
...
@@ -59,7 +59,7 @@ int cv::gpu::FGDStatModel::update(const cv::gpu::GpuMat&) { throw_no_cuda(); ret
#else
#include "
fgd_bgfg_common
.hpp"
#include "
cuda/fgd
.hpp"
#include "opencv2/imgproc/imgproc_c.h"
namespace
...
...
modules/gpubgsegm/src/
bgfg_
gmg.cpp
→
modules/gpubgsegm/src/gmg.cpp
View file @
f531dd83
File moved
modules/gpubgsegm/src/
bgfg_
mog.cpp
→
modules/gpubgsegm/src/mog.cpp
View file @
f531dd83
File moved
modules/gpubgsegm/src/precomp.hpp
View file @
f531dd83
...
...
@@ -46,23 +46,10 @@
#include <limits>
#include "opencv2/gpubgsegm.hpp"
#include "opencv2/gpuarithm.hpp"
#include "opencv2/gpufilters.hpp"
#include "opencv2/gpuimgproc.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include "opencv2/video.hpp"
#include "opencv2/core/gpu_private.hpp"
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_GPULEGACY
# include "opencv2/gpulegacy/private.hpp"
#endif
#ifdef HAVE_CUDA
# include "cuda/fgd_bgfg_common.hpp"
#endif
#endif
/* __OPENCV_PRECOMP_H__ */
modules/gpubgsegm/test/test_bg
fg
.cpp
→
modules/gpubgsegm/test/test_bg
segm
.cpp
View file @
f531dd83
...
...
@@ -143,7 +143,7 @@ GPU_TEST_P(FGDStatModel, Update)
}
}
INSTANTIATE_TEST_CASE_P
(
GPU_
Video
,
FGDStatModel
,
testing
::
Combine
(
INSTANTIATE_TEST_CASE_P
(
GPU_
BgSegm
,
FGDStatModel
,
testing
::
Combine
(
ALL_DEVICES
,
testing
::
Values
(
std
::
string
(
"768x576.avi"
)),
testing
::
Values
(
Channels
(
3
),
Channels
(
4
))));
...
...
@@ -219,7 +219,7 @@ GPU_TEST_P(MOG, Update)
}
}
INSTANTIATE_TEST_CASE_P
(
GPU_
Video
,
MOG
,
testing
::
Combine
(
INSTANTIATE_TEST_CASE_P
(
GPU_
BgSegm
,
MOG
,
testing
::
Combine
(
ALL_DEVICES
,
testing
::
Values
(
std
::
string
(
"768x576.avi"
)),
testing
::
Values
(
UseGray
(
true
),
UseGray
(
false
)),
...
...
@@ -339,7 +339,7 @@ GPU_TEST_P(MOG2, getBackgroundImage)
ASSERT_MAT_NEAR
(
background_gold
,
background
,
0
);
}
INSTANTIATE_TEST_CASE_P
(
GPU_
Video
,
MOG2
,
testing
::
Combine
(
INSTANTIATE_TEST_CASE_P
(
GPU_
BgSegm
,
MOG2
,
testing
::
Combine
(
ALL_DEVICES
,
testing
::
Values
(
std
::
string
(
"768x576.avi"
)),
testing
::
Values
(
UseGray
(
true
),
UseGray
(
false
)),
...
...
@@ -395,7 +395,7 @@ GPU_TEST_P(GMG, Accuracy)
ASSERT_MAT_NEAR
(
fullfg
,
d_fgmask
,
0
);
}
INSTANTIATE_TEST_CASE_P
(
GPU_
Video
,
GMG
,
testing
::
Combine
(
INSTANTIATE_TEST_CASE_P
(
GPU_
BgSegm
,
GMG
,
testing
::
Combine
(
ALL_DEVICES
,
DIFFERENT_SIZES
,
testing
::
Values
(
MatType
(
CV_8U
),
MatType
(
CV_16U
),
MatType
(
CV_32F
)),
...
...
modules/gpubgsegm/test/test_precomp.hpp
View file @
f531dd83
...
...
@@ -57,8 +57,6 @@
#include "opencv2/ts/gpu_test.hpp"
#include "opencv2/gpubgsegm.hpp"
#include "opencv2/video.hpp"
#include "opencv2/legacy.hpp"
#endif
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