public class SurfFeature extends java.lang.Object implements LocalFeature
| 构造器和说明 |
|---|
SurfFeature() |
SurfFeature(com.stromberglabs.jopensurf.SURFInterestPoint surfInterestPoint) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getByteArrayRepresentation()
Provides a much faster way of serialization.
|
java.lang.Class<?> |
getClassOfExtractor() |
double |
getDistance(LireFeature f)
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.
|
public SurfFeature(com.stromberglabs.jopensurf.SURFInterestPoint surfInterestPoint)
public SurfFeature()
public double getDistance(LireFeature f)
LireFeaturegetDistance 在接口中 LireFeaturef - the feature vector to compare the current instance to.public byte[] getByteArrayRepresentation()
getByteArrayRepresentation 在接口中 LireFeatureCEDD.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<?> getClassOfExtractor()
getClassOfExtractor 在接口中 LocalFeature