private static int[] getColorOccurrences(Image image, ChannelType color) {
		int[] dataset = new int[Image.MAX_VAL + 1];
		for (int x = 0; x < image.getWidth(); x++) {
			for (int y = 0; y < image.getHeight(); y++) {
				dataset[(int) Math.floor(image.getPixel(x, y, color))]++;
			}
		}
		return dataset;
	}