public class TagDetection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
long |
code
Matched code.
|
double[] |
cxy
Center of tag in pixel coordinates.
|
boolean |
good
Is the detection good enough?
|
int |
hammingDistance
The hamming distance between the detected code and the true code.
|
double[][] |
homography
A 3x3 homography that computes pixel coordinates from
tag-relative coordinates.
|
double[] |
hxy
The homography is relative to image center, whose coordinates
are below.
|
int |
id
What was the ID of the detected tag?
|
long |
obsCode
Observed code.
|
double |
observedPerimeter
Measured in pixels, how long was the observed perimeter
(i.e., excluding inferred perimeter which is used to
connect incomplete quads).
|
double[][] |
p
Position (in fractional pixel coordinates) of the detection.
|
int |
rotation
How many 90 degree rotations were required to align the code.
|
Constructor and Description |
---|
TagDetection() |
Modifier and Type | Method and Description |
---|---|
double[] |
interpolate(double x,
double y)
Interpolate point given (x,y) is in tag coordinate space from
(-1,-1) to (1,1).
|
java.lang.String |
toString() |
public boolean good
public long obsCode
public long code
public int id
public int hammingDistance
public int rotation
public double[][] p
public double[] cxy
public double observedPerimeter
public double[][] homography
public double[] hxy
public double[] interpolate(double x, double y)
x
- The x valuey
- The y valuepublic java.lang.String toString()
toString
in class java.lang.Object