public class FloatDSIFTKeypoint extends SpatialLocation
Modifier and Type | Field and Description |
---|---|
Q |
descriptor
The descriptor (normalised)
|
float |
energy
The energy of the descriptor prior to normalisation; computed as the sum
of descriptor values divided by the number of sample pixels used to
create it (hence comparable across different window sizes).
|
x, y
Constructor and Description |
---|
FloatDSIFTKeypoint()
Construct with the default feature vector length for SIFT (128).
|
FloatDSIFTKeypoint(float x,
float y,
float[] descriptor,
float energy)
Construct with the given parameters.
|
FloatDSIFTKeypoint(int length)
Construct with the given feature vector length.
|
Modifier and Type | Method and Description |
---|---|
String |
asciiHeader()
Header for ascii input.
|
byte[] |
binaryHeader()
Header for binary input.
|
FloatFV |
getFeatureVector()
Get the FeatureVector associated with this object.
|
SpatialLocation |
getLocation()
Get the location associated with this object.
|
void |
readASCII(Scanner in)
Read internal state from in.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
String |
toString() |
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, getDimensions, getOrdinate
copy, copyFrom, createRandomPoint, createRandomPoint, equals, fromDoubleArray, getX, getY, hashCode, minus, setOrdinate, setX, setY, transform, translate, translate
finalize, getClass, notify, notifyAll, wait, wait, wait
setOrdinate
public float energy
public Q descriptor
public FloatDSIFTKeypoint()
public FloatDSIFTKeypoint(int length)
length
- the length of the feature vectorpublic FloatDSIFTKeypoint(float x, float y, float[] descriptor, float energy)
x
- the x-ordinate of the keypointy
- the y-ordinate of the keypointdescriptor
- the feature vector of the keypointenergy
- the energy of the keypointpublic FloatFV getFeatureVector()
FeatureVectorProvider
public String toString()
toString
in class Point2dImpl
public void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
writeBinary
in class SpatialLocation
out
- sink to write toIOException
- an error writing to outpublic void writeASCII(PrintWriter out) throws IOException
WriteableASCII
writeASCII
in interface WriteableASCII
writeASCII
in class SpatialLocation
out
- sink to write toIOException
- an error writing to outpublic void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
readBinary
in class SpatialLocation
in
- source to read from.IOException
- an error reading inputpublic void readASCII(Scanner in) throws IOException
ReadableASCII
readASCII
in interface ReadableASCII
readASCII
in class SpatialLocation
in
- source to read from.IOException
- an error reading inputpublic SpatialLocation getLocation()
LocationProvider
getLocation
in interface LocationProvider<SpatialLocation>
public byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
binaryHeader
in class SpatialLocation
public String asciiHeader()
ReadableASCII
asciiHeader
in interface ReadableASCII
asciiHeader
in interface WriteableASCII
asciiHeader
in class SpatialLocation