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; }
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); }