BufferedImage.TYPE_INT_ARGB);
final int[] generatedPixels = new int[generated.getWidth() * generated.getHeight()];
PixelGrabber pg = new PixelGrabber(generated, 0, 0, generated.getWidth(),
generated.getHeight(), generatedPixels, 0, generated.getWidth());
try {
pg.grabPixels();
} catch (InterruptedException ex) {
Logger.getLogger(LMSFitnessFunction.class.getName()).log(Level.SEVERE, null, ex);
}
long sum = 0;