public final class FinderPattern extends ResultPoint
Encapsulates a finder pattern, which are the three square patterns found in the corners of QR Codes. It also encapsulates a count of similar finder patterns, as a convenience to the finder's bookkeeping.
Modifier and Type | Field and Description |
---|---|
private int |
count |
private float |
estimatedModuleSize |
Modifier | Constructor and Description |
---|---|
(package private) |
FinderPattern(float posX,
float posY,
float estimatedModuleSize) |
private |
FinderPattern(float posX,
float posY,
float estimatedModuleSize,
int count) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
aboutEquals(float moduleSize,
float i,
float j)
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 the same size.
|
(package private) FinderPattern |
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.
|
int |
getCount() |
float |
getEstimatedModuleSize() |
distance, equals, getX, getY, hashCode, orderBestPatterns, toString
private final float estimatedModuleSize
private final int count
FinderPattern(float posX, float posY, float estimatedModuleSize)
private FinderPattern(float posX, float posY, float estimatedModuleSize, int count)
public float getEstimatedModuleSize()
public int getCount()
boolean aboutEquals(float moduleSize, float i, float j)
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 the same size.
FinderPattern combineEstimate(float i, float j, float newModuleSize)
FinderPattern
containing a weighted average
based on count.