public class JpegCoefficientHistogram extends java.lang.Object implements GlobalFeature
| 限定符和类型 | 类和说明 |
|---|---|
class |
JpegCoefficientHistogram.DctComparator |
protected class |
JpegCoefficientHistogram.DctPoint |
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
BLOCK_SIZE |
protected int[] |
descriptorValues |
protected double[][][][] |
transform |
| 构造器和说明 |
|---|
JpegCoefficientHistogram() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected double[][][][] |
createTransformArray() |
void |
extract(java.awt.image.BufferedImage bimg)
Extracts the feature vector from a BufferedImage.
|
byte[] |
getByteArrayRepresentation()
Returns a compact byte[] based representation of the feature vector.
|
protected void |
getComponentHistogram(int[][][] yuvImage,
int width,
int height,
int component,
int[] descriptorBytes) |
double |
getDistance(LireFeature vd)
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.
|
protected int[][][] |
getYUVImage(java.awt.image.WritableRaster raster,
int newWidth,
int newHeight,
int shift) |
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.
|
protected int[] descriptorValues
protected final int BLOCK_SIZE
protected double[][][][] transform
public void extract(java.awt.image.BufferedImage bimg)
Extractorpublic 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 在接口中 FeatureVectorprotected void getComponentHistogram(int[][][] yuvImage,
int width,
int height,
int component,
int[] descriptorBytes)
public double getDistance(LireFeature vd)
LireFeaturegetDistance 在接口中 LireFeaturevd - the feature vector to compare the current instance to.protected int[][][] getYUVImage(java.awt.image.WritableRaster raster,
int newWidth,
int newHeight,
int shift)
protected double[][][][] createTransformArray()
public java.lang.String getFeatureName()
LireFeaturegetFeatureName 在接口中 LireFeaturepublic java.lang.String getFieldName()
LireFeaturegetFieldName 在接口中 LireFeature