class cv::SparsePyrLKOpticalFlow
Overview
Class used for calculating a sparse optical flow. Moreā¦
#include <tracking.hpp> class SparsePyrLKOpticalFlow: public cv::SparseOpticalFlow { public: // methods virtual int getFlags() const = 0; virtual int getMaxLevel() const = 0; virtual double getMinEigThreshold() const = 0; virtual TermCriteria getTermCriteria() const = 0; virtual Size getWinSize() const = 0; virtual void setFlags(int flags) = 0; virtual void setMaxLevel(int maxLevel) = 0; virtual void setMinEigThreshold(double minEigThreshold) = 0; virtual void setTermCriteria(TermCriteria& crit) = 0; virtual void setWinSize(Size winSize) = 0; static Ptr<SparsePyrLKOpticalFlow> create( Size winSize = Size(21, 21), int maxLevel = 3, TermCriteria crit = TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, 0.01), int flags = 0, double minEigThreshold = 1e-4 ); };
Inherited Members
public: // methods virtual void clear(); virtual bool empty() const; virtual String getDefaultName() const; virtual void read(const FileNode& fn); virtual void save(const String& filename) const; virtual void write(FileStorage& fs) const; template <typename _Tp> static Ptr<_Tp> load( const String& filename, const String& objname = String() ); template <typename _Tp> static Ptr<_Tp> loadFromString( const String& strModel, const String& objname = String() ); template <typename _Tp> static Ptr<_Tp> read(const FileNode& fn); virtual void calc( InputArray prevImg, InputArray nextImg, InputArray prevPts, InputOutputArray nextPts, OutputArray status, OutputArray err = cv::noArray() ) = 0; protected: // methods void writeFormat(FileStorage& fs) const;
Detailed Documentation
Class used for calculating a sparse optical flow.
The class can calculate an optical flow for a sparse feature set using the iterative Lucas-Kanade method with pyramids.
See also: