Class cv::optflow::OpticalFlowPCAFlow#

PCAFlow algorithm.

Collaboration diagram for cv::optflow::OpticalFlowPCAFlow:

Public Member Functions#

Public Member Functions inherited from cv::DenseOpticalFlow

Return

Name

Description

void

calc(
    InputArray I0,
    InputArray I1,
    InputOutputArray flow )

Calculates an optical flow.

void

collectGarbage()

Releases all inner buffers.

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#

PCAFlow algorithm.

Constructor & Destructor Documentation#

OpticalFlowPCAFlow()#

cv::optflow::OpticalFlowPCAFlow::OpticalFlowPCAFlow(
Ptr< const PCAPrior > _prior = Ptr< const PCAPrior >(),
const Size _basisSize = Size(18, 14),
float _sparseRate = 0.024,
float _retainedCornersFraction = 0.2,
float _occlusionsThreshold = 0.0003,
float _dampingFactor = 0.00002,
float _claheClip = 14 )

Creates an instance of PCAFlow algorithm.

Parameters

  • _prior — Learned prior or no prior (default).

  • _basisSize — Number of basis vectors.

  • _sparseRate — Controls density of sparse matches.

  • _retainedCornersFraction — Retained corners fraction.

  • _occlusionsThreshold — Occlusion threshold.

  • _dampingFactor — Regularization term for solving least-squares. It is not related to the prior regularization.

  • _claheClip — Clip parameter for CLAHE.

Member Function Documentation#

calc()#

void cv::optflow::OpticalFlowPCAFlow::calc(
InputArray I0,
InputArray I1,
InputOutputArray flow )

Calculates an optical flow.

Parameters

  • I0 — first 8-bit single-channel input image.

  • I1 — second input image of the same size and the same type as prev.

  • flow — computed flow image that has the same size as prev and type CV_32FC2.

collectGarbage()#

void cv::optflow::OpticalFlowPCAFlow::collectGarbage()

Releases all inner buffers.

findSparseFeatures()#

void cv::optflow::OpticalFlowPCAFlow::findSparseFeatures(
UMat & from,
UMat & to,
std::vector< Point2f > & features,
std::vector< Point2f > & predictedFeatures )

getSystem()#

void cv::optflow::OpticalFlowPCAFlow::getSystem(
OutputArray A1Out,
OutputArray A2Out,
OutputArray b1Out,
OutputArray b2Out,
const std::vector< Point2f > & features,
const std::vector< Point2f > & predictedFeatures,
const Size size )

getSystem()#

void cv::optflow::OpticalFlowPCAFlow::getSystem(
OutputArray AOut,
OutputArray b1Out,
OutputArray b2Out,
const std::vector< Point2f > & features,
const std::vector< Point2f > & predictedFeatures,
const Size size )

operator=()#

OpticalFlowPCAFlow & cv::optflow::OpticalFlowPCAFlow::operator=(const OpticalFlowPCAFlow &)

removeOcclusions()#

void cv::optflow::OpticalFlowPCAFlow::removeOcclusions(
UMat & from,
UMat & to,
std::vector< Point2f > & features,
std::vector< Point2f > & predictedFeatures )

Member Data Documentation#

basisSize#

const Size cv::optflow::OpticalFlowPCAFlow::basisSize

claheClip#

const float cv::optflow::OpticalFlowPCAFlow::claheClip

dampingFactor#

const float cv::optflow::OpticalFlowPCAFlow::dampingFactor

occlusionsThreshold#

const float cv::optflow::OpticalFlowPCAFlow::occlusionsThreshold

prior#

const Ptr< const PCAPrior > cv::optflow::OpticalFlowPCAFlow::prior

retainedCornersFraction#

const float cv::optflow::OpticalFlowPCAFlow::retainedCornersFraction

sparseRate#

const float cv::optflow::OpticalFlowPCAFlow::sparseRate

useOpenCL#

bool cv::optflow::OpticalFlowPCAFlow::useOpenCL

Source file#

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