Skip to content

Commit

Permalink
reduced compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Holger Friedrich committed Jul 29, 2014
1 parent e0c541b commit e7cc79f
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package_analysis/ForegroundMaskAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions package_bgs/av/TBackgroundVuMeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion package_bgs/db/IndependentMultimodalBGS.cpp
Original file line number Diff line number Diff line change
@@ -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(){
Expand Down
4 changes: 2 additions & 2 deletions package_bgs/dp/DPAdaptiveMedianBGS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -101,4 +101,4 @@ void DPAdaptiveMedianBGS::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true);

cvReleaseFileStorage(&fs);
}
}
4 changes: 2 additions & 2 deletions package_bgs/dp/DPEigenbackgroundBGS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -103,4 +103,4 @@ void DPEigenbackgroundBGS::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true);

cvReleaseFileStorage(&fs);
}
}
4 changes: 2 additions & 2 deletions package_bgs/dp/DPGrimsonGMMBGS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -102,4 +102,4 @@ void DPGrimsonGMMBGS::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true);

cvReleaseFileStorage(&fs);
}
}
4 changes: 2 additions & 2 deletions package_bgs/dp/DPZivkovicAGMMBGS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -101,4 +101,4 @@ void DPZivkovicAGMMBGS::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true);

cvReleaseFileStorage(&fs);
}
}
7 changes: 3 additions & 4 deletions package_bgs/jmo/MultiLayerBGS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -329,4 +328,4 @@ void MultiLayerBGS::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true);

cvReleaseFileStorage(&fs);
}
}
4 changes: 2 additions & 2 deletions package_bgs/tb/T2FGMM_UM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -108,4 +108,4 @@ void T2FGMM_UM::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true);

cvReleaseFileStorage(&fs);
}
}
4 changes: 2 additions & 2 deletions package_bgs/tb/T2FGMM_UV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -108,4 +108,4 @@ void T2FGMM_UV::loadConfig()
showOutput = cvReadIntByName(fs, 0, "showOutput", true);

cvReleaseFileStorage(&fs);
}
}
4 changes: 2 additions & 2 deletions package_bgs/tb/T2FMRF_UM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions package_bgs/tb/T2FMRF_UV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e7cc79f

Please sign in to comment.