Class cv::SparsePyrLKOpticalFlow#

Class used for calculating a sparse optical flow. View details

Collaboration diagram for cv::SparsePyrLKOpticalFlow:

Public Member Functions#

Public Member Functions inherited from cv::SparseOpticalFlow
Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

Detailed Description#

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.

Member Function Documentation#

getFlags()#

int cv::SparsePyrLKOpticalFlow::getFlags()

Python:

cv.SparsePyrLKOpticalFlow.getFlags() -> retval

getMaxLevel()#

int cv::SparsePyrLKOpticalFlow::getMaxLevel()

Python:

cv.SparsePyrLKOpticalFlow.getMaxLevel() -> retval

getMinEigThreshold()#

double cv::SparsePyrLKOpticalFlow::getMinEigThreshold()

Python:

cv.SparsePyrLKOpticalFlow.getMinEigThreshold() -> retval

getTermCriteria()#

TermCriteria cv::SparsePyrLKOpticalFlow::getTermCriteria()

Python:

cv.SparsePyrLKOpticalFlow.getTermCriteria() -> retval

getWinSize()#

Size cv::SparsePyrLKOpticalFlow::getWinSize()

Python:

cv.SparsePyrLKOpticalFlow.getWinSize() -> retval

setFlags()#

void cv::SparsePyrLKOpticalFlow::setFlags(int flags)

Python:

cv.SparsePyrLKOpticalFlow.setFlags(flags)

setMaxLevel()#

void cv::SparsePyrLKOpticalFlow::setMaxLevel(int maxLevel)

Python:

cv.SparsePyrLKOpticalFlow.setMaxLevel(maxLevel)

setMinEigThreshold()#

void cv::SparsePyrLKOpticalFlow::setMinEigThreshold(double minEigThreshold)

Python:

cv.SparsePyrLKOpticalFlow.setMinEigThreshold(minEigThreshold)

setTermCriteria()#

void cv::SparsePyrLKOpticalFlow::setTermCriteria(TermCriteria & crit)

Python:

cv.SparsePyrLKOpticalFlow.setTermCriteria(crit)

setWinSize()#

void cv::SparsePyrLKOpticalFlow::setWinSize(Size winSize)

Python:

cv.SparsePyrLKOpticalFlow.setWinSize(winSize)

create()#

static Ptr< SparsePyrLKOpticalFlow > cv::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 )

Python:

cv.SparsePyrLKOpticalFlow.create([, winSize[, maxLevel[, crit[, flags[, minEigThreshold]]]]]) -> retval
cv.SparsePyrLKOpticalFlow_create([, winSize[, maxLevel[, crit[, flags[, minEigThreshold]]]]]) -> retval

Source file#

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