public class ResultPoint extends 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.
| Constructor and Description |
|---|
ResultPoint(float x, float y)
|
| Modifier and Type | Method and Description |
|---|---|
static float |
distance(ResultPoint
|
boolean |
equals(Object
|
float |
getX()
|
float |
getY()
|
int |
hashCode()
|
static void |
orderBestPatterns(ResultPoint
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.
|
String |
toString()
|
public final float getX()
public final float getY()
public final boolean equals(Objectother)
public final int hashCode()
public final StringtoString()
public static void orderBestPatterns(ResultPoint[] patterns)
patterns - array of three
ResultPoint to order
public static float distance(ResultPointpattern1, ResultPoint pattern2)
pattern1 - first pattern
pattern2 - second pattern