private static void nearNeighbour(float p) {
		ImageData imageData = original.getImageData();

		int[][] two1 = new int[imageData.height][imageData.width];

		for (int i = 0; i < imageData.height; i++) {
			for (int j = 0; j < imageData.width; j++) {
				two1[i][j] = imageData.getPixel(j, i);
			}
		}
		int[] one1 = ImageUtils.two2one(two1);
		
		int w = imageData.width;
		int h = imageData.height;
		int ow = (int)(w*p);
		int oh = (int)(h*p);
		
		int[] one2 = GT.nearNeighbour(one1,w, h,ow, oh, p );
		
		int[][] two2 = ImageUtils.one2two(one2, ow, oh);

		imageData = new ImageData(ow, oh, 8, imageData.palette);

		for (int i = 0; i < oh; i++) {
			for (int j = 0; j < ow; j++) {
				imageData.setPixel(j, i, two2[i][j]);
			}
		}
		nearNeighbour = new Image(original.getDevice(), imageData);
		nearNeighbourHisto = ImageUtils.analyzeHistogram(nearNeighbour.getImageData());
	}