Class DenseRLOFOpticalFlow
Fast dense optical flow computation based on robust local optical flow (RLOF) algorithms and sparse-to-dense interpolation scheme.
public class DenseRLOFOpticalFlow : SharedPtrObject, IDisposable, IDenseOpticalFlow, IAlgorithm
- Inheritance
-
DenseRLOFOpticalFlow
- Implements
- Inherited Members
- Extension Methods
Constructors
DenseRLOFOpticalFlow(RLOFOpticalFlowParameter, float, Size, InterpolationType, int, float, float, bool, float, float)
Creates instance of DenseRLOFOpticalFlow
public DenseRLOFOpticalFlow(RLOFOpticalFlowParameter parameter, float forwardBackwardThreshold, Size gridStep, DenseRLOFOpticalFlow.InterpolationType interpType = InterpolationType.Epic, int epicK = 128, float epicSigma = 0.05, float epicLambda = 999, bool usePostProc = true, float fgsLambda = 500, float fgsSigma = 1.5)
Parameters
parameter
RLOFOpticalFlowParameterThe RLOF optical flow parameters
forwardBackwardThreshold
floatThreshold for the forward backward confidence check. Use 1.0f for default
gridStep
SizeSize of the grid to spawn the motion vectors. Use (6, 6) for default
interpType
DenseRLOFOpticalFlow.InterpolationTypeInterpolation used to compute the dense optical flow.
epicK
intSee Ximgproc.EdgeAwareInterpolator() K value.
epicSigma
floatSee Ximgproc.EdgeAwareInterpolator() sigma value.
epicLambda
floatSee Ximgproc.EdgeAwareInterpolator() lambda value.
usePostProc
boolEnables Ximgproc.fastGlobalSmootherFilter
fgsLambda
floatSee Ximgproc.EdgeAwareInterpolator().
fgsSigma
floatSee Ximgproc.EdgeAwareInterpolator().
Properties
AlgorithmPtr
Return the pointer to the algorithm object
public nint AlgorithmPtr { get; }
Property Value
DenseOpticalFlowPtr
Gets the dense optical flow pointer.
public nint DenseOpticalFlowPtr { get; }
Property Value
- nint
The pointer to the dense optical flow object.
Methods
DisposeObject()
Release the unmanaged resources
protected override void DisposeObject()