From e7cc79f02ca06a1d8a53495190ad9fba07857896 Mon Sep 17 00:00:00 2001
From: Holger Friedrich <holgerf@vsi.cs.uni-frankfurt.de>
Date: Tue, 29 Jul 2014 16:55:29 +0200
Subject: [PATCH] reduced compiler warnings

---
 package_analysis/ForegroundMaskAnalysis.cpp | 2 +-
 package_bgs/av/TBackgroundVuMeter.cpp       | 4 ++--
 package_bgs/db/IndependentMultimodalBGS.cpp | 2 +-
 package_bgs/dp/DPAdaptiveMedianBGS.cpp      | 4 ++--
 package_bgs/dp/DPEigenbackgroundBGS.cpp     | 4 ++--
 package_bgs/dp/DPGrimsonGMMBGS.cpp          | 4 ++--
 package_bgs/dp/DPZivkovicAGMMBGS.cpp        | 4 ++--
 package_bgs/jmo/MultiLayerBGS.cpp           | 7 +++----
 package_bgs/tb/T2FGMM_UM.cpp                | 4 ++--
 package_bgs/tb/T2FGMM_UV.cpp                | 4 ++--
 package_bgs/tb/T2FMRF_UM.cpp                | 4 ++--
 package_bgs/tb/T2FMRF_UV.cpp                | 4 ++--
 12 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/package_analysis/ForegroundMaskAnalysis.cpp b/package_analysis/ForegroundMaskAnalysis.cpp
index 4df9ed0..eddc908 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 5c802ce..66a483f 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 c05ee5c..5312075 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 d7ebcd1..e9ef4fe 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 6d2c6ba..630d9cc 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 0d6ad42..ae54860 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 16f991c..e8276f6 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 46b4489..03e223f 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 1f92ba6..31a5338 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 3b99dd6..c6f99f1 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 439cc53..5b41d8a 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 0ada1f7..03f2595 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;
 }
-- 
GitLab