public class ByteDSIFTKeypoint 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 |
|---|
ByteDSIFTKeypoint()
Construct with the default feature vector length for SIFT (128).
|
ByteDSIFTKeypoint(float x,
float y,
byte[] descriptor,
float energy)
Construct with the given parameters.
|
ByteDSIFTKeypoint(float x,
float y,
float[] fdescriptor,
float energy)
Construct with the given parameters.
|
ByteDSIFTKeypoint(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.
|
ByteFV |
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, getOrdinatecopy, copyFrom, createRandomPoint, createRandomPoint, equals, fromDoubleArray, getX, getY, hashCode, minus, setOrdinate, setX, setY, transform, translate, translatefinalize, getClass, notify, notifyAll, wait, wait, waitsetOrdinatepublic float energy
public Q descriptor
public ByteDSIFTKeypoint()
public ByteDSIFTKeypoint(int length)
length - the length of the feature vectorpublic ByteDSIFTKeypoint(float x, float y, byte[] 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 ByteDSIFTKeypoint(float x, float y, float[] fdescriptor, float energy)
x - the x-ordinate of the keypointy - the y-ordinate of the keypointfdescriptor - the flaot version of feature vector of the keypointenergy - the energy of the keypointpublic ByteFV getFeatureVector()
FeatureVectorProviderpublic String toString()
toString in class Point2dImplpublic void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinarywriteBinary in class SpatialLocationout - sink to write toIOException - an error writing to outpublic void writeASCII(PrintWriter out) throws IOException
WriteableASCIIwriteASCII in interface WriteableASCIIwriteASCII in class SpatialLocationout - sink to write toIOException - an error writing to outpublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryreadBinary in class SpatialLocationin - source to read from.IOException - an error reading inputpublic void readASCII(Scanner in) throws IOException
ReadableASCIIreadASCII in interface ReadableASCIIreadASCII in class SpatialLocationin - source to read from.IOException - an error reading inputpublic SpatialLocation getLocation()
LocationProvidergetLocation in interface LocationProvider<SpatialLocation>public byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarybinaryHeader in class SpatialLocationpublic String asciiHeader()
ReadableASCIIasciiHeader in interface ReadableASCIIasciiHeader in interface WriteableASCIIasciiHeader in class SpatialLocation