提交 9b8c4739 编写于 作者: K Kirill Kornyakov

fixed compilation error because of DetectionBasedTracker

上级 9a765731
...@@ -27,6 +27,7 @@ class DetectionBasedTracker ...@@ -27,6 +27,7 @@ class DetectionBasedTracker
minNeighbours(2), minNeighbours(2),
scaleFactor(1.1f) scaleFactor(1.1f)
{} {}
virtual ~IDetector() {}
virtual void detect(const cv::Mat& image, std::vector<cv::Rect>& objects) = 0; virtual void detect(const cv::Mat& image, std::vector<cv::Rect>& objects) = 0;
...@@ -62,7 +63,6 @@ class DetectionBasedTracker ...@@ -62,7 +63,6 @@ class DetectionBasedTracker
{ {
minNeighbours = value; minNeighbours = value;
} }
virtual ~IDetector() {}
protected: protected:
cv::Size minObjSize; cv::Size minObjSize;
...@@ -107,7 +107,6 @@ class DetectionBasedTracker ...@@ -107,7 +107,6 @@ class DetectionBasedTracker
}; };
virtual void getObjects(std::vector<ExtObject>& result) const; virtual void getObjects(std::vector<ExtObject>& result) const;
virtual int addObject(const cv::Rect& location); //returns id of the new object virtual int addObject(const cv::Rect& location); //returns id of the new object
protected: protected:
...@@ -170,7 +169,7 @@ class DetectionBasedTracker ...@@ -170,7 +169,7 @@ class DetectionBasedTracker
namespace cv namespace cv
{ {
typedef ::DetectionBasedTracker DetectionBasedTracker; using ::DetectionBasedTracker;
} //end of cv namespace } //end of cv namespace
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册