From 8ac88cf069371d6f51d62da9c49ee6fd15e1cf21 Mon Sep 17 00:00:00 2001 From: Christine Poerschke <6458642+cpoerschke@users.noreply.github.com> Date: Sun, 3 Apr 2022 20:35:55 +0100 Subject: [PATCH] add BackgroundSubtractor(KNN|MOG2).getDefaultName() implementation --- modules/video/src/bgfg_KNN.cpp | 2 ++ modules/video/src/bgfg_gaussmix2.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/video/src/bgfg_KNN.cpp b/modules/video/src/bgfg_KNN.cpp index 1ddf1b7d51..5ec2266921 100644 --- a/modules/video/src/bgfg_KNN.cpp +++ b/modules/video/src/bgfg_KNN.cpp @@ -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; } diff --git a/modules/video/src/bgfg_gaussmix2.cpp b/modules/video/src/bgfg_gaussmix2.cpp index 69e4baf657..f7b26ef06b 100644 --- a/modules/video/src/bgfg_gaussmix2.cpp +++ b/modules/video/src/bgfg_gaussmix2.cpp @@ -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; }