From 9b8c47399a3b4bcb8928156b7ea54fa7d0dfbd03 Mon Sep 17 00:00:00 2001 From: Kirill Kornyakov Date: Tue, 9 Oct 2012 18:55:20 +0400 Subject: [PATCH] fixed compilation error because of DetectionBasedTracker --- .../contrib/include/opencv2/contrib/detection_based_tracker.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/contrib/include/opencv2/contrib/detection_based_tracker.hpp b/modules/contrib/include/opencv2/contrib/detection_based_tracker.hpp index c290318..dc157b1 100644 --- a/modules/contrib/include/opencv2/contrib/detection_based_tracker.hpp +++ b/modules/contrib/include/opencv2/contrib/detection_based_tracker.hpp @@ -27,6 +27,7 @@ class DetectionBasedTracker minNeighbours(2), scaleFactor(1.1f) {} + virtual ~IDetector() {} virtual void detect(const cv::Mat& image, std::vector& objects) = 0; @@ -62,7 +63,6 @@ class DetectionBasedTracker { minNeighbours = value; } - virtual ~IDetector() {} protected: cv::Size minObjSize; @@ -107,7 +107,6 @@ class DetectionBasedTracker }; virtual void getObjects(std::vector& result) const; - virtual int addObject(const cv::Rect& location); //returns id of the new object protected: @@ -170,7 +169,7 @@ class DetectionBasedTracker namespace cv { - typedef ::DetectionBasedTracker DetectionBasedTracker; - + using ::DetectionBasedTracker; } //end of cv namespace + #endif -- 2.7.4