ColorQuantizer quantizer = new NeuQuant(30, 8);
Quantizer quantizer = new NeuQuant(30, 8);
	public static void main(String[] args) {		if (args.length != 2)			System.out.println("usage: java NeuQuant <input image> <output image>");		try {			Image image = ImageData.loadFile(args[0]).getRgbImage();			ColorQuantizer quantizer = new NeuQuant(30, 8);			BufferedImage outImage = new BufferedImage(image.getWidth(), image.getHeight(), 					BufferedImage.TYPE_INT_RGB);			for (int x = 0; x < image.getWidth(); x++) {				for (int y = 0; y < image.getHeight(); y++) {					int[] rgb = quantizer.getPixelColor(y*image.getWidth()+x);					int pixel = 0;					pixel |= rgb[0] << 16;					pixel |= rgb[1] << 8;					pixel |= rgb[2];					outImage.setRGB(x,y,pixel);				}			}			ImageIO.write(outImage,"jpg",new File(args[1]));		} catch (IOException e) {			System.err.println("IO Error: " + e.getMessage());			e.printStackTrace();		}	}