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
|
orientation
scale
x, 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, getDimensions
clone, getScale, setScale
copy, copyFrom, createRandomPoint, createRandomPoint, equals, fromDoubleArray, getX, getY, hashCode, minus, setOrdinate, setX, setY, toString, transform, translate, translate
finalize, getClass, notify, notifyAll, wait, wait, wait
copy, copyFrom, getX, getY, minus, setX, setY, transform, translate, translate
setOrdinate
public 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
WriteableBinary
writeBinary
in interface WriteableBinary
writeBinary
in class KeypointLocation
out
- sink to write toIOException
- an error writing to outpublic void writeASCII(PrintWriter out) throws IOException
WriteableASCII
writeASCII
in interface WriteableASCII
writeASCII
in class KeypointLocation
out
- sink to write toIOException
- an error writing to outpublic void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
readBinary
in class KeypointLocation
in
- source to read from.IOException
- an error reading inputpublic void readASCII(Scanner in) throws IOException
ReadableASCII
readASCII
in interface ReadableASCII
readASCII
in class KeypointLocation
in
- source to read from.IOException
- an error reading inputpublic Float getOrdinate(int dimension)
Coordinate
getOrdinate
in interface Coordinate
getOrdinate
in class KeypointLocation
dimension
- The index of the dimension we are interested in