Skip to content
Snippets Groups Projects
Commit e7cc79f0 authored by Holger Friedrich's avatar Holger Friedrich
Browse files

reduced compiler warnings

parent e0c541b7
Branches
Tags
No related merge requests found
...@@ -18,7 +18,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. ...@@ -18,7 +18,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>.
namespace bgslibrary 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; std::cout << "ForegroundMaskAnalysis()" << std::endl;
} }
......
...@@ -27,11 +27,11 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. ...@@ -27,11 +27,11 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>.
TBackgroundVuMeter::TBackgroundVuMeter(void) TBackgroundVuMeter::TBackgroundVuMeter(void)
: m_pHist(NULL) : m_pHist(NULL)
, m_nBinSize(8)
, m_nBinCount(0) , m_nBinCount(0)
, m_nBinSize(8)
, m_nCount(0)
, m_fAlpha(0.995) , m_fAlpha(0.995)
, m_fThreshold(0.03) , m_fThreshold(0.03)
, m_nCount(0)
{ {
std::cout << "TBackgroundVuMeter()" << std::endl; std::cout << "TBackgroundVuMeter()" << std::endl;
} }
......
#include "IndependentMultimodalBGS.h" #include "IndependentMultimodalBGS.h"
IndependentMultimodalBGS::IndependentMultimodalBGS() : firstTime(true), fps(10), showOutput(true){ IndependentMultimodalBGS::IndependentMultimodalBGS() : fps(10), firstTime(true), showOutput(true){
pIMBS = new BackgroundSubtractorIMBS(fps); pIMBS = new BackgroundSubtractorIMBS(fps);
} }
IndependentMultimodalBGS::~IndependentMultimodalBGS(){ IndependentMultimodalBGS::~IndependentMultimodalBGS(){
......
...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. ...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "DPAdaptiveMedianBGS.h" #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; std::cout << "DPAdaptiveMedianBGS()" << std::endl;
} }
...@@ -101,4 +101,4 @@ void DPAdaptiveMedianBGS::loadConfig() ...@@ -101,4 +101,4 @@ void DPAdaptiveMedianBGS::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true); showOutput = cvReadIntByName(fs, 0, "showOutput", true);
cvReleaseFileStorage(&fs); cvReleaseFileStorage(&fs);
} }
\ No newline at end of file
...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. ...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "DPEigenbackgroundBGS.h" #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; std::cout << "DPEigenbackgroundBGS()" << std::endl;
} }
...@@ -103,4 +103,4 @@ void DPEigenbackgroundBGS::loadConfig() ...@@ -103,4 +103,4 @@ void DPEigenbackgroundBGS::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true); showOutput = cvReadIntByName(fs, 0, "showOutput", true);
cvReleaseFileStorage(&fs); cvReleaseFileStorage(&fs);
} }
\ No newline at end of file
...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. ...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "DPGrimsonGMMBGS.h" #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; std::cout << "DPGrimsonGMMBGS()" << std::endl;
} }
...@@ -102,4 +102,4 @@ void DPGrimsonGMMBGS::loadConfig() ...@@ -102,4 +102,4 @@ void DPGrimsonGMMBGS::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true); showOutput = cvReadIntByName(fs, 0, "showOutput", true);
cvReleaseFileStorage(&fs); cvReleaseFileStorage(&fs);
} }
\ No newline at end of file
...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. ...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "DPZivkovicAGMMBGS.h" #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; std::cout << "DPZivkovicAGMMBGS()" << std::endl;
} }
...@@ -101,4 +101,4 @@ void DPZivkovicAGMMBGS::loadConfig() ...@@ -101,4 +101,4 @@ void DPZivkovicAGMMBGS::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true); showOutput = cvReadIntByName(fs, 0, "showOutput", true);
cvReleaseFileStorage(&fs); cvReleaseFileStorage(&fs);
} }
\ No newline at end of file
...@@ -16,9 +16,8 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. ...@@ -16,9 +16,8 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "MultiLayerBGS.h" #include "MultiLayerBGS.h"
MultiLayerBGS::MultiLayerBGS() : firstTime(true), showOutput(true), MultiLayerBGS::MultiLayerBGS() : firstTime(true), frameNumber(0), showOutput(true),
bg_model_preload(""), saveModel(false), disableLearning(false), disableDetectMode(true), loadDefaultParams(true), saveModel(false), disableDetectMode(true), disableLearning(false), detectAfter(0), bg_model_preload(""), loadDefaultParams(true)
detectAfter(0), frameNumber(0)
{ {
std::cout << "MultiLayerBGS()" << std::endl; std::cout << "MultiLayerBGS()" << std::endl;
} }
...@@ -329,4 +328,4 @@ void MultiLayerBGS::loadConfig() ...@@ -329,4 +328,4 @@ void MultiLayerBGS::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true); showOutput = cvReadIntByName(fs, 0, "showOutput", true);
cvReleaseFileStorage(&fs); cvReleaseFileStorage(&fs);
} }
\ No newline at end of file
...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. ...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "T2FGMM_UM.h" #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; std::cout << "T2FGMM_UM()" << std::endl;
} }
...@@ -108,4 +108,4 @@ void T2FGMM_UM::loadConfig() ...@@ -108,4 +108,4 @@ void T2FGMM_UM::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true); showOutput = cvReadIntByName(fs, 0, "showOutput", true);
cvReleaseFileStorage(&fs); cvReleaseFileStorage(&fs);
} }
\ No newline at end of file
...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. ...@@ -16,7 +16,7 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "T2FGMM_UV.h" #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; std::cout << "T2FGMM_UV()" << std::endl;
} }
...@@ -108,4 +108,4 @@ void T2FGMM_UV::loadConfig() ...@@ -108,4 +108,4 @@ void T2FGMM_UV::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true); showOutput = cvReadIntByName(fs, 0, "showOutput", true);
cvReleaseFileStorage(&fs); cvReleaseFileStorage(&fs);
} }
\ No newline at end of file
...@@ -16,8 +16,8 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. ...@@ -16,8 +16,8 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "T2FMRF_UM.h" #include "T2FMRF_UM.h"
T2FMRF_UM::T2FMRF_UM() : firstTime(true), frameNumber(0), showOutput(true), threshold(9.0), alpha(0.01), T2FMRF_UM::T2FMRF_UM() : firstTime(true), frameNumber(0), threshold(9.0), alpha(0.01),
gaussians(3), km(2.f), kv(0.9f) km(2.f), kv(0.9f), gaussians(3), showOutput(true)
{ {
std::cout << "T2FMRF_UM()" << std::endl; std::cout << "T2FMRF_UM()" << std::endl;
} }
......
...@@ -16,8 +16,8 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>. ...@@ -16,8 +16,8 @@ along with BGSLibrary. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "T2FMRF_UV.h" #include "T2FMRF_UV.h"
T2FMRF_UV::T2FMRF_UV() : firstTime(true), frameNumber(0), showOutput(true), threshold(9.0), alpha(0.01), T2FMRF_UV::T2FMRF_UV() : firstTime(true), frameNumber(0), threshold(9.0), alpha(0.01),
gaussians(3), km(2.f), kv(0.9f) km(2.f), kv(0.9f), gaussians(3), showOutput(true)
{ {
std::cout << "T2FMRF_UV()" << std::endl; std::cout << "T2FMRF_UV()" << std::endl;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment