mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 01:13:28 +08:00
samples: apply CV_OVERRIDE/CV_FINAL
This commit is contained in:
parent
25be4186bc
commit
cfdffdd519
@ -24,12 +24,12 @@ class CascadeDetectorAdapter: public DetectionBasedTracker::IDetector
|
||||
CV_Assert(detector);
|
||||
}
|
||||
|
||||
void detect(const cv::Mat &Image, std::vector<cv::Rect> &objects)
|
||||
void detect(const cv::Mat &Image, std::vector<cv::Rect> &objects) CV_OVERRIDE
|
||||
{
|
||||
Detector->detectMultiScale(Image, objects, scaleFactor, minNeighbours, 0, minObjSize, maxObjSize);
|
||||
}
|
||||
|
||||
virtual ~CascadeDetectorAdapter()
|
||||
virtual ~CascadeDetectorAdapter() CV_OVERRIDE
|
||||
{}
|
||||
|
||||
private:
|
||||
|
@ -192,7 +192,7 @@ public:
|
||||
MotionEstimatorRansacL2Builder(CommandLineParser &command, bool use_gpu, const string &_prefix = "")
|
||||
: IMotionEstimatorBuilder(command), gpu(use_gpu), prefix(_prefix) {}
|
||||
|
||||
virtual Ptr<ImageMotionEstimatorBase> build()
|
||||
virtual Ptr<ImageMotionEstimatorBase> build() CV_OVERRIDE
|
||||
{
|
||||
Ptr<MotionEstimatorRansacL2> est = makePtr<MotionEstimatorRansacL2>(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<ImageMotionEstimatorBase> build()
|
||||
virtual Ptr<ImageMotionEstimatorBase> build() CV_OVERRIDE
|
||||
{
|
||||
Ptr<MotionEstimatorL1> est = makePtr<MotionEstimatorL1>(motionModel(arg(prefix + "model")));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user