public final class AlignmentPattern extends ResultPoint
Encapsulates an alignment pattern, which are the smaller square patterns found in all but the simplest QR Codes.
Modifier and Type | Field and Description |
---|---|
private float |
estimatedModuleSize |
Constructor and Description |
---|
AlignmentPattern(float posX,
float posY,
float estimatedModuleSize) |
Modifier and Type | Method and Description |
---|---|
(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.
|
distance, equals, getX, getY, hashCode, orderBestPatterns, toString
AlignmentPattern(float posX, float posY, float estimatedModuleSize)
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.
AlignmentPattern combineEstimate(float i, float j, float newModuleSize)
FinderPattern
containing an average of the two.