Remove deprecated methods from cv::Algorithm
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#define __OPENCV_SUPERRES_HPP__
|
||||
|
||||
#include "opencv2/core.hpp"
|
||||
#include "opencv2/superres/optical_flow.hpp"
|
||||
|
||||
/**
|
||||
@defgroup superres Super Resolution
|
||||
@@ -62,8 +63,6 @@ namespace cv
|
||||
//! @addtogroup superres
|
||||
//! @{
|
||||
|
||||
CV_EXPORTS bool initModule_superres();
|
||||
|
||||
class CV_EXPORTS FrameSource
|
||||
{
|
||||
public:
|
||||
@@ -105,6 +104,36 @@ namespace cv
|
||||
*/
|
||||
virtual void collectGarbage();
|
||||
|
||||
//! @name Scale factor
|
||||
CV_PURE_PROPERTY(int, Scale)
|
||||
|
||||
//! @name Iterations count
|
||||
CV_PURE_PROPERTY(int, Iterations)
|
||||
|
||||
//! @name Asymptotic value of steepest descent method
|
||||
CV_PURE_PROPERTY(double, Tau)
|
||||
|
||||
//! @name Weight parameter to balance data term and smoothness term
|
||||
CV_PURE_PROPERTY(double, Labmda)
|
||||
|
||||
//! @name Parameter of spacial distribution in Bilateral-TV
|
||||
CV_PURE_PROPERTY(double, Alpha)
|
||||
|
||||
//! @name Kernel size of Bilateral-TV filter
|
||||
CV_PURE_PROPERTY(int, KernelSize)
|
||||
|
||||
//! @name Gaussian blur kernel size
|
||||
CV_PURE_PROPERTY(int, BlurKernelSize)
|
||||
|
||||
//! @name Gaussian blur sigma
|
||||
CV_PURE_PROPERTY(double, BlurSigma)
|
||||
|
||||
//! @name Radius of the temporal search area
|
||||
CV_PURE_PROPERTY(int, TemporalAreaRadius)
|
||||
|
||||
//! @name Dense optical flow algorithm
|
||||
CV_PURE_PROPERTY_S(Ptr<cv::superres::DenseOpticalFlowExt>, OpticalFlow)
|
||||
|
||||
protected:
|
||||
SuperResolution();
|
||||
|
||||
@@ -139,7 +168,6 @@ namespace cv
|
||||
*/
|
||||
CV_EXPORTS Ptr<SuperResolution> createSuperResolution_BTVL1();
|
||||
CV_EXPORTS Ptr<SuperResolution> createSuperResolution_BTVL1_CUDA();
|
||||
CV_EXPORTS Ptr<SuperResolution> createSuperResolution_BTVL1_OCL();
|
||||
|
||||
//! @} superres
|
||||
|
||||
|
@@ -60,20 +60,68 @@ namespace cv
|
||||
virtual void collectGarbage() = 0;
|
||||
};
|
||||
|
||||
CV_EXPORTS Ptr<DenseOpticalFlowExt> createOptFlow_Farneback();
|
||||
CV_EXPORTS Ptr<DenseOpticalFlowExt> createOptFlow_Farneback_CUDA();
|
||||
CV_EXPORTS Ptr<DenseOpticalFlowExt> createOptFlow_Farneback_OCL();
|
||||
|
||||
CV_EXPORTS Ptr<DenseOpticalFlowExt> createOptFlow_Simple();
|
||||
class CV_EXPORTS FarnebackOpticalFlow : public virtual DenseOpticalFlowExt
|
||||
{
|
||||
public:
|
||||
CV_PURE_PROPERTY(double, PyrScale)
|
||||
CV_PURE_PROPERTY(int, LevelsNumber)
|
||||
CV_PURE_PROPERTY(int, WindowSize)
|
||||
CV_PURE_PROPERTY(int, Iterations)
|
||||
CV_PURE_PROPERTY(int, PolyN)
|
||||
CV_PURE_PROPERTY(double, PolySigma)
|
||||
CV_PURE_PROPERTY(int, Flags)
|
||||
};
|
||||
CV_EXPORTS Ptr<FarnebackOpticalFlow> createOptFlow_Farneback();
|
||||
CV_EXPORTS Ptr<FarnebackOpticalFlow> createOptFlow_Farneback_CUDA();
|
||||
|
||||
CV_EXPORTS Ptr<DenseOpticalFlowExt> createOptFlow_DualTVL1();
|
||||
CV_EXPORTS Ptr<DenseOpticalFlowExt> createOptFlow_DualTVL1_CUDA();
|
||||
CV_EXPORTS Ptr<DenseOpticalFlowExt> createOptFlow_DualTVL1_OCL();
|
||||
|
||||
CV_EXPORTS Ptr<DenseOpticalFlowExt> createOptFlow_Brox_CUDA();
|
||||
// CV_EXPORTS Ptr<DenseOpticalFlowExt> createOptFlow_Simple();
|
||||
|
||||
CV_EXPORTS Ptr<DenseOpticalFlowExt> createOptFlow_PyrLK_CUDA();
|
||||
CV_EXPORTS Ptr<DenseOpticalFlowExt> createOptFlow_PyrLK_OCL();
|
||||
|
||||
class CV_EXPORTS DualTVL1OpticalFlow : public virtual DenseOpticalFlowExt
|
||||
{
|
||||
public:
|
||||
CV_PURE_PROPERTY(double, Tau)
|
||||
CV_PURE_PROPERTY(double, Lambda)
|
||||
CV_PURE_PROPERTY(double, Theta)
|
||||
CV_PURE_PROPERTY(int, ScalesNumber)
|
||||
CV_PURE_PROPERTY(int, WarpingsNumber)
|
||||
CV_PURE_PROPERTY(double, Epsilon)
|
||||
CV_PURE_PROPERTY(int, Iterations)
|
||||
CV_PURE_PROPERTY(bool, UseInitialFlow)
|
||||
};
|
||||
CV_EXPORTS Ptr<DualTVL1OpticalFlow> createOptFlow_DualTVL1();
|
||||
CV_EXPORTS Ptr<DualTVL1OpticalFlow> createOptFlow_DualTVL1_CUDA();
|
||||
|
||||
|
||||
class CV_EXPORTS BroxOpticalFlow : public virtual DenseOpticalFlowExt
|
||||
{
|
||||
public:
|
||||
//! @name Flow smoothness
|
||||
CV_PURE_PROPERTY(double, Alpha)
|
||||
//! @name Gradient constancy importance
|
||||
CV_PURE_PROPERTY(double, Gamma)
|
||||
//! @name Pyramid scale factor
|
||||
CV_PURE_PROPERTY(double, ScaleFactor)
|
||||
//! @name Number of lagged non-linearity iterations (inner loop)
|
||||
CV_PURE_PROPERTY(int, InnerIterations)
|
||||
//! @name Number of warping iterations (number of pyramid levels)
|
||||
CV_PURE_PROPERTY(int, OuterIterations)
|
||||
//! @name Number of linear system solver iterations
|
||||
CV_PURE_PROPERTY(int, SolverIterations)
|
||||
};
|
||||
CV_EXPORTS Ptr<BroxOpticalFlow> createOptFlow_Brox_CUDA();
|
||||
|
||||
|
||||
class PyrLKOpticalFlow : public virtual DenseOpticalFlowExt
|
||||
{
|
||||
public:
|
||||
CV_PURE_PROPERTY(int, WindowSize)
|
||||
CV_PURE_PROPERTY(int, MaxLevel)
|
||||
CV_PURE_PROPERTY(int, Iterations)
|
||||
};
|
||||
CV_EXPORTS Ptr<PyrLKOpticalFlow> createOptFlow_PyrLK_CUDA();
|
||||
|
||||
//! @}
|
||||
|
||||
|
Reference in New Issue
Block a user