public class QuantisedKeypoint extends QuantisedLocalFeature<KeypointLocation> implements Point2d
QuantisedKeypoint is a QuantisedLocalFeature with its
location described by a KeypointLocation. It is the quantised
equivalent to a Keypoint, with the feature vector replaced by a
single integer assignment.id, location| Constructor and Description |
|---|
QuantisedKeypoint()
Construct an empty
QuantisedKeypoint, located at the origin with
an id of 0. |
QuantisedKeypoint(KeypointLocation loc)
Construct a
QuantisedKeypoint, located at the given position with
an id of 0. |
QuantisedKeypoint(KeypointLocation loc,
int id)
Construct a
QuantisedKeypoint, located at the given position and
id. |
| Modifier and Type | Method and Description |
|---|---|
Point2d |
copy()
Clone the point
|
void |
copyFrom(Point2d p)
Copy the values of the given point into this point.
|
int |
getDimensions() |
Float |
getOrdinate(int dimension)
Get the ordinate value for a specific dimension.
|
float |
getX() |
float |
getY() |
Point2d |
minus(Point2d a)
Take point point from another point such that return = this - a
|
void |
setOrdinate(int dimension,
Number value)
Set the ordinate value for a specific dimension.
|
void |
setX(float x)
Set x coordinate of point
|
void |
setY(float y)
Set y coordinate of point
|
Point2d |
transform(Jama.Matrix m)
Transform the point by the given matrix
|
void |
translate(float x,
float y)
Translate the position of the point by the given amounts
|
void |
translate(Point2d v)
Translate the position of the point by the given amounts
|
asciiHeader, binaryHeader, getFeatureVector, getLocation, readASCII, readBinary, writeASCII, writeBinaryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasciiHeader, readASCIIbinaryHeader, readBinaryasciiHeader, writeASCIIbinaryHeader, writeBinarypublic QuantisedKeypoint()
QuantisedKeypoint, located at the origin with
an id of 0.public QuantisedKeypoint(KeypointLocation loc)
QuantisedKeypoint, located at the given position with
an id of 0.loc - the positionpublic QuantisedKeypoint(KeypointLocation loc, int id)
QuantisedKeypoint, located at the given position and
id.loc - the positionid - the idpublic Float getOrdinate(int dimension)
CoordinategetOrdinate in interface Coordinatedimension - The index of the dimension we are interested inpublic void setOrdinate(int dimension, Number value)
CoordinatesetOrdinate in interface Coordinatedimension - The index of the dimension we are interested invalue - The value of the ordinate of the given dimension.public int getDimensions()
getDimensions in interface Coordinatepublic void copyFrom(Point2d p)
Point2dpublic void translate(float x, float y)
Point2dpublic Point2d transform(Jama.Matrix m)
Point2dpublic Point2d minus(Point2d a)
Point2d