Skip to content

Commit

Permalink
Enabled LBMixtureOfGaussians for OpenCV 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewssobral committed Mar 4, 2023
1 parent dffa9fe commit 55f5c75
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions bgslibrary/algorithms/LBMixtureOfGaussians.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "LBMixtureOfGaussians.h"

#if CV_MAJOR_VERSION >= 2 && CV_MAJOR_VERSION <= 3

using namespace bgslibrary::algorithms;

LBMixtureOfGaussians::LBMixtureOfGaussians() :
Expand Down Expand Up @@ -72,5 +70,3 @@ void LBMixtureOfGaussians::load_config(cv::FileStorage &fs) {
fs["noiseVariance"] >> noiseVariance;
fs["showOutput"] >> showOutput;
}

#endif
6 changes: 0 additions & 6 deletions bgslibrary/algorithms/LBMixtureOfGaussians.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#pragma once

#include "IBGS.h"

#include "opencv2/core/version.hpp"
#if CV_MAJOR_VERSION == 2 || CV_MAJOR_VERSION == 3

#include "lb/BGModelMog.h"

namespace bgslibrary
Expand Down Expand Up @@ -34,5 +30,3 @@ namespace bgslibrary
bgs_register(LBMixtureOfGaussians);
}
}

#endif
2 changes: 1 addition & 1 deletion bgslibrary/algorithms/algorithms.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "FuzzyChoquetIntegral.h"
#include "LBSimpleGaussian.h"
#include "LBFuzzyGaussian.h"
#include "LBMixtureOfGaussians.h" // Only for OpenCV 2 or 3
#include "LBMixtureOfGaussians.h"
#include "LBAdaptiveSOM.h"
#include "LBFuzzyAdaptiveSOM.h"
#include "LBP_MRF.h" // Only for OpenCV 2 or OpenCV <= 3.4.7
Expand Down

0 comments on commit 55f5c75

Please sign in to comment.