From 8bdd0d3307c634024dabd5fe074b7cc802af66bf Mon Sep 17 00:00:00 2001 From: Nuzhny007 Date: Fri, 9 Jun 2017 12:57:13 +0300 Subject: [PATCH] Fixed compilation with OpenCV 3.2 --- Subsense/BackgroundSubtractorLBSP.cpp | 2 +- Subsense/BackgroundSubtractorLBSP.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Subsense/BackgroundSubtractorLBSP.cpp b/Subsense/BackgroundSubtractorLBSP.cpp index 98bf115..0e9bacc 100644 --- a/Subsense/BackgroundSubtractorLBSP.cpp +++ b/Subsense/BackgroundSubtractorLBSP.cpp @@ -36,7 +36,7 @@ void BackgroundSubtractorLBSP::initialize(const cv::Mat& oInitImg) { this->initialize(oInitImg,cv::Mat()); } -cv::AlgorithmInfo* BackgroundSubtractorLBSP::info() const { +cv::Algorithm* BackgroundSubtractorLBSP::info() const { return nullptr; } diff --git a/Subsense/BackgroundSubtractorLBSP.h b/Subsense/BackgroundSubtractorLBSP.h index 4e4290d..917d774 100644 --- a/Subsense/BackgroundSubtractorLBSP.h +++ b/Subsense/BackgroundSubtractorLBSP.h @@ -26,7 +26,7 @@ class BackgroundSubtractorLBSP : public cv::BackgroundSubtractor { //! primary model update function; the learning param is used to override the internal learning speed (ignored when <= 0) virtual void operator()(cv::InputArray image, cv::OutputArray fgmask, double learningRate=0)=0; //! unused, always returns nullptr - virtual cv::AlgorithmInfo* info() const; + virtual cv::Algorithm* info() const; //! returns a copy of the ROI used for descriptor extraction virtual cv::Mat getROICopy() const; //! sets the ROI to be used for descriptor extraction (note: this function will reinit the model and return the usable ROI)