public int GetError(IPictureMutation mutation)
 {
     var picture = mutation.ApplyToPicture(algorithm.CurrentPicture);
     var donePixels = new bool[algorithm.SourceData.Width,algorithm.SourceData.Height];
     var totalError = 0;
     totalError += ScorePolygons(donePixels, picture);
     totalError += ScoreRemainingPixels(donePixels);
     return totalError;
 }
Ejemplo n.º 2
0
        public int GetError(IPictureMutation mutation)
        {
            var picture    = mutation.ApplyToPicture(algorithm.CurrentPicture);
            var donePixels = new bool[algorithm.SourceData.Width, algorithm.SourceData.Height];
            var totalError = 0;

            totalError += ScorePolygons(donePixels, picture);
            totalError += ScoreRemainingPixels(donePixels);
            return(totalError);
        }