public static Point getPixelLocInArea(int[] pixels, double tolerance, int tx, int ty, int bx, int by) {
		for(int x = tx; x <= bx; x++) {
			for(int y = ty; y <= by; y++) {
				int pixel = getPixel(x, y);
				for(int a : pixels) {
					if(isInTolerance(pixel, a, tolerance)) {
						return new Point(x, y);
					}
				}
			}
		}
		return null;
	}