code: protected boolean thresholdBinaryNumber() {
  
  		int lower = (int) (N * (ambiguityThreshold / 2.0));
  		int upper = (int) (N * (1 - ambiguityThreshold / 2.0));
  
  		final int totalElements = getTotalGridElements();
  		for (int i = 0; i < totalElements; i++) {
  			if (counts[i] < lower) {
  				classified[i] = 0;
  			} else if (counts[i] > upper) {
  				classified[i] = 1;
  			} else {
  				// it's ambiguous so just fail
  				return true;
  			}
  		}
  		return false;
  	}
docs: Sees how many pixels were positive and negative in each square region.  Then decides if they
  should be 0 or 1 or unknown