public class FastOpponentImageSearcher extends AbstractImageSearcher
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.util.TreeSet<SimpleResult> |
docs |
protected java.util.logging.Logger |
logger |
| 构造器和说明 |
|---|
FastOpponentImageSearcher(int maxHits) |
| 限定符和类型 | 方法和说明 |
|---|---|
ImageDuplicates |
findDuplicates(org.apache.lucene.index.IndexReader reader)
Identifies duplicates in the database.
|
protected double |
findSimilar(org.apache.lucene.index.IndexReader reader,
GlobalFeature globalFeature) |
protected double |
getDistance(org.apache.lucene.document.Document document,
byte[] histogram)
Main similarity method called for each and every document in the index.
|
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.
|
java.lang.String |
toString() |
relevanceFeedback, searchprotected java.util.logging.Logger logger
protected java.util.TreeSet<SimpleResult> docs
public 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 occursprotected double findSimilar(org.apache.lucene.index.IndexReader reader,
GlobalFeature globalFeature)
throws java.io.IOException
reader - globalFeature - java.io.IOExceptionprotected double getDistance(org.apache.lucene.document.Document document,
byte[] histogram)
document - histogram - public 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 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