public class SiftFeature extends java.lang.Object implements java.lang.Comparable<SiftFeature>, java.io.Serializable, LocalFeature
| 限定符和类型 | 字段和说明 |
|---|---|
float[] |
location |
float |
orientation |
float |
scale |
| 构造器和说明 |
|---|
SiftFeature()
Dummy constructor for Serialization to work properly.
|
SiftFeature(float s,
float o,
float[] l,
float[] d) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(SiftFeature f)
comparator for making Features sortable
please note, that the comparator returns -1 for
this.scale > o.scale, to sort the features in a descending order
|
float |
descriptorDistance(SiftFeature f) |
byte[] |
getByteArrayRepresentation()
Writing out to bytes ... just to save some time and space.
|
java.lang.Class<? extends LocalFeatureExtractor> |
getClassOfExtractor() |
double |
getDistance(LireFeature feature)
The distance function for this type of feature
|
java.lang.String |
getFeatureName()
Gives a descriptive name of the feature, i.e. a name to show up in benchmarks, menus, UIs, etc.
|
double[] |
getFeatureVector()
Convenience method to get the feature vector as double[] array.
|
java.lang.String |
getFieldName()
Returns the preferred field name for indexing.
|
double |
getSize() |
double |
getX() |
double |
getY() |
void |
setByteArrayRepresentation(byte[] in)
Reads descriptor from a byte array.
|
void |
setByteArrayRepresentation(byte[] in,
int offset,
int length)
Sets the feature vector values based on the byte[] data.
|
void |
toRootSIFT()
Method to convert SIFT to RootSIFT as described in Arandjelovic, Relja, and Andrew Zisserman.
|
java.lang.String |
toString() |
public float scale
public float orientation
public float[] location
public SiftFeature()
public SiftFeature(float s,
float o,
float[] l,
float[] d)
public int compareTo(SiftFeature f)
compareTo 在接口中 java.lang.Comparable<SiftFeature>public void toRootSIFT()
public float descriptorDistance(SiftFeature f)
public java.lang.String toString()
toString 在类中 java.lang.Objectpublic double getDistance(LireFeature feature)
LireFeaturegetDistance 在接口中 LireFeaturefeature - the feature vector to compare the current instance to.public byte[] getByteArrayRepresentation()
getByteArrayRepresentation 在接口中 LireFeatureLireFeature.setByteArrayRepresentation(byte[])public void setByteArrayRepresentation(byte[] in)
setByteArrayRepresentation 在接口中 LireFeaturein - byte array from corresponding methodCEDD.getByteArrayRepresentation()public void setByteArrayRepresentation(byte[] in,
int offset,
int length)
LireFeatureLireFeature.getByteArrayRepresentation()
to generate a compatible byte[] array.setByteArrayRepresentation 在接口中 LireFeaturein - the byte[] array containing the data.offset - the offset, i.e. where the feature vector starts.length - the length of the data representing the feature vector.LireFeature.getByteArrayRepresentation()public double[] getFeatureVector()
FeatureVectorgetFeatureVector 在接口中 FeatureVectorpublic java.lang.String getFeatureName()
LireFeaturegetFeatureName 在接口中 LireFeaturepublic java.lang.String getFieldName()
LireFeaturegetFieldName 在接口中 LireFeaturepublic double getX()
getX 在接口中 LocalFeaturepublic double getY()
getY 在接口中 LocalFeaturepublic double getSize()
getSize 在接口中 LocalFeaturepublic java.lang.Class<? extends LocalFeatureExtractor> getClassOfExtractor()
getClassOfExtractor 在接口中 LocalFeature