OpenCV 5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::FarnebackOpticalFlow Class Referenceabstract

Class computing a dense optical flow using the Gunnar Farneback's algorithm. More...

#include <opencv2/video/tracking.hpp>

Collaboration diagram for cv::FarnebackOpticalFlow:

Public Member Functions

virtual bool getFastPyramids () const =0
 
virtual int getFlags () const =0
 
virtual int getNumIters () const =0
 
virtual int getNumLevels () const =0
 
virtual int getPolyN () const =0
 
virtual double getPolySigma () const =0
 
virtual double getPyrScale () const =0
 
virtual int getWinSize () const =0
 
virtual void setFastPyramids (bool fastPyramids)=0
 
virtual void setFlags (int flags)=0
 
virtual void setNumIters (int numIters)=0
 
virtual void setNumLevels (int numLevels)=0
 
virtual void setPolyN (int polyN)=0
 
virtual void setPolySigma (double polySigma)=0
 
virtual void setPyrScale (double pyrScale)=0
 
virtual void setWinSize (int winSize)=0
 
- Public Member Functions inherited from cv::DenseOpticalFlow
virtual void calc (InputArray I0, InputArray I1, InputOutputArray flow)=0
 Calculates an optical flow.
 
virtual void collectGarbage ()=0
 Releases all inner buffers.
 
- 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 (FileStorage &fs, const String &name) const
 

Static Public Member Functions

static Ptr< FarnebackOpticalFlowcreate (int numLevels=5, double pyrScale=0.5, bool fastPyramids=false, int winSize=13, int numIters=10, int polyN=5, double polySigma=1.1, int flags=0)
 
- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 Loads algorithm from the file.
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String.
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 Reads algorithm from the file node.
 

Additional Inherited Members

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

Detailed Description

Class computing a dense optical flow using the Gunnar Farneback's algorithm.

Member Function Documentation

◆ create()

static Ptr< FarnebackOpticalFlow > cv::FarnebackOpticalFlow::create ( int numLevels = 5,
double pyrScale = 0.5,
bool fastPyramids = false,
int winSize = 13,
int numIters = 10,
int polyN = 5,
double polySigma = 1.1,
int flags = 0 )
static
Python:
cv.FarnebackOpticalFlow.create([, numLevels[, pyrScale[, fastPyramids[, winSize[, numIters[, polyN[, polySigma[, flags]]]]]]]]) -> retval
cv.FarnebackOpticalFlow_create([, numLevels[, pyrScale[, fastPyramids[, winSize[, numIters[, polyN[, polySigma[, flags]]]]]]]]) -> retval

◆ getFastPyramids()

virtual bool cv::FarnebackOpticalFlow::getFastPyramids ( ) const
pure virtual
Python:
cv.FarnebackOpticalFlow.getFastPyramids() -> retval

◆ getFlags()

virtual int cv::FarnebackOpticalFlow::getFlags ( ) const
pure virtual
Python:
cv.FarnebackOpticalFlow.getFlags() -> retval

◆ getNumIters()

virtual int cv::FarnebackOpticalFlow::getNumIters ( ) const
pure virtual
Python:
cv.FarnebackOpticalFlow.getNumIters() -> retval

◆ getNumLevels()

virtual int cv::FarnebackOpticalFlow::getNumLevels ( ) const
pure virtual
Python:
cv.FarnebackOpticalFlow.getNumLevels() -> retval

◆ getPolyN()

virtual int cv::FarnebackOpticalFlow::getPolyN ( ) const
pure virtual
Python:
cv.FarnebackOpticalFlow.getPolyN() -> retval

◆ getPolySigma()

virtual double cv::FarnebackOpticalFlow::getPolySigma ( ) const
pure virtual
Python:
cv.FarnebackOpticalFlow.getPolySigma() -> retval

◆ getPyrScale()

virtual double cv::FarnebackOpticalFlow::getPyrScale ( ) const
pure virtual
Python:
cv.FarnebackOpticalFlow.getPyrScale() -> retval

◆ getWinSize()

virtual int cv::FarnebackOpticalFlow::getWinSize ( ) const
pure virtual
Python:
cv.FarnebackOpticalFlow.getWinSize() -> retval

◆ setFastPyramids()

virtual void cv::FarnebackOpticalFlow::setFastPyramids ( bool fastPyramids)
pure virtual
Python:
cv.FarnebackOpticalFlow.setFastPyramids(fastPyramids) -> None

◆ setFlags()

virtual void cv::FarnebackOpticalFlow::setFlags ( int flags)
pure virtual
Python:
cv.FarnebackOpticalFlow.setFlags(flags) -> None

◆ setNumIters()

virtual void cv::FarnebackOpticalFlow::setNumIters ( int numIters)
pure virtual
Python:
cv.FarnebackOpticalFlow.setNumIters(numIters) -> None

◆ setNumLevels()

virtual void cv::FarnebackOpticalFlow::setNumLevels ( int numLevels)
pure virtual
Python:
cv.FarnebackOpticalFlow.setNumLevels(numLevels) -> None

◆ setPolyN()

virtual void cv::FarnebackOpticalFlow::setPolyN ( int polyN)
pure virtual
Python:
cv.FarnebackOpticalFlow.setPolyN(polyN) -> None

◆ setPolySigma()

virtual void cv::FarnebackOpticalFlow::setPolySigma ( double polySigma)
pure virtual
Python:
cv.FarnebackOpticalFlow.setPolySigma(polySigma) -> None

◆ setPyrScale()

virtual void cv::FarnebackOpticalFlow::setPyrScale ( double pyrScale)
pure virtual
Python:
cv.FarnebackOpticalFlow.setPyrScale(pyrScale) -> None

◆ setWinSize()

virtual void cv::FarnebackOpticalFlow::setWinSize ( int winSize)
pure virtual
Python:
cv.FarnebackOpticalFlow.setWinSize(winSize) -> None

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