Method CalcOpticalFlowSF
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
CalcOpticalFlowSF(InputArray, InputArray, OutputArray, int, int, int)
computes dense optical flow using Simple Flow algorithm
public static void CalcOpticalFlowSF(InputArray from, InputArray to, OutputArray flow, int layers, int averagingBlockSize, int maxFlow)
Parameters
fromInputArrayFirst 8-bit 3-channel image.
toInputArraySecond 8-bit 3-channel image
flowOutputArrayEstimated flow
layersintNumber of layers
averagingBlockSizeintSize of block through which we sum up when calculate cost function for pixel
maxFlowintmaximal flow that we search at each level
CalcOpticalFlowSF(InputArray, InputArray, OutputArray, int, int, int, double, double, int, double, double, double, int, double, double, double)
computes dense optical flow using Simple Flow algorithm
public static void CalcOpticalFlowSF(InputArray from, InputArray to, OutputArray flow, int layers, int averagingBlockSize, int maxFlow, double sigmaDist, double sigmaColor, int postprocessWindow, double sigmaDistFix, double sigmaColorFix, double occThr, int upscaleAveragingRadius, double upscaleSigmaDist, double upscaleSigmaColor, double speedUpThr)
Parameters
fromInputArrayFirst 8-bit 3-channel image.
toInputArraySecond 8-bit 3-channel image
flowOutputArrayEstimated flow
layersintNumber of layers
averagingBlockSizeintSize of block through which we sum up when calculate cost function for pixel
maxFlowintmaximal flow that we search at each level
sigmaDistdoublevector smooth spatial sigma parameter
sigmaColordoublevector smooth color sigma parameter
postprocessWindowintwindow size for postprocess cross bilateral filter
sigmaDistFixdoublespatial sigma for postprocess cross bilateralf filter
sigmaColorFixdoublecolor sigma for postprocess cross bilateral filter
occThrdoublethreshold for detecting occlusions
upscaleAveragingRadiusintwindow size for bilateral upscale operation
upscaleSigmaDistdoublespatial sigma for bilateral upscale operation
upscaleSigmaColordoublecolor sigma for bilateral upscale operation
speedUpThrdoublethreshold to detect point with irregular flow - where flow should be recalculated after upscale