#pragma once

#include "types/process_filter.h"

namespace TooManyPeeps {

  class BackgroundExtractor : public ProcessFilter {

    private:
      static const bool TRACK_SHADOWS = false;

    private:
      cv::Ptr<cv::BackgroundSubtractor> backgroundExtractor;

    public:
      BackgroundExtractor(const cv::Mat& original, cv::Mat& result, int historySize, double threshold);
      ~BackgroundExtractor(void);

    public:
      virtual void execute(void);
  };

};

#pragma once

#include "types/process_filter.h"

namespace TooManyPeeps {

  class BackgroundExtractor : public ProcessFilter {

    private:
      static const bool TRACK_SHADOWS = true;

    private:
      cv::Ptr<cv::BackgroundSubtractor> backgroundExtractor;

    public:
      BackgroundExtractor(const cv::Mat& original, cv::Mat& result, int historySize, double threshold);
      ~BackgroundExtractor(void);

    public:
      virtual void execute(void);
  };

};

Allow mog to track shadows
Allow mog to track shadows
