net.semanticmetadata.lire.impl
Class CorrelogramDocumentBuilder

java.lang.Object
  extended by net.semanticmetadata.lire.AbstractDocumentBuilder
      extended by net.semanticmetadata.lire.impl.CorrelogramDocumentBuilder
All Implemented Interfaces:
DocumentBuilder

public class CorrelogramDocumentBuilder
extends AbstractDocumentBuilder

This file is part of the Caliph and Emir project: http://www.SemanticMetadata.net
Date: 31.01.2006
Time: 23:02:52

Author:
Mathias Lux, mathias@juggle.at

Field Summary
static int MAXIMUM_DISTANCE
           
 AutoColorCorrelogram.Mode mode
           
 
Fields inherited from interface net.semanticmetadata.lire.DocumentBuilder
FIELD_NAME_AUTOCOLORCORRELOGRAM, FIELD_NAME_COLORLAYOUT, FIELD_NAME_EDGEHISTOGRAM, FIELD_NAME_IDENTIFIER, FIELD_NAME_SCALABLECOLOR, MAX_IMAGE_SIDE_LENGTH
 
Constructor Summary
CorrelogramDocumentBuilder(AutoColorCorrelogram.Mode mode)
          Creates a new CorrelogramDocumentBuilder using the AutoColorCorrelogram feature vector.
 
Method Summary
 org.apache.lucene.document.Document createDocument(java.awt.image.BufferedImage image, java.lang.String identifier)
          Creates a new Lucene document from a BufferedImage.
 
Methods inherited from class net.semanticmetadata.lire.AbstractDocumentBuilder
createDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXIMUM_DISTANCE

public static final int MAXIMUM_DISTANCE
See Also:
Constant Field Values

mode

public AutoColorCorrelogram.Mode mode
Constructor Detail

CorrelogramDocumentBuilder

public CorrelogramDocumentBuilder(AutoColorCorrelogram.Mode mode)
Creates a new CorrelogramDocumentBuilder using the AutoColorCorrelogram feature vector.

Parameters:
mode - defines the extraction mode. See
See Also:
DocumentBuilderFactory, AutoColorCorrelogram.AutoColorCorrelogram(net.semanticmetadata.lire.imageanalysis.AutoColorCorrelogram.Mode)
Method Detail

createDocument

public org.apache.lucene.document.Document createDocument(java.awt.image.BufferedImage image,
                                                          java.lang.String identifier)
Description copied from interface: DocumentBuilder
Creates a new Lucene document from a BufferedImage. The identifier can be used like an id (e.g. the file name or the url of the image)

Parameters:
image - the image to index. Cannot be NULL.
identifier - an id for the image, for instance the filename or an URL. Can be NULL.
Returns:
a Lucene Document containing the indexed image.