"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/main/java/com/google/zxing/qrcode/detector/FinderPattern.java" between
zxing-zxing-3.4.1.tar.gz and zxing-zxing-3.5.0.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Info: Project is in maintenance mode (no active development).

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)