public class GenericDocValuesImageSearcher extends AbstractImageSearcher
| 限定符和类型 | 字段和说明 |
|---|---|
protected LireFeature |
cachedInstance |
protected java.util.TreeSet<SimpleResult> |
docs |
protected ExtractorItem |
extractorItem |
protected java.lang.String |
fieldName |
protected java.util.logging.Logger |
logger |
protected double |
maxDistance |
protected int |
maxHits |
protected org.apache.lucene.index.IndexReader |
reader |
protected boolean |
useSimilarityScore |
| 构造器和说明 |
|---|
GenericDocValuesImageSearcher(int maxHits,
java.lang.Class<? extends GlobalFeature> globalFeature,
org.apache.lucene.index.IndexReader reader) |
| 限定符和类型 | 方法和说明 |
|---|---|
ImageDuplicates |
findDuplicates(org.apache.lucene.index.IndexReader reader)
Identifies duplicates in the database.
|
protected double |
findSimilar(LireFeature lireFeature) |
protected void |
init() |
ImageSearchHits |
search(java.awt.image.BufferedImage image,
org.apache.lucene.index.IndexReader reader)
Searches for images similar to the given image.
|
ImageSearchHits |
search(org.apache.lucene.document.Document doc,
org.apache.lucene.index.IndexReader reader)
Searches for images similar to the given image, defined by the Document from the index.
|
ImageSearchHits |
search(int doc) |
java.lang.String |
toString() |
relevanceFeedback, searchprotected java.util.logging.Logger logger
protected java.lang.String fieldName
protected LireFeature cachedInstance
protected ExtractorItem extractorItem
protected org.apache.lucene.index.IndexReader reader
protected int maxHits
protected java.util.TreeSet<SimpleResult> docs
protected double maxDistance
protected boolean useSimilarityScore
public GenericDocValuesImageSearcher(int maxHits,
java.lang.Class<? extends GlobalFeature> globalFeature,
org.apache.lucene.index.IndexReader reader)
protected void init()
protected double findSimilar(LireFeature lireFeature) throws java.io.IOException
lireFeature - java.io.IOExceptionpublic ImageSearchHits search(int doc) throws java.io.IOException
java.io.IOExceptionpublic ImageSearchHits search(org.apache.lucene.document.Document doc, org.apache.lucene.index.IndexReader reader) throws java.io.IOException
ImageSearcherdoc - the example image to search for.reader - the IndexReader which is used to dsearch through the images.java.io.IOException - in case exceptions in the reader occurspublic ImageSearchHits search(java.awt.image.BufferedImage image, org.apache.lucene.index.IndexReader reader) throws java.io.IOException
ImageSearcherimage - the example image to search for.reader - the IndexReader which is used to search through the images.java.io.IOException - in case exceptions in the reader occurspublic ImageDuplicates findDuplicates(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
ImageSearcherreader - the IndexReader which is used to dsearch through the images.java.io.IOException - in case the image could not be read from stream.public java.lang.String toString()
toString 在类中 java.lang.Object