private void initRGB(BufferedImage bi) {
		int[] rgbData = bi.getRGB(0, 0, bi.getWidth(), bi.getHeight(), null, 0,
				bi.getWidth());

		int colorRed;
		int colorGreen;
		int colorBlue;
		for (int x = 0; x < bi.getWidth(); x++) {
			for (int y = 0; y < bi.getHeight(); y++) {
				colorRed = (rgbData[(y * bi.getWidth()) + x] >> 16) & 0xFF;
				colorGreen = (rgbData[(y * bi.getWidth()) + x] >> 8) & 0xFF;
				colorBlue = (rgbData[(y * bi.getWidth()) + x]) & 0xFF;

				red.setPixel(x, y, colorRed);
				green.setPixel(x, y, colorGreen);
				blue.setPixel(x, y, colorBlue);
			}
		}
	}