public class KeypointLocation extends ScaleSpaceLocation
Keypoint
.Modifier and Type | Field and Description |
---|---|
float |
orientation
The dominant orientation of the
Keypoint |
scale
x, y
Constructor and Description |
---|
KeypointLocation()
Construct with zero location, orientation and scale.
|
KeypointLocation(float x,
float y,
float orientation,
float scale)
Construct with the given parameters
|
Modifier and Type | Method and Description |
---|---|
String |
asciiHeader()
Header for ascii input.
|
byte[] |
binaryHeader()
Header for binary input.
|
int |
getDimensions() |
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.
|
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 orientation
Keypoint
public KeypointLocation()
public KeypointLocation(float x, float y, float orientation, float scale)
x
- x-ordinate of featurey
- y-ordinate of featurescale
- scale of featureorientation
- orientation of featurepublic void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
writeBinary
in class ScaleSpaceLocation
out
- sink to write toIOException
- an error writing to outpublic void writeASCII(PrintWriter out) throws IOException
WriteableASCII
writeASCII
in interface WriteableASCII
writeASCII
in class ScaleSpaceLocation
out
- sink to write toIOException
- an error writing to outpublic void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
readBinary
in class ScaleSpaceLocation
in
- source to read from.IOException
- an error reading inputpublic void readASCII(Scanner in) throws IOException
ReadableASCII
readASCII
in interface ReadableASCII
readASCII
in class ScaleSpaceLocation
in
- source to read from.IOException
- an error reading inputpublic byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
binaryHeader
in class ScaleSpaceLocation
public String asciiHeader()
ReadableASCII
asciiHeader
in interface ReadableASCII
asciiHeader
in interface WriteableASCII
asciiHeader
in class ScaleSpaceLocation
public Float getOrdinate(int dimension)
Coordinate
getOrdinate
in interface Coordinate
getOrdinate
in class ScaleSpaceLocation
dimension
- The index of the dimension we are interested inpublic int getDimensions()
getDimensions
in interface Coordinate
getDimensions
in class ScaleSpaceLocation