L - the type of Locationpublic class QuantisedLocalFeature<L extends Location> extends Object implements LocalFeature<L,IntFV>
| Modifier and Type | Field and Description |
|---|---|
int |
id
The identifier.
|
L |
location
The location of the local feature
|
| Constructor and Description |
|---|
QuantisedLocalFeature()
Default constructor.
|
QuantisedLocalFeature(L location,
int id)
Construct the QuantisedLocalFeature with the given location and
identifier.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asciiHeader()
Header for ascii input.
|
byte[] |
binaryHeader()
Header for binary input.
|
IntFV |
getFeatureVector()
Get the FeatureVector associated with this object.
|
L |
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.
|
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.
|
public int id
public QuantisedLocalFeature()
public QuantisedLocalFeature(L location, int id)
location - the location.id - the identifier.public void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinaryout - sink to write toIOException - an error writing to outpublic void writeASCII(PrintWriter out) throws IOException
WriteableASCIIwriteASCII in interface WriteableASCIIout - sink to write toIOException - an error writing to outpublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryin - source to read from.IOException - an error reading inputpublic void readASCII(Scanner in) throws IOException
ReadableASCIIreadASCII in interface ReadableASCIIin - source to read from.IOException - an error reading inputpublic byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarypublic String asciiHeader()
ReadableASCIIasciiHeader in interface ReadableASCIIasciiHeader in interface WriteableASCIIpublic IntFV getFeatureVector()
FeatureVectorProvidergetFeatureVector in interface FeatureVectorProvider<IntFV>public L getLocation()
LocationProvidergetLocation in interface LocationProvider<L extends Location>