public abstract class AbstractLocalDocumentBuilder extends java.lang.Object implements DocumentBuilder
| 限定符和类型 | 字段和说明 |
|---|---|
protected AbstractAggregator |
aggregator |
protected boolean |
docsCreated |
protected java.util.HashMap<ExtractorItem,java.util.LinkedList<Cluster[]>> |
extractorItems |
protected java.util.HashMap<ExtractorItem,java.util.HashMap<java.lang.Integer,java.lang.String[]>> |
fieldNamesDictionary |
FIELD_NAME_ACCID, FIELD_NAME_AUTOCOLORCORRELOGRAM, FIELD_NAME_BINARY_PATTERNS_PYRAMID, FIELD_NAME_CEDD, FIELD_NAME_COLORHISTOGRAM, FIELD_NAME_COLORLAYOUT, FIELD_NAME_CVOPPSIFT, FIELD_NAME_CVSIFT, FIELD_NAME_CVSURF, FIELD_NAME_EDGEHISTOGRAM, FIELD_NAME_FCTH, FIELD_NAME_GABOR, FIELD_NAME_IDENTIFIER, FIELD_NAME_JCD, FIELD_NAME_JOINT_HISTOGRAM, FIELD_NAME_JPEGCOEFFS, FIELD_NAME_LOCAL_BINARY_PATTERNS, FIELD_NAME_LOCAL_BINARY_PATTERNS_AND_OPPONENT, FIELD_NAME_LUMINANCE_LAYOUT, FIELD_NAME_OPPONENT_HISTOGRAM, FIELD_NAME_PHOG, FIELD_NAME_Rank_Opponent, FIELD_NAME_ROTATION_INVARIANT_LOCAL_BINARY_PATTERNS, FIELD_NAME_SCALABLECOLOR, FIELD_NAME_SELF_SIMILARITIES, FIELD_NAME_SELF_SIMILARITIES_ORIG, FIELD_NAME_SIFT, FIELD_NAME_SIMPLE, FIELD_NAME_SURF, FIELD_NAME_TAMURA, HASH_FIELD_SUFFIX, MAX_IMAGE_DIMENSION, NUM_OF_THREADS| 构造器和说明 |
|---|
AbstractLocalDocumentBuilder() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.lucene.document.Field[] |
createDescriptorFields(java.awt.image.BufferedImage image)
Creates the feature fields for a Lucene Document without creating the document itself.
|
org.apache.lucene.document.Document |
createDocument(java.awt.image.BufferedImage image,
java.lang.String identifier)
Creates a new Lucene document from a BufferedImage.
|
org.apache.lucene.document.Field[] |
createLocalDescriptorFields(java.util.List<? extends LocalFeature> listOfLocalFeatures,
ExtractorItem extractorItem,
java.util.LinkedList<Cluster[]> listOfCodebooks)
Creates the Lucene Fiels with the vector representation of list of local features.
|
LocalFeatureExtractor |
extractLocalFeatures(java.awt.image.BufferedImage image,
LocalFeatureExtractor localFeatureExtractor)
Images are resized so as not to exceed the
DocumentBuilder.MAX_IMAGE_DIMENSION, after that
features are extracted using the given localFeatureExtractor. |
protected java.util.HashMap<ExtractorItem,java.util.LinkedList<Cluster[]>> extractorItems
protected java.util.HashMap<ExtractorItem,java.util.HashMap<java.lang.Integer,java.lang.String[]>> fieldNamesDictionary
protected AbstractAggregator aggregator
protected boolean docsCreated
public LocalFeatureExtractor extractLocalFeatures(java.awt.image.BufferedImage image, LocalFeatureExtractor localFeatureExtractor)
DocumentBuilder.MAX_IMAGE_DIMENSION, after that
features are extracted using the given localFeatureExtractor.image - is the imagelocalFeatureExtractor - selected local feature extractorpublic org.apache.lucene.document.Field[] createLocalDescriptorFields(java.util.List<? extends LocalFeature> listOfLocalFeatures, ExtractorItem extractorItem, java.util.LinkedList<Cluster[]> listOfCodebooks)
listOfLocalFeatures - is the list of local features.extractorItem - is the extractor that was used to extract the features.listOfCodebooks - is the list which can contain one or more codebooks to be used for the aggregation of the local features.public org.apache.lucene.document.Field[] createDescriptorFields(java.awt.image.BufferedImage image)
DocumentBuildercreateDescriptorFields 在接口中 DocumentBuilderimage - the image to analyze.public org.apache.lucene.document.Document createDocument(java.awt.image.BufferedImage image,
java.lang.String identifier)
DocumentBuildercreateDocument 在接口中 DocumentBuilderimage - the image to index. Cannot be NULL.identifier - an id for the image, for instance the filename or a URL. Can be NULL.