net.semanticmetadata.lire.impl
Class SimpleImageSearcher
java.lang.Object
net.semanticmetadata.lire.AbstractImageSearcher
net.semanticmetadata.lire.impl.SimpleImageSearcher
- All Implemented Interfaces:
- ImageSearcher
public class SimpleImageSearcher
- extends AbstractImageSearcher
This file is part of the Caliph and Emir project: http://www.SemanticMetadata.net
Date: 01.02.2006
Time: 00:17:02
- Author:
- Mathias Lux, mathias@juggle.at
|
Method Summary |
ImageDuplicates |
findDuplicates(org.apache.lucene.index.IndexReader reader)
Identifies duplicates in the database. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleImageSearcher
public SimpleImageSearcher(int maxHits)
SimpleImageSearcher
public SimpleImageSearcher(int maxHits,
float colorHistogramWeight,
float colorDistributionWeight,
float textureWeight)
search
public ImageSearchHits search(java.awt.image.BufferedImage image,
org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
- Description copied from interface:
ImageSearcher
- Searches for images similar to the given image.
- Parameters:
image - the example image to search for.reader - the IndexReader which is used to dsearch through the images.
- Returns:
- a sorted list of hits.
- Throws:
java.io.IOException - in case exceptions in the reader occurs
search
public ImageSearchHits search(org.apache.lucene.document.Document doc,
org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
- Description copied from interface:
ImageSearcher
- Searches for images similar to the given image, defined by the Document from the index.
- Parameters:
doc - the example image to search for.reader - the IndexReader which is used to dsearch through the images.
- Returns:
- a sorted list of hits.
- Throws:
java.io.IOException - in case exceptions in the reader occurs
findDuplicates
public ImageDuplicates findDuplicates(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
- Description copied from interface:
ImageSearcher
- Identifies duplicates in the database.
- Parameters:
reader - the IndexReader which is used to dsearch through the images.
- Returns:
- a sorted list of hits.
- Throws:
java.io.IOException - in case the image could not be read from stream.