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
i0InputArrayFirst 8-bit input image. If cross-based RLOF is used (SupportRegionType = Cross) the image has to be an 8-bit 3-channel image.
i1InputArraySecond 8-bit input image, same requirements as
i0.flowInputOutputArrayComputed flow image that has the same size as i0 and type CV_32FC2.
rlofParamRLOFOpticalFlowParameterSee RLOFOpticalFlowParameter. Uses the algorithm's defaults when null.
forwardBackwardThresholdfloatThreshold for the forward backward confidence check.
gridStepSize?Size of the grid to spawn the motion vectors.
interpTypeInterpolationTypeInterpolation method used to compute the dense optical flow.
epicKintSee ximgproc::EdgeAwareInterpolator's K value.
epicSigmafloatSee ximgproc::EdgeAwareInterpolator's sigma value.
epicLambdafloatSee ximgproc::EdgeAwareInterpolator's lambda value.
ricSpSizeintSee ximgproc::RICInterpolator's superpixel size parameter.
ricSlicTypeintSee ximgproc::RICInterpolator's superpixel algorithm variant.
usePostProcboolEnables ximgproc::fastGlobalSmootherFilter() post-processing.
fgsLambdafloatSee ximgproc::fastGlobalSmootherFilter()'s lambda parameter.
fgsSigmafloatSee ximgproc::fastGlobalSmootherFilter()'s sigma parameter.
useVariationalRefinementboolEnables VariationalRefinement.