public static boolean isWhiteSpace4(int idx, int radius, int width, int height, byte[] blob) { 
	   boolean result = false;
	   double score = 0.0;
	   if (isLegal(idx, width, height) && blob[3*idx] == (byte)1) {
		   int x = idx % width;
		   int y = idx / width;
		   int idx2 = 0;
		   for (int i = -radius; i <= radius; i++) {
			   for (int j = -radius; j <= radius; j++) {
				   idx2 = width * (y + j) + x + i;
				   if (isLegal(idx2, width, height) && blob[3*idx2] >= (byte)1) { //1
					   score++;
				   }
			   }
		   }
		   if (score >= (1+(radius*2)) * (1+(radius*2))) { //(1+(radius*2)) * (1+(radius*2))
			   result = true;
		   }
	   }
	   return result;
   }