From 833102c19e9bf34697db2741ac49d5621f458c2c Mon Sep 17 00:00:00 2001 From: Alexey Kazakov Date: Thu, 24 Feb 2011 11:03:00 +0000 Subject: [PATCH] Replaced few methods to virtual in CascaseClassifier class (objdetect.hpp) --- modules/objdetect/include/opencv2/objdetect/objdetect.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/objdetect/include/opencv2/objdetect/objdetect.hpp b/modules/objdetect/include/opencv2/objdetect/objdetect.hpp index 63853e771b..8eaf538b6e 100644 --- a/modules/objdetect/include/opencv2/objdetect/objdetect.hpp +++ b/modules/objdetect/include/opencv2/objdetect/objdetect.hpp @@ -306,7 +306,7 @@ public: CV_WRAP virtual bool empty() const; CV_WRAP bool load( const string& filename ); - bool read( const FileNode& node ); + virtual bool read( const FileNode& node ); CV_WRAP virtual void detectMultiScale( const Mat& image, CV_OUT vector& objects, double scaleFactor=1.1, @@ -343,7 +343,7 @@ protected: friend int predictCategoricalStump( CascadeClassifier& cascade, Ptr &featureEvaluator); bool setImage( Ptr&, const Mat& ); - int runAt( Ptr&, Point ); + virtual int runAt( Ptr&, Point ); class Data {