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, writeBinary
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asciiHeader, readASCII
binaryHeader, readBinary
asciiHeader, writeASCII
binaryHeader, writeBinary
public 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)
Coordinate
getOrdinate
in interface Coordinate
dimension
- The index of the dimension we are interested inpublic void setOrdinate(int dimension, Number value)
Coordinate
setOrdinate
in interface Coordinate
dimension
- The index of the dimension we are interested invalue
- The value of the ordinate of the given dimension.public int getDimensions()
getDimensions
in interface Coordinate
public void copyFrom(Point2d p)
Point2d
public void translate(float x, float y)
Point2d
public Point2d transform(Jama.Matrix m)
Point2d
public Point2d minus(Point2d a)
Point2d