private double innerGetValFor(int i, int j) {
		if (i<0) {
			return -1;
		}
		if(j<0) {
			return -1;
		}
		if (i>= img.getWidth()) {
			return -1;
		}
		if (j>= img.getHeight()) {
			return -1;
		}
		
		return nearestArr[i][j];
	}