private static Vector<Integer> checkNeighbourhood(BufferedImage img, int x,
			int y, int r) {
		Vector<Integer> vect = new Vector<>();

		for (int i = x - r; i <= x + r; i++) {
			for (int j = y - r; j <= y + r; j++) {
				if (i >= 0 && j >= 0 && i < img.getWidth()
						&& j < img.getHeight()) {
					if (img.getRGB(i, j) == -1 && !(i == x && j == y)) {
						vect.addElement(i);
						vect.addElement(j);
						return vect;
					}
				}
			}
		}

		return vect;
	}