public class CvSurfFeature extends java.lang.Object implements java.io.Serializable, LocalFeature
| 构造器和说明 |
|---|
CvSurfFeature() |
CvSurfFeature(double X,
double Y,
double size,
double[] feature) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getByteArrayRepresentation()
Returns a compact byte[] based representation of the feature vector.
|
java.lang.Class<? extends LocalFeatureExtractor> |
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)
Sets the feature vector values based on the byte[] data.
|
void |
setByteArrayRepresentation(byte[] in,
int offset,
int length)
Sets the feature vector values based on the byte[] data.
|
java.lang.String |
toString() |
public CvSurfFeature()
public CvSurfFeature(double X,
double Y,
double size,
double[] feature)
public java.lang.String toString()
toString 在类中 java.lang.Objectpublic double getDistance(LireFeature f)
LireFeaturegetDistance 在接口中 LireFeaturef - the feature vector to compare the current instance to.public byte[] getByteArrayRepresentation()
LireFeaturegetByteArrayRepresentation 在接口中 LireFeatureLireFeature.setByteArrayRepresentation(byte[])public void setByteArrayRepresentation(byte[] in)
LireFeatureLireFeature.getByteArrayRepresentation()
to generate a compatible byte[] array.setByteArrayRepresentation 在接口中 LireFeaturein - the byte[] data.LireFeature.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