private boolean foundPatternCross(int[] stateCount) {
    float moduleSize = this.moduleSize;
    float maxVariance = moduleSize / 2.0f;
    for (int i = 0; i < 3; i++) {
      if (Math.abs(moduleSize - stateCount[i]) >= maxVariance) {
        return false;
      }
    }
    return true;
  }
private boolean foundPatternCross ( int [ ] stateCount ) { float moduleSize = this . moduleSize ; float maxVariance = moduleSize / 2.0f ; for ( int i = 0 ; i < 3 ; i ++ ) { if ( Math . abs ( moduleSize - stateCount [ i ] ) >= maxVariance ) { return false ; } } return true ; }
@param stateCount count of black/white/black pixels just read
@return true iff the proportions of the counts is close enough to the 1/1/1 ratios
used by alignment patterns to be considered a match