src/Foundation/Media/Gimela.Media.Vision.Motion/MotionDetectors/SimpleBackgroundModelingDetector.cs
/// <summary>
/// Reset motion detector to initial state.
/// </summary>
/// 
/// <remarks><para>Resets internal state and variables of motion detection algorithm.
/// Usually this is required to be done before processing new video source, but
/// may be also done at any time to restart motion detection algorithm.</para>
/// </remarks>
/// 
Reset motion detector to initial state.
Reset motion detector to initial state .
public void Reset()
    {
      lock (sync)
      {
        if (backgroundFrame != null)
        {
          backgroundFrame.Dispose();
          backgroundFrame = null;
        }
        if (motionFrame != null)
        {
          motionFrame.Dispose();
          motionFrame = null;
        }
        if (tempFrame != null)
        {
          tempFrame.Dispose();
          tempFrame = null;
        }
        framesCounter = 0;
      }
    }
public void Reset ( ) { lock ( sync ) { if ( backgroundFrame != null ) { backgroundFrame . Dispose ( ) ; backgroundFrame = null ; } if ( motionFrame != null ) { motionFrame . Dispose ( ) ; motionFrame = null ; } if ( tempFrame != null ) { tempFrame . Dispose ( ) ; tempFrame = null ; } framesCounter = 0 ; } }
Reset motion detector to initial state.
Reset motion detector to initial state .
remarks
Resets internal state and variables of motion detection algorithm.
Usually this is required to be done before processing new video source, but
may be also done at any time to restart motion detection algorithm.
Resets internal state and variables of motion detection algorithm . Usually this is required to be done before processing new video source but may be also done at any time to restart motion detection algorithm .