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() |
byte[] |
binaryHeader() |
ByteFV |
getFeatureVector() |
SpatialLocation |
getLocation() |
void |
readASCII(Scanner in) |
void |
readBinary(DataInput in) |
String |
toString() |
void |
writeASCII(PrintWriter out) |
void |
writeBinary(DataOutput 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()
public String toString()
toString in class Point2dImplpublic void writeBinary(DataOutput out) throws IOException
writeBinary in interface org.openimaj.io.WriteableBinarywriteBinary in class SpatialLocationIOExceptionpublic void writeASCII(PrintWriter out) throws IOException
writeASCII in interface org.openimaj.io.WriteableASCIIwriteASCII in class SpatialLocationIOExceptionpublic void readBinary(DataInput in) throws IOException
readBinary in interface org.openimaj.io.ReadableBinaryreadBinary in class SpatialLocationIOExceptionpublic void readASCII(Scanner in) throws IOException
readASCII in interface org.openimaj.io.ReadableASCIIreadASCII in class SpatialLocationIOExceptionpublic SpatialLocation getLocation()
getLocation in interface LocationProvider<SpatialLocation>public byte[] binaryHeader()
binaryHeader in interface org.openimaj.io.ReadableBinarybinaryHeader in interface org.openimaj.io.WriteableBinarybinaryHeader in class SpatialLocationpublic String asciiHeader()
asciiHeader in interface org.openimaj.io.ReadableASCIIasciiHeader in interface org.openimaj.io.WriteableASCIIasciiHeader in class SpatialLocation