资源简介
背景建模技术库,含有37种背景建模算法,C++版本,含有完全代码。使用教程参考:http://blog.csdn.net/frd2009041510
代码片段和文件信息
/*
This file is part of BGSLibrary.
BGSLibrary is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation either version 3 of the License or
(at your option) any later version.
BGSLibrary is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with BGSLibrary. If not see .
*/
#include
#include
#include “package_bgs/frameDifferenceBGS.h“
#include “package_bgs/StaticframeDifferenceBGS.h“
#include “package_bgs/WeightedMovingMeanBGS.h“
#include “package_bgs/WeightedMovingVarianceBGS.h“
#include “package_bgs/MixtureOfGaussianV1BGS.h“
#include “package_bgs/MixtureOfGaussianV2BGS.h“
#include “package_bgs/AdaptiveBackgroundLearning.h“
#include “package_bgs/AdaptiveSelectiveBackgroundLearning.h“
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >= 4 && CV_SUBMINOR_VERSION >= 3
#include “package_bgs/GMG.h“
#endif
#include “package_bgs/dp/DPAdaptiveMedianBGS.h“
#include “package_bgs/dp/DPGrimsonGMMBGS.h“
#include “package_bgs/dp/DPZivkovicAGMMBGS.h“
#include “package_bgs/dp/DPMeanBGS.h“
#include “package_bgs/dp/DPWrenGABGS.h“
#include “package_bgs/dp/DPPratiMediodBGS.h“
#include “package_bgs/dp/DPEigenbackgroundBGS.h“
#include “package_bgs/dp/DPTextureBGS.h“
#include “package_bgs/tb/T2FGMM_UM.h“
#include “package_bgs/tb/T2FGMM_UV.h“
#include “package_bgs/tb/T2FMRF_UM.h“
#include “package_bgs/tb/T2FMRF_UV.h“
#include “package_bgs/tb/FuzzySugenoIntegral.h“
#include “package_bgs/tb/FuzzyChoquetIntegral.h“
#include “package_bgs/lb/LBSimpleGaussian.h“
#include “package_bgs/lb/LBFuzzyGaussian.h“
#include “package_bgs/lb/LBMixtureOfGaussians.h“
#include “package_bgs/lb/LBAdaptiveSOM.h“
#include “package_bgs/lb/LBFuzzyAdaptiveSOM.h“
#include “package_bgs/ck/LbpMrf.h“
#include “package_bgs/jmo/MultilayerBGS.h“
// The PBAS algorithm was removed from BGSLibrary because it is
// based on patented algorithm ViBE
// http://www2.ulg.ac.be/telecom/research/vibe/
//#include “package_bgs/pt/PixelbasedAdaptiveSegmenter.h“
#include “package_bgs/av/VuMeter.h“
#include “package_bgs/ae/KDE.h“
#include “package_bgs/db/IndependentMultimodalBGS.h“
#include “package_bgs/sjn/SJN_MultiCueBGS.h“
#include “package_bgs/bl/SigmaDeltaBGS.h“
#include “package_bgs/pl/SuBSENSE.h“
#include “package_bgs/pl/LOBSTER.h“
int main(int argc char **argv)
{
std::cout << “Using OpenCV “ << CV_MAJOR_VERSION << “.“ << CV_MINOR_VERSION << “.“ << CV_SUBMINOR_VERSION << std::endl;
CvCapture *capture = 0;
int resize_factor = 100;
if(argc > 1)
{
std::cout << “Openning: “ << argv[1] << std::endl;
capture = cvCaptureFromAVI(argv[1]);
}
else
{
capture = cvCaptureFromCAM(0);
resize_
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-05-01 23:18 bgslibrary-master\
文件 122 2015-05-01 23:18 bgslibrary-master\.gitattributes
文件 162 2015-05-01 23:18 bgslibrary-master\.gitignore
文件 2000 2015-05-01 23:18 bgslibrary-master\CMakeLists.txt
文件 35147 2015-05-01 23:18 bgslibrary-master\COPYING.txt
文件 797 2015-05-01 23:18 bgslibrary-master\Config.h
文件 6019 2015-05-01 23:18 bgslibrary-master\Demo.cpp
文件 5552 2015-05-01 23:18 bgslibrary-master\Demo2.cpp
文件 21526 2015-05-01 23:18 bgslibrary-master\fr
文件 6997 2015-05-01 23:18 bgslibrary-master\fr
文件 844 2015-05-01 23:18 bgslibrary-master\if
文件 35121 2015-05-01 23:18 bgslibrary-master\LICENSE
文件 605 2015-05-01 23:18 bgslibrary-master\LICENSE.txt
文件 2329 2015-05-01 23:18 bgslibrary-master\Main.cpp
文件 4769 2015-05-01 23:18 bgslibrary-master\PreProcessor.cpp
文件 1314 2015-05-01 23:18 bgslibrary-master\PreProcessor.h
文件 18916 2015-05-01 23:18 bgslibrary-master\README.md
文件 203 2015-05-01 23:18 bgslibrary-master\README_LINUX_USERS.txt
文件 1347 2015-05-01 23:18 bgslibrary-master\README_VISUAL_STUDIO_USERS.txt
文件 3293 2015-05-01 23:18 bgslibrary-master\VideoAnalysis.cpp
文件 1160 2015-05-01 23:18 bgslibrary-master\VideoAnalysis.h
文件 8011 2015-05-01 23:18 bgslibrary-master\VideoCapture.cpp
文件 1521 2015-05-01 23:18 bgslibrary-master\VideoCapture.h
目录 0 2015-05-01 23:18 bgslibrary-master\build\
文件 81 2015-05-01 23:18 bgslibrary-master\build\.gitignore
文件 15 2015-05-01 23:18 bgslibrary-master\build\README
目录 0 2015-05-01 23:18 bgslibrary-master\config\
文件 129 2015-05-01 23:18 bgslibrary-master\config\.gitignore
文件 1897 2015-05-01 23:18 bgslibrary-master\config\fr
文件 146 2015-05-01 23:18 bgslibrary-master\config\PreProcessor.xm
文件 305 2015-05-01 23:18 bgslibrary-master\config\VideoCapture.xm
............此处省略507个文件信息
评论
共有 条评论