public class ResultPoint
extends java.lang.Object
Encapsulates a point of interest in an image containing a barcode. Typically, this would be the location of a finder pattern or the corner of the barcode, for example.
构造器和说明 |
---|
ResultPoint(float x,
float y) |
限定符和类型 | 方法和说明 |
---|---|
static float |
distance(ResultPoint pattern1,
ResultPoint pattern2) |
boolean |
equals(java.lang.Object other) |
float |
getX() |
float |
getY() |
int |
hashCode() |
static void |
orderBestPatterns(ResultPoint[] patterns)
Orders an array of three ResultPoints in an order [A,B,C] such that AB is less than AC
and BC is less than AC, and the angle between BC and BA is less than 180 degrees.
|
java.lang.String |
toString() |
public final float getX()
public final float getY()
public final boolean equals(java.lang.Object other)
equals
在类中 java.lang.Object
public final int hashCode()
hashCode
在类中 java.lang.Object
public final java.lang.String toString()
toString
在类中 java.lang.Object
public static void orderBestPatterns(ResultPoint[] patterns)
patterns
- array of three ResultPoint
to orderpublic static float distance(ResultPoint pattern1, ResultPoint pattern2)
pattern1
- first patternpattern2
- second pattern