public class SpatialPyramidCentrist extends java.lang.Object implements GlobalFeature
CENTRIST (CENsus TRansform hISTogram) descriptor based on the implementation described in Jianxin Wu; Rehg, J.M., "CENTRIST: A Visual Descriptor for Scene Categorization," Pattern Analysis and Machine Intelligence, IEEE Transactions on , vol.33, no.8, pp.1489,1501, Aug. 2011, doi: 10.1109/TPAMI.2010.224, http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5674051&isnumber=5898466/
This class provides the spatial pyramid version, please see SimpleCentrist for the global histogram.
for the base descriptor of the paper.| 构造器和说明 |
|---|
SpatialPyramidCentrist() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
extract(java.awt.image.BufferedImage image)
Extracts the feature vector from a BufferedImage.
|
byte[] |
getByteArrayRepresentation()
Returns a compact byte[] based representation of the feature vector.
|
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.
|
void |
setByteArrayRepresentation(byte[] featureData)
Sets the feature vector values based on the byte[] data.
|
void |
setByteArrayRepresentation(byte[] featureData,
int offset,
int length)
Sets the feature vector values based on the byte[] data.
|
public void extract(java.awt.image.BufferedImage image)
Extractorpublic java.lang.String getFeatureName()
LireFeaturegetFeatureName 在接口中 LireFeaturepublic java.lang.String getFieldName()
LireFeaturegetFieldName 在接口中 LireFeaturepublic byte[] getByteArrayRepresentation()
LireFeaturegetByteArrayRepresentation 在接口中 LireFeatureLireFeature.setByteArrayRepresentation(byte[])public void setByteArrayRepresentation(byte[] featureData)
LireFeatureLireFeature.getByteArrayRepresentation()
to generate a compatible byte[] array.setByteArrayRepresentation 在接口中 LireFeaturefeatureData - the byte[] data.LireFeature.getByteArrayRepresentation()public void setByteArrayRepresentation(byte[] featureData,
int offset,
int length)
LireFeatureLireFeature.getByteArrayRepresentation()
to generate a compatible byte[] array.setByteArrayRepresentation 在接口中 LireFeaturefeatureData - 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 getDistance(LireFeature feature)
LireFeaturegetDistance 在接口中 LireFeaturefeature - the feature vector to compare the current instance to.public double[] getFeatureVector()
FeatureVectorgetFeatureVector 在接口中 FeatureVector