diff --git a/package_analysis/ForegroundMaskAnalysis.cpp b/package_analysis/ForegroundMaskAnalysis.cpp index 4df9ed0c10933c0ad8051538d0e6f8435d46bd7c..eddc9088d9e6e62f9f193793f389ed3ab60b236d 100644 --- a/package_analysis/ForegroundMaskAnalysis.cpp +++ b/package_analysis/ForegroundMaskAnalysis.cpp @@ -18,7 +18,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. namespace bgslibrary { - ForegroundMaskAnalysis::ForegroundMaskAnalysis() : firstTime(true), stopAt(0), showOutput(true), img_ref_path("") + ForegroundMaskAnalysis::ForegroundMaskAnalysis() : firstTime(true), showOutput(true), stopAt(0), img_ref_path("") { std::cout << "ForegroundMaskAnalysis()" << std::endl; } diff --git a/package_bgs/av/TBackgroundVuMeter.cpp b/package_bgs/av/TBackgroundVuMeter.cpp index 5c802ce4071633edb901d07b4d4173e7d3220587..66a483fcee29058490795cb25e6d101e8adf080c 100644 --- a/package_bgs/av/TBackgroundVuMeter.cpp +++ b/package_bgs/av/TBackgroundVuMeter.cpp @@ -27,11 +27,11 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. TBackgroundVuMeter::TBackgroundVuMeter(void) : m_pHist(NULL) - , m_nBinSize(8) , m_nBinCount(0) + , m_nBinSize(8) + , m_nCount(0) , m_fAlpha(0.995) , m_fThreshold(0.03) - , m_nCount(0) { std::cout << "TBackgroundVuMeter()" << std::endl; } diff --git a/package_bgs/db/IndependentMultimodalBGS.cpp b/package_bgs/db/IndependentMultimodalBGS.cpp index c05ee5cb0684117637cebfa23d4989c7177d92a6..5312075379640840adfa22993158942cf6fe7c86 100644 --- a/package_bgs/db/IndependentMultimodalBGS.cpp +++ b/package_bgs/db/IndependentMultimodalBGS.cpp @@ -1,6 +1,6 @@ #include "IndependentMultimodalBGS.h" -IndependentMultimodalBGS::IndependentMultimodalBGS() : firstTime(true), fps(10), showOutput(true){ +IndependentMultimodalBGS::IndependentMultimodalBGS() : fps(10), firstTime(true), showOutput(true){ pIMBS = new BackgroundSubtractorIMBS(fps); } IndependentMultimodalBGS::~IndependentMultimodalBGS(){ diff --git a/package_bgs/dp/DPAdaptiveMedianBGS.cpp b/package_bgs/dp/DPAdaptiveMedianBGS.cpp index d7ebcd19ab53def6396097f32ba5865ddd2f520b..e9ef4feff559aa25a1dee485b0e80ca4397f56f0 100644 --- a/package_bgs/dp/DPAdaptiveMedianBGS.cpp +++ b/package_bgs/dp/DPAdaptiveMedianBGS.cpp @@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. */ #include "DPAdaptiveMedianBGS.h" -DPAdaptiveMedianBGS::DPAdaptiveMedianBGS() : firstTime(true), frameNumber(0), showOutput(true), threshold(40), samplingRate(7), learningFrames(30) +DPAdaptiveMedianBGS::DPAdaptiveMedianBGS() : firstTime(true), frameNumber(0), threshold(40), samplingRate(7), learningFrames(30), showOutput(true) { std::cout << "DPAdaptiveMedianBGS()" << std::endl; } @@ -101,4 +101,4 @@ void DPAdaptiveMedianBGS::loadConfig() showOutput = cvReadIntByName(fs, 0, "showOutput", true); cvReleaseFileStorage(&fs); -} \ No newline at end of file +} diff --git a/package_bgs/dp/DPEigenbackgroundBGS.cpp b/package_bgs/dp/DPEigenbackgroundBGS.cpp index 6d2c6ba12cdf426b49831559f72bf443a5f904c5..630d9cce521211c62f16408e9f3deb5f964a59c6 100644 --- a/package_bgs/dp/DPEigenbackgroundBGS.cpp +++ b/package_bgs/dp/DPEigenbackgroundBGS.cpp @@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. */ #include "DPEigenbackgroundBGS.h" -DPEigenbackgroundBGS::DPEigenbackgroundBGS() : firstTime(true), frameNumber(0), showOutput(true), threshold(225), historySize(20), embeddedDim(10) +DPEigenbackgroundBGS::DPEigenbackgroundBGS() : firstTime(true), frameNumber(0), threshold(225), historySize(20), embeddedDim(10), showOutput(true) { std::cout << "DPEigenbackgroundBGS()" << std::endl; } @@ -103,4 +103,4 @@ void DPEigenbackgroundBGS::loadConfig() showOutput = cvReadIntByName(fs, 0, "showOutput", true); cvReleaseFileStorage(&fs); -} \ No newline at end of file +} diff --git a/package_bgs/dp/DPGrimsonGMMBGS.cpp b/package_bgs/dp/DPGrimsonGMMBGS.cpp index 0d6ad42fa6c59c4a356dccdf0ce054e8ceeaed42..ae5486024289ce9582028d10b00eded772100c73 100644 --- a/package_bgs/dp/DPGrimsonGMMBGS.cpp +++ b/package_bgs/dp/DPGrimsonGMMBGS.cpp @@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. */ #include "DPGrimsonGMMBGS.h" -DPGrimsonGMMBGS::DPGrimsonGMMBGS() : firstTime(true), frameNumber(0), showOutput(true), threshold(9.0), alpha(0.01), gaussians(3) +DPGrimsonGMMBGS::DPGrimsonGMMBGS() : firstTime(true), frameNumber(0), threshold(9.0), alpha(0.01), gaussians(3), showOutput(true) { std::cout << "DPGrimsonGMMBGS()" << std::endl; } @@ -102,4 +102,4 @@ void DPGrimsonGMMBGS::loadConfig() showOutput = cvReadIntByName(fs, 0, "showOutput", true); cvReleaseFileStorage(&fs); -} \ No newline at end of file +} diff --git a/package_bgs/dp/DPZivkovicAGMMBGS.cpp b/package_bgs/dp/DPZivkovicAGMMBGS.cpp index 16f991cc96ed1d43683b455764464ff1c4dd1ab8..e8276f6bd8ceaa328faedc971b842493f7e70edb 100644 --- a/package_bgs/dp/DPZivkovicAGMMBGS.cpp +++ b/package_bgs/dp/DPZivkovicAGMMBGS.cpp @@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. */ #include "DPZivkovicAGMMBGS.h" -DPZivkovicAGMMBGS::DPZivkovicAGMMBGS() : firstTime(true), frameNumber(0), showOutput(true), threshold(25.0f), alpha(0.001f), gaussians(3) +DPZivkovicAGMMBGS::DPZivkovicAGMMBGS() : firstTime(true), frameNumber(0), threshold(25.0f), alpha(0.001f), gaussians(3), showOutput(true) { std::cout << "DPZivkovicAGMMBGS()" << std::endl; } @@ -101,4 +101,4 @@ void DPZivkovicAGMMBGS::loadConfig() showOutput = cvReadIntByName(fs, 0, "showOutput", true); cvReleaseFileStorage(&fs); -} \ No newline at end of file +} diff --git a/package_bgs/jmo/MultiLayerBGS.cpp b/package_bgs/jmo/MultiLayerBGS.cpp index 46b4489ab4e09f7fb1b2b0afc0e6fad44ca0c508..03e223f1f49e44816af126238d5a50f3217883f4 100644 --- a/package_bgs/jmo/MultiLayerBGS.cpp +++ b/package_bgs/jmo/MultiLayerBGS.cpp @@ -16,9 +16,8 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. */ #include "MultiLayerBGS.h" -MultiLayerBGS::MultiLayerBGS() : firstTime(true), showOutput(true), -bg_model_preload(""), saveModel(false), disableLearning(false), disableDetectMode(true), loadDefaultParams(true), -detectAfter(0), frameNumber(0) +MultiLayerBGS::MultiLayerBGS() : firstTime(true), frameNumber(0), showOutput(true), +saveModel(false), disableDetectMode(true), disableLearning(false), detectAfter(0), bg_model_preload(""), loadDefaultParams(true) { std::cout << "MultiLayerBGS()" << std::endl; } @@ -329,4 +328,4 @@ void MultiLayerBGS::loadConfig() showOutput = cvReadIntByName(fs, 0, "showOutput", true); cvReleaseFileStorage(&fs); -} \ No newline at end of file +} diff --git a/package_bgs/tb/T2FGMM_UM.cpp b/package_bgs/tb/T2FGMM_UM.cpp index 1f92ba6fcf0c69b321878abbdeccfb1718dba2e0..31a5338068580281d41a3d0af2c959a31d33b8a2 100644 --- a/package_bgs/tb/T2FGMM_UM.cpp +++ b/package_bgs/tb/T2FGMM_UM.cpp @@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. */ #include "T2FGMM_UM.h" -T2FGMM_UM::T2FGMM_UM() : firstTime(true), frameNumber(0), showOutput(true), threshold(9.0), alpha(0.01), gaussians(3), km(1.5f), kv(0.6f) +T2FGMM_UM::T2FGMM_UM() : firstTime(true), frameNumber(0), threshold(9.0), alpha(0.01), km(1.5f), kv(0.6f), gaussians(3), showOutput(true) { std::cout << "T2FGMM_UM()" << std::endl; } @@ -108,4 +108,4 @@ void T2FGMM_UM::loadConfig() showOutput = cvReadIntByName(fs, 0, "showOutput", true); cvReleaseFileStorage(&fs); -} \ No newline at end of file +} diff --git a/package_bgs/tb/T2FGMM_UV.cpp b/package_bgs/tb/T2FGMM_UV.cpp index 3b99dd637d85d57cae2b92f53d4856a2a3fdd738..c6f99f198f2dd498402ea1d9526bd635358541b9 100644 --- a/package_bgs/tb/T2FGMM_UV.cpp +++ b/package_bgs/tb/T2FGMM_UV.cpp @@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. */ #include "T2FGMM_UV.h" -T2FGMM_UV::T2FGMM_UV() : firstTime(true), frameNumber(0), showOutput(true), threshold(9.0), alpha(0.01), gaussians(3), km(1.5f), kv(0.6f) +T2FGMM_UV::T2FGMM_UV() : firstTime(true), frameNumber(0), threshold(9.0), alpha(0.01), km(1.5f), kv(0.6f), gaussians(3), showOutput(true) { std::cout << "T2FGMM_UV()" << std::endl; } @@ -108,4 +108,4 @@ void T2FGMM_UV::loadConfig() showOutput = cvReadIntByName(fs, 0, "showOutput", true); cvReleaseFileStorage(&fs); -} \ No newline at end of file +} diff --git a/package_bgs/tb/T2FMRF_UM.cpp b/package_bgs/tb/T2FMRF_UM.cpp index 439cc53af1adbedc5bb51ff595d997af6a88a6db..5b41d8ae2c1acb72f43eb9bbedd6662577f22b3a 100644 --- a/package_bgs/tb/T2FMRF_UM.cpp +++ b/package_bgs/tb/T2FMRF_UM.cpp @@ -16,8 +16,8 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. */ #include "T2FMRF_UM.h" -T2FMRF_UM::T2FMRF_UM() : firstTime(true), frameNumber(0), showOutput(true), threshold(9.0), alpha(0.01), -gaussians(3), km(2.f), kv(0.9f) +T2FMRF_UM::T2FMRF_UM() : firstTime(true), frameNumber(0), threshold(9.0), alpha(0.01), +km(2.f), kv(0.9f), gaussians(3), showOutput(true) { std::cout << "T2FMRF_UM()" << std::endl; } diff --git a/package_bgs/tb/T2FMRF_UV.cpp b/package_bgs/tb/T2FMRF_UV.cpp index 0ada1f7fa7488018bc268b8f59f01531529e5467..03f259557a9b2a514e74926839a3a5cdfb93a780 100644 --- a/package_bgs/tb/T2FMRF_UV.cpp +++ b/package_bgs/tb/T2FMRF_UV.cpp @@ -16,8 +16,8 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. */ #include "T2FMRF_UV.h" -T2FMRF_UV::T2FMRF_UV() : firstTime(true), frameNumber(0), showOutput(true), threshold(9.0), alpha(0.01), -gaussians(3), km(2.f), kv(0.9f) +T2FMRF_UV::T2FMRF_UV() : firstTime(true), frameNumber(0), threshold(9.0), alpha(0.01), +km(2.f), kv(0.9f), gaussians(3), showOutput(true) { std::cout << "T2FMRF_UV()" << std::endl; }