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 pattern1,
ResultPoint pattern2) |
boolean |
equals(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.
|
String |
toString() |
public final float getX()
public final float getY()
public static void orderBestPatterns(ResultPoint[] patterns)
patterns
- array of three ResultPoint
to orderpublic static float distance(ResultPoint pattern1, ResultPoint pattern2)
pattern1
- first patternpattern2
- second patternCopyright © 2007–2022. All rights reserved.