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) |
void |
readASCII(Scanner in) |
void |
readBinary(DataInput in) |
void |
writeASCII(PrintWriter out) |
void |
writeBinary(DataOutput 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
writeBinary in interface WriteableBinarywriteBinary in class KeypointLocationIOExceptionpublic void writeASCII(PrintWriter out) throws IOException
writeASCII in interface WriteableASCIIwriteASCII in class KeypointLocationIOExceptionpublic void readBinary(DataInput in) throws IOException
readBinary in interface ReadableBinaryreadBinary in class KeypointLocationIOExceptionpublic void readASCII(Scanner in) throws IOException
readASCII in interface ReadableASCIIreadASCII in class KeypointLocationIOExceptionpublic Float getOrdinate(int dimension)
getOrdinate in interface CoordinategetOrdinate in class KeypointLocation