Table of Contents

Class DenseRLOFOpticalFlow

Namespace
OpenCvSharp.OptFlow
Assembly
OpenCvSharp.dll

Fast dense optical flow computation based on robust local optical flow (RLOF) algorithms and sparse-to-dense interpolation scheme.

public class DenseRLOFOpticalFlow : DenseOpticalFlow, IDisposable
Inheritance
DenseRLOFOpticalFlow
Implements
Inherited Members

Properties

EpicK

See ximgproc::EdgeAwareInterpolator's K value: number of nearest-neighbor matches considered when fitting a locally affine model.

public int EpicK { get; set; }

Property Value

int

EpicLambda

See ximgproc::EdgeAwareInterpolator's lambda value.

public float EpicLambda { get; set; }

Property Value

float

EpicSigma

See ximgproc::EdgeAwareInterpolator's sigma value.

public float EpicSigma { get; set; }

Property Value

float

FgsLambda

See ximgproc::fastGlobalSmootherFilter's lambda parameter.

public float FgsLambda { get; set; }

Property Value

float

FgsSigma

See ximgproc::fastGlobalSmootherFilter's sigma parameter.

public float FgsSigma { get; set; }

Property Value

float

ForwardBackward

Threshold for the forward backward confidence check.

public float ForwardBackward { get; set; }

Property Value

float

GridStep

Size of the grid to spawn the motion vectors.

public Size GridStep { get; set; }

Property Value

Size

Interpolation

Interpolation used to compute the dense optical flow.

public InterpolationType Interpolation { get; set; }

Property Value

InterpolationType

RLOFOpticalFlowParameter

Configuration of the RLOF algorithm.

public RLOFOpticalFlowParameter RLOFOpticalFlowParameter { get; set; }

Property Value

RLOFOpticalFlowParameter

RicSlicType

Superpixel algorithm variant used for oversegmentation (see ximgproc::SLICType: SLIC=100, SLICO=101, MSLIC=102).

public int RicSlicType { get; set; }

Property Value

int

RicSpSize

Approximate size of the superpixel used for oversegmentation, see ximgproc::RICInterpolator.

public int RicSpSize { get; set; }

Property Value

int

UsePostProc

Enables ximgproc::fastGlobalSmootherFilter post-processing.

public bool UsePostProc { get; set; }

Property Value

bool

UseVariationalRefinement

Enables VariationalRefinement.

public bool UseVariationalRefinement { get; set; }

Property Value

bool

Methods

Create(RLOFOpticalFlowParameter?, float, Size?, InterpolationType, int, float, float, int, int, bool, float, float, bool)

Creates an instance of optflow::DenseRLOFOpticalFlow.

public static DenseRLOFOpticalFlow Create(RLOFOpticalFlowParameter? rlofParam = null, float forwardBackwardThreshold = 1, Size? gridStep = null, InterpolationType interpType = InterpolationType.EPIC, int epicK = 128, float epicSigma = 0.05, float epicLambda = 999, int ricSpSize = 15, int ricSlicType = 100, bool usePostProc = true, float fgsLambda = 500, float fgsSigma = 1.5, bool useVariationalRefinement = false)

Parameters

rlofParam RLOFOpticalFlowParameter

See RLOFOpticalFlowParameter. Uses the algorithm's defaults when null.

forwardBackwardThreshold float

See ForwardBackward.

gridStep Size?

See GridStep.

interpType InterpolationType

See Interpolation.

epicK int

See EpicK.

epicSigma float

See EpicSigma.

epicLambda float

See EpicLambda.

ricSpSize int

See RicSpSize.

ricSlicType int

See RicSlicType.

usePostProc bool

See UsePostProc.

fgsLambda float

See FgsLambda.

fgsSigma float

See FgsSigma.

useVariationalRefinement bool

See UseVariationalRefinement.

Returns

DenseRLOFOpticalFlow