Table of Contents

Class RLOFOpticalFlowParameter

Namespace
OpenCvSharp.OptFlow
Assembly
OpenCvSharp.dll

Stores and sets up the parameters of the robust local optical flow (RLOF) algorithm.

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

Constructors

RLOFOpticalFlowParameter()

Creates a new set of RLOF parameters, initialized to the algorithm's defaults.

public RLOFOpticalFlowParameter()

Properties

CrossSegmentationThreshold

Color similarity threshold used by cross-based segmentation. Only used if SupportRegionType is Cross.

public int CrossSegmentationThreshold { get; set; }

Property Value

int

GlobalMotionRansacThreshold

Reprojection threshold (n-th percentile of the motion vectors magnitude, [0 .. 100]) used by the RANSAC homography estimation for the global motion prior.

public float GlobalMotionRansacThreshold { get; set; }

Property Value

float

LargeWinSize

Maximal window size of the support region. If SupportRegionType is Fixed this gives the exact support region size.

public int LargeWinSize { get; set; }

Property Value

int

MaxIteration

Number of maximal iterations used for the iterative refinement.

public int MaxIteration { get; set; }

Property Value

int

MaxLevel

Maximal number of pyramid levels used.

public int MaxLevel { get; set; }

Property Value

int

MinEigenValue

Threshold for the minimal eigenvalue of the gradient matrix, defining when to abort the iterative refinement.

public float MinEigenValue { get; set; }

Property Value

float

NormSigma0

Sigma parameter of the shrunk Hampel norm. If set to float.MaxValue the least-square estimator is used instead of the M-estimator.

public float NormSigma0 { get; set; }

Property Value

float

NormSigma1

Sigma parameter of the shrunk Hampel norm. If set to float.MaxValue the least-square estimator is used instead of the M-estimator.

public float NormSigma1 { get; set; }

Property Value

float

SmallWinSize

Minimal window size of the support region. Only used if SupportRegionType is Cross.

public int SmallWinSize { get; set; }

Property Value

int

SolverType

Iterative refinement strategy.

public SolverType SolverType { get; set; }

Property Value

SolverType

SupportRegionType

Support region shape extraction / shrinking strategy.

public SupportRegionType SupportRegionType { get; set; }

Property Value

SupportRegionType

UseGlobalMotionPrior

Use global motion prior initialization for the iterative refinement.

public bool UseGlobalMotionPrior { get; set; }

Property Value

bool

UseIlluminationModel

Use the Gennert and Negahdaripour illumination model instead of the intensity brightness constraint.

public bool UseIlluminationModel { get; set; }

Property Value

bool

UseInitialFlow

Use the next point list as initial values.

public bool UseInitialFlow { get; set; }

Property Value

bool

Methods

SetUseMEstimator(bool)

Enables the M-estimator by setting the norm sigma parameters to (3.2, 7.0), or disables it (least-square estimator, faster but less robust against outliers in the support region).

public void SetUseMEstimator(bool val)

Parameters

val bool

If true, the M-estimator is used. If false, the least-square estimator is used.