Table of Contents

Class PCAPrior

Namespace
OpenCvSharp.OptFlow
Assembly
OpenCvSharp.dll

This class can be used for imposing a learned prior on the resulting optical flow. Solution will be regularized according to this prior. You need to generate an appropriate prior file with the "learn_prior.py" script beforehand.

public class PCAPrior : CvPtrObject, IDisposable
Inheritance
PCAPrior
Implements
Inherited Members

Constructors

PCAPrior(string)

Loads a learned prior from the given file.

public PCAPrior(string pathToPrior)

Parameters

pathToPrior string

Path to a prior file generated by the "learn_prior.py" script.

Properties

BasisSize

Number of basis vectors (derived from the loaded prior).

public int BasisSize { get; }

Property Value

int

Padding

Padding size (derived from the loaded prior).

public int Padding { get; }

Property Value

int