FinderPattern.java (zxing-zxing-3.4.1) | : | FinderPattern.java (zxing-zxing-3.5.0) | ||
---|---|---|---|---|
skipping to change at line 51 | skipping to change at line 51 | |||
} | } | |||
public float getEstimatedModuleSize() { | public float getEstimatedModuleSize() { | |||
return estimatedModuleSize; | return estimatedModuleSize; | |||
} | } | |||
int getCount() { | int getCount() { | |||
return count; | return count; | |||
} | } | |||
/* | ||||
void incrementCount() { | ||||
this.count++; | ||||
} | ||||
*/ | ||||
/** | /** | |||
* <p>Determines if this finder pattern "about equals" a finder pattern at the stated | * <p>Determines if this finder pattern "about equals" a finder pattern at the stated | |||
* position and size -- meaning, it is at nearly the same center with nearly t he same size.</p> | * position and size -- meaning, it is at nearly the same center with nearly t he same size.</p> | |||
*/ | */ | |||
boolean aboutEquals(float moduleSize, float i, float j) { | boolean aboutEquals(float moduleSize, float i, float j) { | |||
if (Math.abs(i - getY()) <= moduleSize && Math.abs(j - getX()) <= moduleSize ) { | if (Math.abs(i - getY()) <= moduleSize && Math.abs(j - getX()) <= moduleSize ) { | |||
float moduleSizeDiff = Math.abs(moduleSize - estimatedModuleSize); | float moduleSizeDiff = Math.abs(moduleSize - estimatedModuleSize); | |||
return moduleSizeDiff <= 1.0f || moduleSizeDiff <= estimatedModuleSize; | return moduleSizeDiff <= 1.0f || moduleSizeDiff <= estimatedModuleSize; | |||
} | } | |||
return false; | return false; | |||
End of changes. 1 change blocks. | ||||
6 lines changed or deleted | 0 lines changed or added |