}\r
\r
int stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2];\r
- if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= originalStateCountTotal) {\r
+ if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= 2 * originalStateCountTotal) {\r
return Float.NaN;\r
}\r
\r
return null;\r
}\r
\r
-}
\ No newline at end of file
+}\r
return Float.NaN;\r
}\r
\r
- // If we found a finder-pattern-like section, but its size is more than 20% different than\r
+ // If we found a finder-pattern-like section, but its size is more than 40% different than\r
// the original, assume it's a false positive\r
int stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2] + stateCount[3] +\r
stateCount[4];\r
- if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= originalStateCountTotal) {\r
+ if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= 2 * originalStateCountTotal) {\r
return Float.NaN;\r
}\r
\r