add BackgroundSubtractor(KNN|MOG2).getDefaultName() implementation

pull/21812/head
Christine Poerschke 3 years ago
parent 13a995cc1d
commit 8ac88cf069
  1. 2
      modules/video/src/bgfg_KNN.cpp
  2. 2
      modules/video/src/bgfg_gaussmix2.cpp

@ -214,6 +214,8 @@ public:
} }
} }
virtual String getDefaultName() const CV_OVERRIDE { return "BackgroundSubtractor_KNN"; }
virtual int getHistory() const CV_OVERRIDE { return history; } virtual int getHistory() const CV_OVERRIDE { return history; }
virtual void setHistory(int _nframes) CV_OVERRIDE { history = _nframes; } virtual void setHistory(int _nframes) CV_OVERRIDE { history = _nframes; }

@ -236,6 +236,8 @@ public:
} }
} }
virtual String getDefaultName() const CV_OVERRIDE { return "BackgroundSubtractor_MOG2"; }
virtual int getHistory() const CV_OVERRIDE { return history; } virtual int getHistory() const CV_OVERRIDE { return history; }
virtual void setHistory(int _nframes) CV_OVERRIDE { history = _nframes; } virtual void setHistory(int _nframes) CV_OVERRIDE { history = _nframes; }

Loading…
Cancel
Save