Exemplo n.º 1
0
 /// <summary>
 /// Create an "Improved adaptive Gaussian mixture model for background subtraction".
 /// </summary>
 /// <param name="history">The length of the history.</param>
 /// <param name="nMixtures">The maximum number of gaussian mixtures.</param>
 /// <param name="backgroundRatio">Background ratio</param>
 /// <param name="noiseSigma">Noise strength (standard deviation of the brightness or each color channel). 0 means some automatic value.</param>
 public BackgroundSubtractorMOG(
     int history       = 200, int nMixtures = 5, double backgroundRatio = 0.7,
     double noiseSigma = 0)
 {
     _ptr = ContribInvoke.cveBackgroundSubtractorMOGCreate(history, nMixtures, backgroundRatio, noiseSigma, ref _backgroundSubtractorPtr, ref _algorithmPtr, ref _sharedPtr);
 }