Commit a8eb3e1b authored by Alexander Alekhin's avatar Alexander Alekhin

superres: apply CV_OVERRIDE/CV_FINAL

parent 4a0fa576
...@@ -97,8 +97,8 @@ namespace cv ...@@ -97,8 +97,8 @@ namespace cv
@param frame Output result @param frame Output result
*/ */
void nextFrame(OutputArray frame); void nextFrame(OutputArray frame) CV_OVERRIDE;
void reset(); void reset() CV_OVERRIDE;
/** @brief Clear all inner buffers. /** @brief Clear all inner buffers.
*/ */
......
...@@ -363,7 +363,7 @@ namespace ...@@ -363,7 +363,7 @@ namespace
template <typename T> template <typename T>
struct BtvRegularizationBody : ParallelLoopBody struct BtvRegularizationBody : ParallelLoopBody
{ {
void operator ()(const Range& range) const; void operator ()(const Range& range) const CV_OVERRIDE;
Mat src; Mat src;
mutable Mat dst; mutable Mat dst;
...@@ -470,18 +470,28 @@ namespace ...@@ -470,18 +470,28 @@ namespace
void process(InputArrayOfArrays src, OutputArray dst, InputArrayOfArrays forwardMotions, void process(InputArrayOfArrays src, OutputArray dst, InputArrayOfArrays forwardMotions,
InputArrayOfArrays backwardMotions, int baseIdx); InputArrayOfArrays backwardMotions, int baseIdx);
void collectGarbage(); void collectGarbage() CV_OVERRIDE;
CV_IMPL_PROPERTY(int, Scale, scale_) inline int getScale() const CV_OVERRIDE { return scale_; }
CV_IMPL_PROPERTY(int, Iterations, iterations_) inline void setScale(int val) CV_OVERRIDE { scale_ = val; }
CV_IMPL_PROPERTY(double, Tau, tau_) inline int getIterations() const CV_OVERRIDE { return iterations_; }
CV_IMPL_PROPERTY(double, Labmda, lambda_) inline void setIterations(int val) CV_OVERRIDE { iterations_ = val; }
CV_IMPL_PROPERTY(double, Alpha, alpha_) inline double getTau() const CV_OVERRIDE { return tau_; }
CV_IMPL_PROPERTY(int, KernelSize, btvKernelSize_) inline void setTau(double val) CV_OVERRIDE { tau_ = val; }
CV_IMPL_PROPERTY(int, BlurKernelSize, blurKernelSize_) inline double getLabmda() const CV_OVERRIDE { return lambda_; }
CV_IMPL_PROPERTY(double, BlurSigma, blurSigma_) inline void setLabmda(double val) CV_OVERRIDE { lambda_ = val; }
CV_IMPL_PROPERTY(int, TemporalAreaRadius, temporalAreaRadius_) inline double getAlpha() const CV_OVERRIDE { return alpha_; }
CV_IMPL_PROPERTY_S(Ptr<cv::superres::DenseOpticalFlowExt>, OpticalFlow, opticalFlow_) inline void setAlpha(double val) CV_OVERRIDE { alpha_ = val; }
inline int getKernelSize() const CV_OVERRIDE { return btvKernelSize_; }
inline void setKernelSize(int val) CV_OVERRIDE { btvKernelSize_ = val; }
inline int getBlurKernelSize() const CV_OVERRIDE { return blurKernelSize_; }
inline void setBlurKernelSize(int val) CV_OVERRIDE { blurKernelSize_ = val; }
inline double getBlurSigma() const CV_OVERRIDE { return blurSigma_; }
inline void setBlurSigma(double val) CV_OVERRIDE { blurSigma_ = val; }
inline int getTemporalAreaRadius() const CV_OVERRIDE { return temporalAreaRadius_; }
inline void setTemporalAreaRadius(int val) CV_OVERRIDE { temporalAreaRadius_ = val; }
inline Ptr<cv::superres::DenseOpticalFlowExt> getOpticalFlow() const CV_OVERRIDE { return opticalFlow_; }
inline void setOpticalFlow(const Ptr<cv::superres::DenseOpticalFlowExt>& val) CV_OVERRIDE { opticalFlow_ = val; }
protected: protected:
int scale_; int scale_;
...@@ -798,18 +808,18 @@ namespace ...@@ -798,18 +808,18 @@ namespace
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
class BTVL1 : public BTVL1_Base class BTVL1 CV_FINAL : public BTVL1_Base
{ {
public: public:
BTVL1(); BTVL1();
void collectGarbage(); void collectGarbage() CV_OVERRIDE;
protected: protected:
void initImpl(Ptr<FrameSource>& frameSource); void initImpl(Ptr<FrameSource>& frameSource) CV_OVERRIDE;
bool ocl_initImpl(Ptr<FrameSource>& frameSource); bool ocl_initImpl(Ptr<FrameSource>& frameSource);
void processImpl(Ptr<FrameSource>& frameSource, OutputArray output); void processImpl(Ptr<FrameSource>& frameSource, OutputArray output) CV_OVERRIDE;
bool ocl_processImpl(Ptr<FrameSource>& frameSource, OutputArray output); bool ocl_processImpl(Ptr<FrameSource>& frameSource, OutputArray output);
private: private:
......
...@@ -218,16 +218,26 @@ namespace ...@@ -218,16 +218,26 @@ namespace
void collectGarbage(); void collectGarbage();
CV_IMPL_PROPERTY(int, Scale, scale_) inline int getScale() const CV_OVERRIDE { return scale_; }
CV_IMPL_PROPERTY(int, Iterations, iterations_) inline void setScale(int val) CV_OVERRIDE { scale_ = val; }
CV_IMPL_PROPERTY(double, Tau, tau_) inline int getIterations() const CV_OVERRIDE { return iterations_; }
CV_IMPL_PROPERTY(double, Labmda, lambda_) inline void setIterations(int val) CV_OVERRIDE { iterations_ = val; }
CV_IMPL_PROPERTY(double, Alpha, alpha_) inline double getTau() const CV_OVERRIDE { return tau_; }
CV_IMPL_PROPERTY(int, KernelSize, btvKernelSize_) inline void setTau(double val) CV_OVERRIDE { tau_ = val; }
CV_IMPL_PROPERTY(int, BlurKernelSize, blurKernelSize_) inline double getLabmda() const CV_OVERRIDE { return lambda_; }
CV_IMPL_PROPERTY(double, BlurSigma, blurSigma_) inline void setLabmda(double val) CV_OVERRIDE { lambda_ = val; }
CV_IMPL_PROPERTY(int, TemporalAreaRadius, temporalAreaRadius_) inline double getAlpha() const CV_OVERRIDE { return alpha_; }
CV_IMPL_PROPERTY_S(Ptr<cv::superres::DenseOpticalFlowExt>, OpticalFlow, opticalFlow_) inline void setAlpha(double val) CV_OVERRIDE { alpha_ = val; }
inline int getKernelSize() const CV_OVERRIDE { return btvKernelSize_; }
inline void setKernelSize(int val) CV_OVERRIDE { btvKernelSize_ = val; }
inline int getBlurKernelSize() const CV_OVERRIDE { return blurKernelSize_; }
inline void setBlurKernelSize(int val) CV_OVERRIDE { blurKernelSize_ = val; }
inline double getBlurSigma() const CV_OVERRIDE { return blurSigma_; }
inline void setBlurSigma(double val) CV_OVERRIDE { blurSigma_ = val; }
inline int getTemporalAreaRadius() const CV_OVERRIDE { return temporalAreaRadius_; }
inline void setTemporalAreaRadius(int val) CV_OVERRIDE { temporalAreaRadius_ = val; }
inline Ptr<cv::superres::DenseOpticalFlowExt> getOpticalFlow() const CV_OVERRIDE { return opticalFlow_; }
inline void setOpticalFlow(const Ptr<cv::superres::DenseOpticalFlowExt>& val) CV_OVERRIDE { opticalFlow_ = val; }
protected: protected:
int scale_; int scale_;
......
...@@ -58,8 +58,8 @@ namespace ...@@ -58,8 +58,8 @@ namespace
class EmptyFrameSource : public FrameSource class EmptyFrameSource : public FrameSource
{ {
public: public:
void nextFrame(OutputArray frame); void nextFrame(OutputArray frame) CV_OVERRIDE;
void reset(); void reset() CV_OVERRIDE;
}; };
void EmptyFrameSource::nextFrame(OutputArray frame) void EmptyFrameSource::nextFrame(OutputArray frame)
...@@ -103,7 +103,7 @@ namespace ...@@ -103,7 +103,7 @@ namespace
class CaptureFrameSource : public FrameSource class CaptureFrameSource : public FrameSource
{ {
public: public:
void nextFrame(OutputArray frame); void nextFrame(OutputArray frame) CV_OVERRIDE;
protected: protected:
VideoCapture vc_; VideoCapture vc_;
...@@ -135,7 +135,7 @@ namespace ...@@ -135,7 +135,7 @@ namespace
public: public:
VideoFrameSource(const String& fileName); VideoFrameSource(const String& fileName);
void reset(); void reset() CV_OVERRIDE;
private: private:
String fileName_; String fileName_;
...@@ -158,7 +158,7 @@ namespace ...@@ -158,7 +158,7 @@ namespace
public: public:
CameraFrameSource(int deviceId); CameraFrameSource(int deviceId);
void reset(); void reset() CV_OVERRIDE;
private: private:
int deviceId_; int deviceId_;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment