Beispiel #1
0
 /// <summary>
 /// Create the Brox optical flow solver
 /// </summary>
 /// <param name="alpha">Flow smoothness</param>
 /// <param name="gamma">Gradient constancy importance</param>
 /// <param name="scaleFactor">Pyramid scale factor</param>
 /// <param name="innerIterations">Number of lagged non-linearity iterations (inner loop)</param>
 /// <param name="outerIterations">Number of warping iterations (number of pyramid levels)</param>
 /// <param name="solverIterations">Number of linear system solver iterations</param>
 public CudaBroxOpticalFlow(double alpha = 0.197, double gamma = 50, double scaleFactor = 0.8, int innerIterations = 5, int outerIterations = 150, int solverIterations = 10)
 {
     _ptr = CudaInvoke.cudaBroxOpticalFlowCreate(alpha, gamma, scaleFactor, innerIterations, outerIterations, solverIterations, ref _denseFlow, ref _algorithm, ref _sharedPtr);
 }
 /// <summary>
 /// Create the Brox optical flow solver
 /// </summary>
 /// <param name="alpha">Flow smoothness</param>
 /// <param name="gamma">Gradient constancy importance</param>
 /// <param name="scaleFactor">Pyramid scale factor</param>
 /// <param name="innerIterations">Number of lagged non-linearity iterations (inner loop)</param>
 /// <param name="outerIterations">Number of warping iterations (number of pyramid levels)</param>
 /// <param name="solverIterations">Number of linear system solver iterations</param>
 public CudaBroxOpticalFlow(float alpha, float gamma, float scaleFactor, int innerIterations, int outerIterations, int solverIterations)
 {
     _ptr = CudaInvoke.cudaBroxOpticalFlowCreate(alpha, gamma, scaleFactor, innerIterations, outerIterations, solverIterations);
 }