public class AutoColorCorrelogram extends java.lang.Object implements GlobalFeature
Feature for the AutoCorrelogram based on color as described in Huang, J.; Kumar, S. R.; Mitra, M.; Zhu, W. & Zabih, R. (2007) "Image Indexing Using Color Correlograms", IEEE Computer Society
see also DOI 10.1109/CVPR.1997.609412
Todo: Change the 2-dim array to a one dim array, as this is much faster in Java.| 限定符和类型 | 类和说明 |
|---|---|
static class |
AutoColorCorrelogram.ExtractionMethod
Defines which algorithm to use to extract the features vector
|
static class |
AutoColorCorrelogram.Mode
Defines the available analysis modes: Superfast uses the approach described in the paper, Quarterneighbourhood
investigates the pixels in down and to the right of the respective pixel and FullNeighbourhood investigates
the whole lot of pixels within maximumDistance of the respective pixel.
|
| 构造器和说明 |
|---|
AutoColorCorrelogram() |
AutoColorCorrelogram(IAutoCorrelogramFeatureExtractor extractionAlgorith)
Creates a new AutoCorrelogram with specified algorithm of extraction
Uses distance set {1,2,3,4} which is chosen to be compatible with legacy code
|
AutoColorCorrelogram(int maxDistance)
Creates a new AutoColorCorrelogram, where the distance k is limited to a maximum of
maxDistance (see publication mentioned above)
|
AutoColorCorrelogram(int[] distanceSet)
Creates a new AutoColorCorrelogram, where the distance k is in distance set
|
AutoColorCorrelogram(int[] distanceSet,
IAutoCorrelogramFeatureExtractor extractionAlgorith)
Creates a new AutoCorrelogram with specified algorithm of extraction and distance set
|
AutoColorCorrelogram(int maxDistance,
AutoColorCorrelogram.Mode mode)
Creates a new AutoColorCorrelogram using a maximum L_inf pixel distance for analysis and given mode
|
AutoColorCorrelogram(int numBins,
int[] distanceSet,
IAutoCorrelogramFeatureExtractor extractionAlgorith)
Creates a new AutoColorCorrelogram using a maximum L_inf pixel distance for analysis and given mode
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
extract(java.awt.image.BufferedImage bi)
Extracts the feature vector from a BufferedImage.
|
void |
extract(int[][][] img) |
byte[] |
getByteArrayRepresentation()
Returns a compact byte[] based representation of the feature vector.
|
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.
|
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.
|
public AutoColorCorrelogram()
public AutoColorCorrelogram(int maxDistance)
maxDistance - upper limit of kpublic AutoColorCorrelogram(int maxDistance,
AutoColorCorrelogram.Mode mode)
maxDistance - maximum L_inf pixel distance for analysismode - the mode of calculation (determines the speed of extraction)public AutoColorCorrelogram(int[] distanceSet)
distanceSet - distance setpublic AutoColorCorrelogram(int[] distanceSet,
IAutoCorrelogramFeatureExtractor extractionAlgorith)
distanceSet - distance setextractionAlgorith - the algorithm to extractpublic AutoColorCorrelogram(IAutoCorrelogramFeatureExtractor extractionAlgorith)
extractionAlgorith - the algorithm to extractpublic AutoColorCorrelogram(int numBins,
int[] distanceSet,
IAutoCorrelogramFeatureExtractor extractionAlgorith)
public void extract(java.awt.image.BufferedImage bi)
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 在接口中 FeatureVectorpublic void extract(int[][][] img)
public double getDistance(LireFeature vd)
LireFeaturegetDistance 在接口中 LireFeaturevd - the feature vector to compare the current instance to.public java.lang.String getFeatureName()
LireFeaturegetFeatureName 在接口中 LireFeaturepublic java.lang.String getFieldName()
LireFeaturegetFieldName 在接口中 LireFeature