computes dense optical flow using Simple Flow algorithm
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void CalcOpticalFlowSF( Mat from, Mat to, Mat flow, int layers, int averagingBlockSize, int maxFlow )
Parameters
- from
- Type: OpenCvSharp.CPlusPlusMat
First 8-bit 3-channel image. - to
- Type: OpenCvSharp.CPlusPlusMat
Second 8-bit 3-channel image - flow
- Type: OpenCvSharp.CPlusPlusMat
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