diff --git a/samples/cpp/dbt_face_detection.cpp b/samples/cpp/dbt_face_detection.cpp index a46ec12c4a..8e5112f121 100644 --- a/samples/cpp/dbt_face_detection.cpp +++ b/samples/cpp/dbt_face_detection.cpp @@ -24,12 +24,12 @@ class CascadeDetectorAdapter: public DetectionBasedTracker::IDetector CV_Assert(detector); } - void detect(const cv::Mat &Image, std::vector &objects) + void detect(const cv::Mat &Image, std::vector &objects) CV_OVERRIDE { Detector->detectMultiScale(Image, objects, scaleFactor, minNeighbours, 0, minObjSize, maxObjSize); } - virtual ~CascadeDetectorAdapter() + virtual ~CascadeDetectorAdapter() CV_OVERRIDE {} private: diff --git a/samples/cpp/videostab.cpp b/samples/cpp/videostab.cpp index e9afd0f4fe..15d68dc2dd 100644 --- a/samples/cpp/videostab.cpp +++ b/samples/cpp/videostab.cpp @@ -192,7 +192,7 @@ public: MotionEstimatorRansacL2Builder(CommandLineParser &command, bool use_gpu, const string &_prefix = "") : IMotionEstimatorBuilder(command), gpu(use_gpu), prefix(_prefix) {} - virtual Ptr build() + virtual Ptr build() CV_OVERRIDE { Ptr est = makePtr(motionModel(arg(prefix + "model"))); @@ -245,7 +245,7 @@ public: MotionEstimatorL1Builder(CommandLineParser &command, bool use_gpu, const string &_prefix = "") : IMotionEstimatorBuilder(command), gpu(use_gpu), prefix(_prefix) {} - virtual Ptr build() + virtual Ptr build() CV_OVERRIDE { Ptr est = makePtr(motionModel(arg(prefix + "model")));