FarnebackOpticalFlow Constructor |
http://www.emgu.com
Create a FarnebackOpticalFlow object
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.0.1.3373 (4.0.1.3373)
Syntaxpublic FarnebackOpticalFlow(
int numLevels = 5,
double pyrScale = 0.5,
bool fastPyramids = false,
int winSize = 13,
int numIters = 10,
int polyN = 5,
double polySigma = 1.1,
OpticalflowFarnebackFlag flags = OpticalflowFarnebackFlag.Default
)
Public Sub New (
Optional numLevels As Integer = 5,
Optional pyrScale As Double = 0.5,
Optional fastPyramids As Boolean = false,
Optional winSize As Integer = 13,
Optional numIters As Integer = 10,
Optional polyN As Integer = 5,
Optional polySigma As Double = 1.1,
Optional flags As OpticalflowFarnebackFlag = OpticalflowFarnebackFlag.Default
)
public:
FarnebackOpticalFlow(
int numLevels = 5,
double pyrScale = 0.5,
bool fastPyramids = false,
int winSize = 13,
int numIters = 10,
int polyN = 5,
double polySigma = 1.1,
OpticalflowFarnebackFlag flags = OpticalflowFarnebackFlag::Default
)
new :
?numLevels : int *
?pyrScale : float *
?fastPyramids : bool *
?winSize : int *
?numIters : int *
?polyN : int *
?polySigma : float *
?flags : OpticalflowFarnebackFlag
(* Defaults:
let _numLevels = defaultArg numLevels 5
let _pyrScale = defaultArg pyrScale 0.5
let _fastPyramids = defaultArg fastPyramids false
let _winSize = defaultArg winSize 13
let _numIters = defaultArg numIters 10
let _polyN = defaultArg polyN 5
let _polySigma = defaultArg polySigma 1.1
let _flags = defaultArg flags OpticalflowFarnebackFlag.Default
*)
-> FarnebackOpticalFlow
Parameters
- numLevels (Optional)
- Type: SystemInt32
The number of pyramid layers, including the initial image. levels=1 means that no extra layers are created and only the original images are used - pyrScale (Optional)
- Type: SystemDouble
Specifies the image scale (!1) to build the pyramids for each image. pyrScale=0.5 means the classical pyramid, where each next layer is twice smaller than the previous - fastPyramids (Optional)
- Type: SystemBoolean
Fast Pyramids - winSize (Optional)
- Type: SystemInt32
The averaging window size; The larger values increase the algorithm robustness to image noise and give more chances for fast motion detection, but yield more blurred motion field - numIters (Optional)
- Type: SystemInt32
The number of iterations the algorithm does at each pyramid level - polyN (Optional)
- Type: SystemInt32
Size of the pixel neighborhood used to find polynomial expansion in each pixel. The larger values mean that the image will be approximated with smoother surfaces, yielding more robust algorithm and more blurred motion field. Typically, poly n=5 or 7 - polySigma (Optional)
- Type: SystemDouble
Standard deviation of the Gaussian that is used to smooth derivatives that are used as a basis for the polynomial expansion. For poly n=5 you can set poly sigma=1.1, for poly n=7 a good value would be poly sigma=1.5 - flags (Optional)
- Type: Emgu.CV.CvEnumOpticalflowFarnebackFlag
The operation flags
See Also