public List<Map<Integer, Integer>> buildRGBHistogram() {
		List<Map<Integer, Integer>> output = new ArrayList<Map<Integer, Integer>>();
		Map<Integer, Integer> red = new TreeMap<Integer, Integer>();
		Map<Integer, Integer> green = new TreeMap<Integer, Integer>();
		Map<Integer, Integer> blue = new TreeMap<Integer, Integer>();
		
		//Loops through the X axis, which will contain the pixel values
		for (int x = 0; x < getMaxval(); x++) {
			int r = 0, g = 0, b = 0;
			
			//Loops through the Y axis, which will contain the pixel quantity
			for (int i = 0; i < data.length; i++) {
				if (data[i] == x) {
					if (i % 3 == 0) r++;
					else if (i % 3 == 1) g++;
					else if (i % 3 == 2) b++;
				}
			}
			
			//Puts the X and Y values on the map
			red.put(x, r);
			green.put(x, g);
			blue.put(x, b);
		}
		
		output.add(red);
		output.add(green);
		output.add(blue);
		
		return output;
	}