OpenCV  4.1.0
Open Source Computer Vision
Public Member Functions | Static Public Member Functions | List of all members
cv::cuda::BroxOpticalFlow Class Referenceabstract

Class computing the optical flow for two images using Brox et al Optical Flow algorithm (. More...

#include <opencv2/cudaoptflow.hpp>

Inheritance diagram for cv::cuda::BroxOpticalFlow:
cv::cuda::DenseOpticalFlow cv::Algorithm

Public Member Functions

virtual double getFlowSmoothness () const =0
 
virtual double getGradientConstancyImportance () const =0
 
virtual int getInnerIterations () const =0
 number of lagged non-linearity iterations (inner loop)
 
virtual int getOuterIterations () const =0
 number of warping iterations (number of pyramid levels)
 
virtual double getPyramidScaleFactor () const =0
 
virtual int getSolverIterations () const =0
 number of linear system solver iterations
 
virtual void setFlowSmoothness (double alpha)=0
 
virtual void setGradientConstancyImportance (double gamma)=0
 
virtual void setInnerIterations (int inner_iterations)=0
 
virtual void setOuterIterations (int outer_iterations)=0
 
virtual void setPyramidScaleFactor (double scale_factor)=0
 
virtual void setSolverIterations (int solver_iterations)=0
 
- Public Member Functions inherited from cv::cuda::DenseOpticalFlow
virtual void calc (InputArray I0, InputArray I1, InputOutputArray flow, Stream &stream=Stream::Null())=0
 Calculates a dense optical flow.
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage.
 
virtual void save (const String &filename) const
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage.
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindingsThis is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 

Static Public Member Functions

static Ptr< BroxOpticalFlowcreate (double alpha=0.197, double gamma=50.0, double scale_factor=0.8, int inner_iterations=5, int outer_iterations=150, int solver_iterations=10)
 

Additional Inherited Members

- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

Detailed Description

Class computing the optical flow for two images using Brox et al Optical Flow algorithm (.

Brox2004).

Member Function Documentation

static Ptr<BroxOpticalFlow> cv::cuda::BroxOpticalFlow::create ( double  alpha = 0.197,
double  gamma = 50.0,
double  scale_factor = 0.8,
int  inner_iterations = 5,
int  outer_iterations = 150,
int  solver_iterations = 10 
)
static
virtual double cv::cuda::BroxOpticalFlow::getFlowSmoothness ( ) const
pure virtual
virtual double cv::cuda::BroxOpticalFlow::getGradientConstancyImportance ( ) const
pure virtual
virtual int cv::cuda::BroxOpticalFlow::getInnerIterations ( ) const
pure virtual

number of lagged non-linearity iterations (inner loop)

virtual int cv::cuda::BroxOpticalFlow::getOuterIterations ( ) const
pure virtual

number of warping iterations (number of pyramid levels)

virtual double cv::cuda::BroxOpticalFlow::getPyramidScaleFactor ( ) const
pure virtual
virtual int cv::cuda::BroxOpticalFlow::getSolverIterations ( ) const
pure virtual

number of linear system solver iterations

virtual void cv::cuda::BroxOpticalFlow::setFlowSmoothness ( double  alpha)
pure virtual
virtual void cv::cuda::BroxOpticalFlow::setGradientConstancyImportance ( double  gamma)
pure virtual
virtual void cv::cuda::BroxOpticalFlow::setInnerIterations ( int  inner_iterations)
pure virtual
virtual void cv::cuda::BroxOpticalFlow::setOuterIterations ( int  outer_iterations)
pure virtual
virtual void cv::cuda::BroxOpticalFlow::setPyramidScaleFactor ( double  scale_factor)
pure virtual
virtual void cv::cuda::BroxOpticalFlow::setSolverIterations ( int  solver_iterations)
pure virtual

The documentation for this class was generated from the following file: