mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
add BackgroundSubtractor(KNN|MOG2).getDefaultName() implementation
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user