public class FloatKeypoint extends Object implements Serializable, ScaleSpacePoint, LocalFeature<KeypointLocation,FloatFV>, VariableLength, Cloneable
| Modifier and Type | Field and Description |
|---|---|
float |
ori
dominant orientation of keypoint
|
float |
scale
scale of keypoint
|
float[] |
vector
keypoint feature descriptor (i.e.
|
float |
x
x-position of keypoint
|
float |
y
y-position of keypoint
|
| Constructor and Description |
|---|
FloatKeypoint()
Construct with the default feature vector length for SIFT (128).
|
FloatKeypoint(float x,
float y,
float ori,
float scale,
float[] ivec)
Construct with the given parameters.
|
FloatKeypoint(FloatKeypoint k)
Construct by copying from another
FloatKeypoint |
FloatKeypoint(int length)
Construct with the given feature vector length.
|
FloatKeypoint(Keypoint k)
Construct from a
Keypoint. |
public float[] vector
public float ori
public float scale
public float x
public float y
public FloatKeypoint()
public FloatKeypoint(int length)
length - the length of the feature vectorpublic FloatKeypoint(float x, float y, float ori, float scale, float[] ivec)
x - the x-ordinate of the keypointy - the y-ordinate of the keypointori - the orientation of the keypointscale - the scale of the keypointivec - the feature vector of the keypointpublic FloatKeypoint(FloatKeypoint k)
FloatKeypointk - the FloatKeypoint to copy frompublic FloatKeypoint(Keypoint k)
Keypoint.k - public Float getOrdinate(int dimension)
getOrdinate in interface Coordinatepublic int getDimensions()
getDimensions in interface Coordinatepublic float getScale()
getScale in interface ScaleSpacePointpublic void setScale(float scale)
setScale in interface ScaleSpacePointpublic boolean locationEquals(Object obj)
FloatKeypoint and another
FloatKeypoint is the same.obj - the other keypointpublic FloatKeypoint clone()
public void writeBinary(DataOutput out) throws IOException
writeBinary in interface WriteableBinaryIOExceptionpublic void writeASCII(PrintWriter out) throws IOException
writeASCII in interface WriteableASCIIIOExceptionpublic void readBinary(DataInput in) throws IOException
readBinary in interface ReadableBinaryIOExceptionpublic void readASCII(Scanner in) throws IOException
readASCII in interface ReadableASCIIIOExceptionpublic byte[] binaryHeader()
binaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarypublic String asciiHeader()
asciiHeader in interface ReadableASCIIasciiHeader in interface WriteableASCIIpublic FloatFV getFeatureVector()
getFeatureVector in interface FeatureVectorProvider<FloatFV>public KeypointLocation getLocation()
getLocation in interface LocationProvider<KeypointLocation>public void setLocation(KeypointLocation location)
FloatKeypointlocation - the locationpublic FloatKeypoint transform(Jama.Matrix transform)
public static MemoryLocalFeatureList<FloatKeypoint> convert(List<? extends Keypoint> keys)
Keypoints to FloatKeypoints.keys - the Keypoints to convert.FloatKeypoints.public void setOrdinate(int dimension, Number value)
setOrdinate in interface Coordinate