CvOptFlowCalcOpticalFlowSF Method (Mat, Mat, Mat, Int32, Int32, Int32, Double, Double, Int32, Double, Double, Double, Int32, Double, Double, Double)
|
computes dense optical flow using Simple Flow algorithm
Namespace:
OpenCvSharp.OptFlow
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static void CalcOpticalFlowSF(
Mat from,
Mat to,
Mat 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
)
Public Shared Sub CalcOpticalFlowSF (
from As Mat,
to As Mat,
flow As Mat,
layers As Integer,
averagingBlockSize As Integer,
maxFlow As Integer,
sigmaDist As Double,
sigmaColor As Double,
postprocessWindow As Integer,
sigmaDistFix As Double,
sigmaColorFix As Double,
occThr As Double,
upscaleAveragingRadius As Integer,
upscaleSigmaDist As Double,
upscaleSigmaColor As Double,
speedUpThr As Double
)
public:
static void CalcOpticalFlowSF(
Mat^ from,
Mat^ to,
Mat^ 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
)
static member CalcOpticalFlowSF :
from : Mat *
to : Mat *
flow : Mat *
layers : int *
averagingBlockSize : int *
maxFlow : int *
sigmaDist : float *
sigmaColor : float *
postprocessWindow : int *
sigmaDistFix : float *
sigmaColorFix : float *
occThr : float *
upscaleAveragingRadius : int *
upscaleSigmaDist : float *
upscaleSigmaColor : float *
speedUpThr : float -> unit
OpenCvSharp.OptFlow.CvOptFlow.CalcOpticalFlowSF = function(from, to, flow, layers, averagingBlockSize, maxFlow, sigmaDist, sigmaColor, postprocessWindow, sigmaDistFix, sigmaColorFix, occThr, upscaleAveragingRadius, upscaleSigmaDist, upscaleSigmaColor, speedUpThr);
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 - sigmaDist
- Type: SystemDouble
vector smooth spatial sigma parameter - sigmaColor
- Type: SystemDouble
vector smooth color sigma parameter - postprocessWindow
- Type: SystemInt32
window size for postprocess cross bilateral filter - sigmaDistFix
- Type: SystemDouble
spatial sigma for postprocess cross bilateralf filter - sigmaColorFix
- Type: SystemDouble
color sigma for postprocess cross bilateral filter - occThr
- Type: SystemDouble
threshold for detecting occlusions - upscaleAveragingRadius
- Type: SystemInt32
window size for bilateral upscale operation - upscaleSigmaDist
- Type: SystemDouble
spatial sigma for bilateral upscale operation - upscaleSigmaColor
- Type: SystemDouble
color sigma for bilateral upscale operation - speedUpThr
- Type: SystemDouble
threshold to detect point with irregular flow - where flow should be recalculated after upscale
See Also