public class KeypointLocation extends ScaleSpaceLocation
Keypoint.| Modifier and Type | Field and Description |
|---|---|
float |
orientation
The dominant orientation of the
Keypoint |
scalex, 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, 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 orientation
Keypointpublic 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
WriteableBinarywriteBinary in interface WriteableBinarywriteBinary in class ScaleSpaceLocationout - sink to write toIOException - an error writing to outpublic void writeASCII(PrintWriter out) throws IOException
WriteableASCIIwriteASCII in interface WriteableASCIIwriteASCII in class ScaleSpaceLocationout - sink to write toIOException - an error writing to outpublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryreadBinary in class ScaleSpaceLocationin - source to read from.IOException - an error reading inputpublic void readASCII(Scanner in) throws IOException
ReadableASCIIreadASCII in interface ReadableASCIIreadASCII in class ScaleSpaceLocationin - source to read from.IOException - an error reading inputpublic byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarybinaryHeader in class ScaleSpaceLocationpublic String asciiHeader()
ReadableASCIIasciiHeader in interface ReadableASCIIasciiHeader in interface WriteableASCIIasciiHeader in class ScaleSpaceLocationpublic Float getOrdinate(int dimension)
CoordinategetOrdinate in interface CoordinategetOrdinate in class ScaleSpaceLocationdimension - The index of the dimension we are interested inpublic int getDimensions()
getDimensions in interface CoordinategetDimensions in class ScaleSpaceLocation