Package com.google.zxing.qrcode.detector
Class AlignmentPattern
java.lang.Object
com.google.zxing.ResultPoint
com.google.zxing.qrcode.detector.AlignmentPattern
Encapsulates an alignment pattern, which are the smaller square patterns found in all but the simplest QR Codes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
aboutEquals
(float moduleSize, float i, float j) Determines if this alignment pattern "about equals" an alignment pattern at the stated position and size -- meaning, it is at nearly the same center with nearly the same size.(package private) AlignmentPattern
combineEstimate
(float i, float j, float newModuleSize) Combines this object's current estimate of a finder pattern position and module size with a new estimate.Methods inherited from class com.google.zxing.ResultPoint
distance, equals, getX, getY, hashCode, orderBestPatterns, toString
-
Field Details
-
estimatedModuleSize
private final float estimatedModuleSize
-
-
Constructor Details
-
AlignmentPattern
AlignmentPattern(float posX, float posY, float estimatedModuleSize)
-
-
Method Details
-
aboutEquals
boolean aboutEquals(float moduleSize, float i, float j) Determines if this alignment pattern "about equals" an alignment pattern at the stated position and size -- meaning, it is at nearly the same center with nearly the same size.
-
combineEstimate
Combines this object's current estimate of a finder pattern position and module size with a new estimate. It returns a newFinderPattern
containing an average of the two.
-