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

This commit is contained in:
Christine Poerschke 2022-04-03 20:35:55 +01:00
parent 13a995cc1d
commit 8ac88cf069
2 changed files with 4 additions and 0 deletions

View File

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

View File

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