Accord.Vision.Motion.CustomFrameDifferenceDetector.Reset C# (CSharp) Method

Reset() public method

Reset motion detector to initial state.

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.

In the case if custom background frame was set using SetBackgroundFrame(Bitmap) method, this method does not reset it. The method resets only automatically generated background frame.

public Reset ( ) : void
return void
        public void Reset()
        {
            // clear background frame only in the case it was not set manually
            Reset(false);
        }

Same methods

CustomFrameDifferenceDetector::Reset ( bool force ) : void