public static class AffineSimulationKeypoint.AffineSimulationKeypointLocation extends KeypointLocation
KeypointLocation extended to hold a rotation, tilt and index
corresponding to an affine simulation.| Modifier and Type | Field and Description |
|---|---|
int |
index
The simulation index
|
float |
theta
The rotation angle
|
float |
tilt
The amount of tilt
|
orientationscalex, y| Constructor and Description |
|---|
AffineSimulationKeypointLocation()
Construct with zero tilt and rotation.
|
AffineSimulationKeypointLocation(float x,
float y,
float scale,
float ori,
float theta,
float tilt,
int index)
Construct with the given parameters
|
| Modifier and Type | Method and Description |
|---|---|
Float |
getOrdinate(int dimension)
Get the ordinate value for a specific dimension.
|
void |
readASCII(Scanner in)
Read internal state from in.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
writeASCII(PrintWriter out)
Write the content of this as ascii to out.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
asciiHeader, binaryHeader, getDimensionsclone, getScale, setScalecopy, copyFrom, createRandomPoint, createRandomPoint, equals, fromDoubleArray, getX, getY, hashCode, minus, setOrdinate, setX, setY, toString, transform, translate, translatefinalize, getClass, notify, notifyAll, wait, wait, waitcopy, copyFrom, getX, getY, minus, setX, setY, transform, translate, translatesetOrdinatepublic float theta
public float tilt
public int index
public AffineSimulationKeypointLocation()
public AffineSimulationKeypointLocation(float x, float y, float scale, float ori, float theta, float tilt, int index)
x - x-ordinate of featurey - y-ordinate of featurescale - scale of featureori - orientation of featuretheta - rotation of the simulation from which the feature was
extractedtilt - tilt of the simulation from which the feature was
extractedindex - index of the simulation from which the feature was
extractedpublic void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinarywriteBinary in class KeypointLocationout - sink to write toIOException - an error writing to outpublic void writeASCII(PrintWriter out) throws IOException
WriteableASCIIwriteASCII in interface WriteableASCIIwriteASCII in class KeypointLocationout - sink to write toIOException - an error writing to outpublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryreadBinary in class KeypointLocationin - source to read from.IOException - an error reading inputpublic void readASCII(Scanner in) throws IOException
ReadableASCIIreadASCII in interface ReadableASCIIreadASCII in class KeypointLocationin - source to read from.IOException - an error reading inputpublic Float getOrdinate(int dimension)
CoordinategetOrdinate in interface CoordinategetOrdinate in class KeypointLocationdimension - The index of the dimension we are interested in