public double getDensity() {
		double count = 0;
		for(int x = 0; x < pixels.length; x++) {
			for(int y = 0; y < pixels[0].length; y++) {
				if(pixels[x][y]) {
					++count;
				}
			}
		}
		
		return count / (pixels.length * pixels[0].length);
	}