Click or drag to resize

CvOptFlowCalcOpticalFlowSF Method (Mat, Mat, Mat, Int32, Int32, Int32)

computes dense optical flow using Simple Flow algorithm

Namespace:  OpenCvSharp.OptFlow
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static void CalcOpticalFlowSF(
	Mat from,
	Mat to,
	Mat flow,
	int layers,
	int averagingBlockSize,
	int maxFlow
)

Parameters

from
Type: OpenCvSharpMat
First 8-bit 3-channel image.
to
Type: OpenCvSharpMat
Second 8-bit 3-channel image
flow
Type: OpenCvSharpMat
Estimated flow
layers
Type: SystemInt32
Number of layers
averagingBlockSize
Type: SystemInt32
Size of block through which we sum up when calculate cost function for pixel
maxFlow
Type: SystemInt32
maximal flow that we search at each level
See Also