Table of Contents

Method CalcOpticalFlowDenseRLOF

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

CalcOpticalFlowDenseRLOF(InputArray, InputArray, InputOutputArray, RLOFOpticalFlowParameter?, float, Size?, InterpolationType, int, float, float, int, int, bool, float, float, bool)

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

public static void CalcOpticalFlowDenseRLOF(InputArray i0, InputArray i1, InputOutputArray flow, RLOFOpticalFlowParameter? rlofParam = null, float forwardBackwardThreshold = 0, 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

i0 InputArray

First 8-bit input image. If cross-based RLOF is used (SupportRegionType = Cross) the image has to be an 8-bit 3-channel image.

i1 InputArray

Second 8-bit input image, same requirements as i0.

flow InputOutputArray

Computed flow image that has the same size as i0 and type CV_32FC2.

rlofParam RLOFOpticalFlowParameter

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

forwardBackwardThreshold float

Threshold for the forward backward confidence check.

gridStep Size?

Size of the grid to spawn the motion vectors.

interpType InterpolationType

Interpolation method used to compute the dense optical flow.

epicK int

See ximgproc::EdgeAwareInterpolator's K value.

epicSigma float

See ximgproc::EdgeAwareInterpolator's sigma value.

epicLambda float

See ximgproc::EdgeAwareInterpolator's lambda value.

ricSpSize int

See ximgproc::RICInterpolator's superpixel size parameter.

ricSlicType int

See ximgproc::RICInterpolator's superpixel algorithm variant.

usePostProc bool

Enables ximgproc::fastGlobalSmootherFilter() post-processing.

fgsLambda float

See ximgproc::fastGlobalSmootherFilter()'s lambda parameter.

fgsSigma float

See ximgproc::fastGlobalSmootherFilter()'s sigma parameter.

useVariationalRefinement bool

Enables VariationalRefinement.