diff --git a/modules/video/include/opencv2/video/background_segm.hpp b/modules/video/include/opencv2/video/background_segm.hpp index 08ee221af..4d5b1b163 100644 --- a/modules/video/include/opencv2/video/background_segm.hpp +++ b/modules/video/include/opencv2/video/background_segm.hpp @@ -360,6 +360,8 @@ public: //! the update operator that takes the next video frame and returns the current foreground mask as 8-bit binary image. CV_WRAP_AS(apply) virtual void operator()(const InputArray& image, OutputArray fgmask, double learningRate=0); + + virtual void getBackgroundImage(OutputArray) const; }; @@ -412,6 +414,8 @@ public: //! the update operator virtual void operator()(const InputArray& image, OutputArray fgmask, double learningRate=-1); + virtual void getBackgroundImage(OutputArray) const; + //! re-initiaization method virtual void initialize(Size frameSize, int frameType);