AForge.Imaging.ExhaustiveTemplateMatching.MatchingsSorter.Compare C# (CSharp) Method

Compare() public method

public Compare ( Object x, Object y ) : int
x Object
y Object
return int
            public int Compare( Object x, Object y )
            {
                float diff = ( (TemplateMatch) y ).Similarity - ( (TemplateMatch) x ).Similarity;

                return ( diff > 0 ) ? 1 : ( diff < 0 ) ? -1 : 0;
            }
        }
ExhaustiveTemplateMatching.MatchingsSorter