Commit c72fbd7a authored by abratchik's avatar abratchik

fix for #7501

parent 505c19bc
...@@ -465,67 +465,67 @@ class CV_EXPORTS_W DualTVL1OpticalFlow : public DenseOpticalFlow ...@@ -465,67 +465,67 @@ class CV_EXPORTS_W DualTVL1OpticalFlow : public DenseOpticalFlow
public: public:
//! @brief Time step of the numerical scheme //! @brief Time step of the numerical scheme
/** @see setTau */ /** @see setTau */
virtual double getTau() const = 0; CV_WRAP virtual double getTau() const = 0;
/** @copybrief getTau @see getTau */ /** @copybrief getTau @see getTau */
virtual void setTau(double val) = 0; CV_WRAP virtual void setTau(double val) = 0;
//! @brief Weight parameter for the data term, attachment parameter //! @brief Weight parameter for the data term, attachment parameter
/** @see setLambda */ /** @see setLambda */
virtual double getLambda() const = 0; CV_WRAP virtual double getLambda() const = 0;
/** @copybrief getLambda @see getLambda */ /** @copybrief getLambda @see getLambda */
virtual void setLambda(double val) = 0; CV_WRAP virtual void setLambda(double val) = 0;
//! @brief Weight parameter for (u - v)^2, tightness parameter //! @brief Weight parameter for (u - v)^2, tightness parameter
/** @see setTheta */ /** @see setTheta */
virtual double getTheta() const = 0; CV_WRAP virtual double getTheta() const = 0;
/** @copybrief getTheta @see getTheta */ /** @copybrief getTheta @see getTheta */
virtual void setTheta(double val) = 0; CV_WRAP virtual void setTheta(double val) = 0;
//! @brief coefficient for additional illumination variation term //! @brief coefficient for additional illumination variation term
/** @see setGamma */ /** @see setGamma */
virtual double getGamma() const = 0; CV_WRAP virtual double getGamma() const = 0;
/** @copybrief getGamma @see getGamma */ /** @copybrief getGamma @see getGamma */
virtual void setGamma(double val) = 0; CV_WRAP virtual void setGamma(double val) = 0;
//! @brief Number of scales used to create the pyramid of images //! @brief Number of scales used to create the pyramid of images
/** @see setScalesNumber */ /** @see setScalesNumber */
virtual int getScalesNumber() const = 0; CV_WRAP virtual int getScalesNumber() const = 0;
/** @copybrief getScalesNumber @see getScalesNumber */ /** @copybrief getScalesNumber @see getScalesNumber */
virtual void setScalesNumber(int val) = 0; CV_WRAP virtual void setScalesNumber(int val) = 0;
//! @brief Number of warpings per scale //! @brief Number of warpings per scale
/** @see setWarpingsNumber */ /** @see setWarpingsNumber */
virtual int getWarpingsNumber() const = 0; CV_WRAP virtual int getWarpingsNumber() const = 0;
/** @copybrief getWarpingsNumber @see getWarpingsNumber */ /** @copybrief getWarpingsNumber @see getWarpingsNumber */
virtual void setWarpingsNumber(int val) = 0; CV_WRAP virtual void setWarpingsNumber(int val) = 0;
//! @brief Stopping criterion threshold used in the numerical scheme, which is a trade-off between precision and running time //! @brief Stopping criterion threshold used in the numerical scheme, which is a trade-off between precision and running time
/** @see setEpsilon */ /** @see setEpsilon */
virtual double getEpsilon() const = 0; CV_WRAP virtual double getEpsilon() const = 0;
/** @copybrief getEpsilon @see getEpsilon */ /** @copybrief getEpsilon @see getEpsilon */
virtual void setEpsilon(double val) = 0; CV_WRAP virtual void setEpsilon(double val) = 0;
//! @brief Inner iterations (between outlier filtering) used in the numerical scheme //! @brief Inner iterations (between outlier filtering) used in the numerical scheme
/** @see setInnerIterations */ /** @see setInnerIterations */
virtual int getInnerIterations() const = 0; CV_WRAP virtual int getInnerIterations() const = 0;
/** @copybrief getInnerIterations @see getInnerIterations */ /** @copybrief getInnerIterations @see getInnerIterations */
virtual void setInnerIterations(int val) = 0; CV_WRAP virtual void setInnerIterations(int val) = 0;
//! @brief Outer iterations (number of inner loops) used in the numerical scheme //! @brief Outer iterations (number of inner loops) used in the numerical scheme
/** @see setOuterIterations */ /** @see setOuterIterations */
virtual int getOuterIterations() const = 0; CV_WRAP virtual int getOuterIterations() const = 0;
/** @copybrief getOuterIterations @see getOuterIterations */ /** @copybrief getOuterIterations @see getOuterIterations */
virtual void setOuterIterations(int val) = 0; CV_WRAP virtual void setOuterIterations(int val) = 0;
//! @brief Use initial flow //! @brief Use initial flow
/** @see setUseInitialFlow */ /** @see setUseInitialFlow */
virtual bool getUseInitialFlow() const = 0; CV_WRAP virtual bool getUseInitialFlow() const = 0;
/** @copybrief getUseInitialFlow @see getUseInitialFlow */ /** @copybrief getUseInitialFlow @see getUseInitialFlow */
virtual void setUseInitialFlow(bool val) = 0; CV_WRAP virtual void setUseInitialFlow(bool val) = 0;
//! @brief Step between scales (<1) //! @brief Step between scales (<1)
/** @see setScaleStep */ /** @see setScaleStep */
virtual double getScaleStep() const = 0; CV_WRAP virtual double getScaleStep() const = 0;
/** @copybrief getScaleStep @see getScaleStep */ /** @copybrief getScaleStep @see getScaleStep */
virtual void setScaleStep(double val) = 0; CV_WRAP virtual void setScaleStep(double val) = 0;
//! @brief Median filter kernel size (1 = no filter) (3 or 5) //! @brief Median filter kernel size (1 = no filter) (3 or 5)
/** @see setMedianFiltering */ /** @see setMedianFiltering */
virtual int getMedianFiltering() const = 0; CV_WRAP virtual int getMedianFiltering() const = 0;
/** @copybrief getMedianFiltering @see getMedianFiltering */ /** @copybrief getMedianFiltering @see getMedianFiltering */
virtual void setMedianFiltering(int val) = 0; CV_WRAP virtual void setMedianFiltering(int val) = 0;
/** @brief Creates instance of cv::DualTVL1OpticalFlow*/ /** @brief Creates instance of cv::DualTVL1OpticalFlow*/
static Ptr<DualTVL1OpticalFlow> create( CV_WRAP static Ptr<DualTVL1OpticalFlow> create(
double tau = 0.25, double tau = 0.25,
double lambda = 0.15, double lambda = 0.15,
double theta = 0.3, double theta = 0.3,
...@@ -549,31 +549,31 @@ CV_EXPORTS_W Ptr<DualTVL1OpticalFlow> createOptFlow_DualTVL1(); ...@@ -549,31 +549,31 @@ CV_EXPORTS_W Ptr<DualTVL1OpticalFlow> createOptFlow_DualTVL1();
class CV_EXPORTS_W FarnebackOpticalFlow : public DenseOpticalFlow class CV_EXPORTS_W FarnebackOpticalFlow : public DenseOpticalFlow
{ {
public: public:
virtual int getNumLevels() const = 0; CV_WRAP virtual int getNumLevels() const = 0;
virtual void setNumLevels(int numLevels) = 0; CV_WRAP virtual void setNumLevels(int numLevels) = 0;
virtual double getPyrScale() const = 0; CV_WRAP virtual double getPyrScale() const = 0;
virtual void setPyrScale(double pyrScale) = 0; CV_WRAP virtual void setPyrScale(double pyrScale) = 0;
virtual bool getFastPyramids() const = 0; CV_WRAP virtual bool getFastPyramids() const = 0;
virtual void setFastPyramids(bool fastPyramids) = 0; CV_WRAP virtual void setFastPyramids(bool fastPyramids) = 0;
virtual int getWinSize() const = 0; CV_WRAP virtual int getWinSize() const = 0;
virtual void setWinSize(int winSize) = 0; CV_WRAP virtual void setWinSize(int winSize) = 0;
virtual int getNumIters() const = 0; CV_WRAP virtual int getNumIters() const = 0;
virtual void setNumIters(int numIters) = 0; CV_WRAP virtual void setNumIters(int numIters) = 0;
virtual int getPolyN() const = 0; CV_WRAP virtual int getPolyN() const = 0;
virtual void setPolyN(int polyN) = 0; CV_WRAP virtual void setPolyN(int polyN) = 0;
virtual double getPolySigma() const = 0; CV_WRAP virtual double getPolySigma() const = 0;
virtual void setPolySigma(double polySigma) = 0; CV_WRAP virtual void setPolySigma(double polySigma) = 0;
virtual int getFlags() const = 0; CV_WRAP virtual int getFlags() const = 0;
virtual void setFlags(int flags) = 0; CV_WRAP virtual void setFlags(int flags) = 0;
static Ptr<FarnebackOpticalFlow> create( CV_WRAP static Ptr<FarnebackOpticalFlow> create(
int numLevels = 5, int numLevels = 5,
double pyrScale = 0.5, double pyrScale = 0.5,
bool fastPyramids = false, bool fastPyramids = false,
...@@ -593,25 +593,25 @@ iterative Lucas-Kanade method with pyramids. ...@@ -593,25 +593,25 @@ iterative Lucas-Kanade method with pyramids.
@sa calcOpticalFlowPyrLK @sa calcOpticalFlowPyrLK
*/ */
class CV_EXPORTS SparsePyrLKOpticalFlow : public SparseOpticalFlow class CV_EXPORTS_W SparsePyrLKOpticalFlow : public SparseOpticalFlow
{ {
public: public:
virtual Size getWinSize() const = 0; CV_WRAP virtual Size getWinSize() const = 0;
virtual void setWinSize(Size winSize) = 0; CV_WRAP virtual void setWinSize(Size winSize) = 0;
virtual int getMaxLevel() const = 0; CV_WRAP virtual int getMaxLevel() const = 0;
virtual void setMaxLevel(int maxLevel) = 0; CV_WRAP virtual void setMaxLevel(int maxLevel) = 0;
virtual TermCriteria getTermCriteria() const = 0; CV_WRAP virtual TermCriteria getTermCriteria() const = 0;
virtual void setTermCriteria(TermCriteria& crit) = 0; CV_WRAP virtual void setTermCriteria(TermCriteria& crit) = 0;
virtual int getFlags() const = 0; CV_WRAP virtual int getFlags() const = 0;
virtual void setFlags(int flags) = 0; CV_WRAP virtual void setFlags(int flags) = 0;
virtual double getMinEigThreshold() const = 0; CV_WRAP virtual double getMinEigThreshold() const = 0;
virtual void setMinEigThreshold(double minEigThreshold) = 0; CV_WRAP virtual void setMinEigThreshold(double minEigThreshold) = 0;
static Ptr<SparsePyrLKOpticalFlow> create( CV_WRAP static Ptr<SparsePyrLKOpticalFlow> create(
Size winSize = Size(21, 21), Size winSize = Size(21, 21),
int maxLevel = 3, TermCriteria crit = int maxLevel = 3, TermCriteria crit =
TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, 0.01), TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, 0.01),
......
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