Features.BitExact.equalImages C# (CSharp) Метод

equalImages() публичный Метод

public equalImages ( int first, int second ) : void
first int
second int
Результат void
        public void equalImages(int first, int second)
        {
            ImageInfo temp1=null, temp2=null;

            int size = similarSizes(out temp1,out temp2, first, second);

            byte[] firstA = temp1.getImb();
            byte[] secondA = temp2.getImb();

            int sum = 0;
            Debug.Assert( (firstA.Length == secondA.Length) );
            for (int i = 0; i < size; i++)
                sum += Math.Abs(firstA[i] - secondA[i]);

            //if the success more then (95%) [100 - 100 * ARROUND] the images is eaqual
            if (sum <= 100 * AROUND * size)
                AddToResult(first, second);
        }