Sha256: 6c525e5c0c4b5518c3c44cd250811f776e75eba86de78f6674378ed6e8c8d61f

Contents?: true

Size: 1.34 KB

Versions: 4

Compression:

Stored size: 1.34 KB

Contents

/*
This file is part of BGSLibrary.

BGSLibrary is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

BGSLibrary is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with BGSLibrary.  If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/core/internal.hpp>

#include "bgslib_prati_mediod_bgs.h"

using namespace Algorithms::BackgroundSubtraction;

class DPPratiMediodBGS : public cv::BackgroundSubtractor
{
private:
  bool firstTime;
  long frameNumber;
  IplImage* frame;
  RgbImage frame_data;

  PratiParams params;
  PratiMediodBGS bgs;
  BwImage lowThresholdMask;
  BwImage highThresholdMask;

  int threshold;
  int samplingRate;
  int historySize;
  int weight;
  bool showOutput;

public:
  DPPratiMediodBGS();
  ~DPPratiMediodBGS();

  virtual cv::AlgorithmInfo* info() const;
  void operator()(cv::InputArray _image, cv::OutputArray _fgmask, double learningRate);
};

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spyglass-0.0.5.1 ext/spyglass/bgslib_dp_prati_mediod_bgs.h
spyglass-0.0.5 ext/spyglass/bgslib_dp_prati_mediod_bgs.h
spyglass-0.0.4.1 ext/spyglass/bgslib_dp_prati_mediod_bgs.h
spyglass-0.0.4 ext/spyglass/bgslib_dp_prati_mediod_bgs.h