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)
{
if (from == null)
throw new ArgumentNullException(nameof(@from));
if (to == null)
throw new ArgumentNullException(nameof(to));
if (flow == null)
throw new ArgumentNullException(nameof(flow));
from.ThrowIfDisposed();
to.ThrowIfDisposed();
flow.ThrowIfDisposed();
NativeMethods.optflow_calcOpticalFlowSF2(
from.CvPtr, to.CvPtr, flow.CvPtr,
layers, averagingBlockSize, maxFlow,
sigmaDist, sigmaColor, postprocessWindow, sigmaDistFix,
sigmaColorFix, occThr, upscaleAveragingRadius,
upscaleSigmaDist, upscaleSigmaColor, speedUpThr);
}
}