Accord.Vision.Tracking.MatchingTracker.checkSteadiness C# (CSharp) Method

checkSteadiness() private method

private checkSteadiness ( TemplateMatch match ) : bool
match Accord.Imaging.TemplateMatch
return bool
        private bool checkSteadiness(TemplateMatch match)
        {
            if (match.Similarity < threshold)
            {
                if (--steady < -10) steady = -10;
            }
            else
            {
                if (++steady > 0) steady = 0;
            }

            return (steady != -10);
        }