%% Compile
clc;
mexOpenCV -v -DMEX_COMPILE_FLAG -I"../../src/algorithms" backgroundSubtractor_wrapper.cpp ...
  "../../src/algorithms/FrameDifference.cpp" ...
  "../../src/algorithms/StaticFrameDifference.cpp" ...
  "../../src/algorithms/WeightedMovingMean.cpp" ...
  "../../src/algorithms/WeightedMovingVariance.cpp" ...
  "../../src/algorithms/MixtureOfGaussianV1.cpp" ...
  "../../src/algorithms/MixtureOfGaussianV2.cpp" ...
  "../../src/algorithms/AdaptiveBackgroundLearning.cpp" ...
  "../../src/algorithms/AdaptiveSelectiveBackgroundLearning.cpp" ...
  "../../src/algorithms/GMG.cpp" ...
  "../../src/algorithms/KNN.cpp" ...
  "../../src/algorithms/DPAdaptiveMedian.cpp" ...
  "../../src/algorithms/DPGrimsonGMM.cpp" ...
  "../../src/algorithms/DPZivkovicAGMM.cpp" ...
  "../../src/algorithms/DPMean.cpp" ...
  "../../src/algorithms/DPWrenGA.cpp" ...
  "../../src/algorithms/DPPratiMediod.cpp" ...
  "../../src/algorithms/DPEigenbackground.cpp" ...
  "../../src/algorithms/DPTexture.cpp" ...
  "../../src/algorithms/dp/AdaptiveMedianBGS.cpp" ...
  "../../src/algorithms/dp/Image.cpp" ...
  "../../src/algorithms/dp/Error.cpp" ...
  "../../src/algorithms/dp/GrimsonGMM.cpp" ...
  "../../src/algorithms/dp/ZivkovicAGMM.cpp" ...
  "../../src/algorithms/dp/MeanBGS.cpp" ...
  "../../src/algorithms/dp/WrenGA.cpp"  ...
  "../../src/algorithms/dp/PratiMediodBGS.cpp" ...
  "../../src/algorithms/dp/Eigenbackground.cpp" ...
  "../../src/algorithms/dp/TextureBGS.cpp" ...
  "../../src/algorithms/T2FGMM_UM.cpp" ...
  "../../src/algorithms/T2FGMM_UV.cpp" ...
  "../../src/algorithms/T2FMRF_UM.cpp" ...
  "../../src/algorithms/T2FMRF_UV.cpp" ...
  "../../src/algorithms/FuzzyChoquetIntegral.cpp" ...
  "../../src/algorithms/FuzzySugenoIntegral.cpp" ...
  "../../src/algorithms/T2F/T2FGMM.cpp" ...
  "../../src/algorithms/T2F/T2FMRF.cpp" ...
  "../../src/algorithms/T2F/MRF.cpp" ...
  "../../src/tools/FuzzyUtils.cpp" ...
  "../../src/tools/PixelUtils.cpp" ...
  "../../src/algorithms/MultiLayer.cpp" ...
  "../../src/algorithms/MultiLayer/CMultiLayerBGS.cpp" ...
  "../../src/algorithms/MultiLayer/LocalBinaryPattern.cpp" ...
  "../../src/algorithms/MultiLayer/BlobResult.cpp" ...
  "../../src/algorithms/MultiLayer/BlobExtraction.cpp" ...
  "../../src/algorithms/MultiLayer/blob.cpp" ...
  "../../src/algorithms/LBSimpleGaussian.cpp" ...
  "../../src/algorithms/LBFuzzyGaussian.cpp" ...
  "../../src/algorithms/LBMixtureOfGaussians.cpp" ...
  "../../src/algorithms/LBAdaptiveSOM.cpp" ...
  "../../src/algorithms/LBFuzzyAdaptiveSOM.cpp" ...
  "../../src/algorithms/lb/BGModel.cpp" ...
  "../../src/algorithms/lb/BGModelFuzzyGauss.cpp" ...
  "../../src/algorithms/lb/BGModelFuzzySom.cpp" ...
  "../../src/algorithms/lb/BGModelGauss.cpp" ...
  "../../src/algorithms/lb/BGModelMog.cpp" ...
  "../../src/algorithms/lb/BGModelSom.cpp" ...
  "../../src/algorithms/LBP_MRF.cpp" ...
  "../../src/algorithms/LBP_MRF/MotionDetection.cpp" ...
  "../../src/algorithms/LBP_MRF/MEImage.cpp" ...
  "../../src/algorithms/LBP_MRF/MEHistogram.cpp" ...
  "../../src/algorithms/LBP_MRF/MEDefs.cpp" ...
  "../../src/algorithms/LBP_MRF/maxflow.cpp" ...
  "../../src/algorithms/LBP_MRF/graph.cpp" ...
  "../../src/algorithms/PixelBasedAdaptiveSegmenter.cpp" ...
  "../../src/algorithms/PBAS/PBAS.cpp" ...
  "../../src/algorithms/VuMeter.cpp" ...
  "../../src/algorithms/VuMeter/TBackgroundVuMeter.cpp" ...
  "../../src/algorithms/VuMeter/TBackground.cpp" ...
  "../../src/algorithms/KDE.cpp" ...
  "../../src/algorithms/KDE/NPBGSubtractor.cpp" ...
  "../../src/algorithms/KDE/NPBGmodel.cpp" ...
  "../../src/algorithms/KDE/KernelTable.cpp" ...
  "../../src/algorithms/IndependentMultimodal.cpp" ...
  "../../src/algorithms/IMBS/IMBS.cpp" ...
  "../../src/algorithms/MultiCue.cpp" ...
  "../../src/algorithms/SigmaDelta.cpp" ...
  "../../src/algorithms/SigmaDelta/sdLaMa091.cpp" ...
  "../../src/algorithms/SuBSENSE.cpp" ...
  "../../src/algorithms/LOBSTER.cpp" ...
  "../../src/algorithms/PAWCS.cpp" ...
  "../../src/algorithms/LBSP/LBSP.cpp" ...
  "../../src/algorithms/LBSP/LBSP_.cpp" ...
  "../../src/algorithms/LBSP/BackgroundSubtractorLBSP.cpp" ...
  "../../src/algorithms/LBSP/BackgroundSubtractorLBSP_.cpp" ...
  "../../src/algorithms/LBSP/BackgroundSubtractorLOBSTER.cpp" ...
  "../../src/algorithms/LBSP/BackgroundSubtractorPAWCS.cpp" ...
  "../../src/algorithms/LBSP/BackgroundSubtractorSuBSENSE.cpp" ...
  "../../src/algorithms/ViBe.cpp" ...
  "../../src/algorithms/ViBe/vibe-background-sequential.cpp" ...
  "../../src/algorithms/TwoPoints.cpp" ...
  "../../src/algorithms/TwoPoints/two_points.cpp" ...
  "../../src/algorithms/CodeBook.cpp"
