public static boolean isWhiteSpace3(byte[] pixels, byte[] blackPixels, int width, int height, ArrayList<RegionInfo> blackRegions, int idx, int radius, float gScore) { 
		boolean result = false;
		float score = 0.0f;
		int x = idx % width;
		int y = idx / width;
		int idx2 = 0;
		int val = 0;

		if (isLegal(idx, width, height) && pixels[3*idx] == (byte)1) {
			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)) { 
						if (pixels[3*idx2] >= (byte)1 ) { //1
							score++;
						}
						else {
							val = blackPixels[idx2] & 0xff;
							if (val >=2 && blackRegions.get(val - 2).type == 1)
								score++;
						}
					}
				}
			}
			if (score >= gScore) { //(1+(radius*2)) * (1+(radius*2))
				result = true;
			}
		}
		return result;
	}