IndexManager
Class ImgIndexManager

java.lang.Object
  extended by IndexManager.ImgIndexManager
Direct Known Subclasses:
ImgIndexManagerMtree

public abstract class ImgIndexManager
extends java.lang.Object

Abstract class for the management of the image index.


Constructor Summary
ImgIndexManager()
           
 
Method Summary
abstract  boolean create(java.lang.String featureFile)
          Creates a new index from a file containing image features.
abstract  QuerySF createQuery(Image image)
          Creates a new k-NN query based on the given image using this index.
abstract  boolean delete(Image image)
          Deletes an image from the index.
abstract  boolean insert(Image image)
          Inserts a new image in the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImgIndexManager

public ImgIndexManager()
Method Detail

createQuery

public abstract QuerySF createQuery(Image image)
Creates a new k-NN query based on the given image using this index.

Parameters:
image - The query image.
Returns:
A new k-NN query.

create

public abstract boolean create(java.lang.String featureFile)
Creates a new index from a file containing image features.

Parameters:
featureFile - Absolute path of the features file.
Returns:
true if the index was successfully created, false otherwise.

insert

public abstract boolean insert(Image image)
Inserts a new image in the index.

Parameters:
image - Image to be inserted.
Returns:
true if the image was successfully inserted, false otherwise.

delete

public abstract boolean delete(Image image)
Deletes an image from the index.

Parameters:
image - Image to be deleted.
Returns:
true if the image was successfully deleted, false otherwise.