IndexManager
Class ImgIndexManagerMtree

java.lang.Object
  extended by IndexManager.ImgIndexManager
      extended by IndexManager.ImgIndexManagerMtree

public class ImgIndexManagerMtree
extends ImgIndexManager

Class for the management of the image index using M-tree.


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

Constructor Detail

ImgIndexManagerMtree

public ImgIndexManagerMtree(java.lang.String filename)
Basic constructor.

Parameters:
filename - The absolute path of the file containing the M-tree index.
Method Detail

createQuery

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

Specified by:
createQuery in class ImgIndexManager
Parameters:
image - The query image.
Returns:
A new k-NN query.

create

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

Specified by:
create in class ImgIndexManager
Parameters:
featureFile - Absolute path of the features file.
Returns:
true if the index was successfully created, false otherwise.

insert

public boolean insert(Image image)
Inserts a new image in the M-tree index.

Specified by:
insert in class ImgIndexManager
Parameters:
image - Image to be inserted.
Returns:
true if the image was successfully inserted, false otherwise.

delete

public boolean delete(Image image)
Deletes an image from the M-tree index.

Specified by:
delete in class ImgIndexManager
Parameters:
image - Image to be deleted.
Returns:
true if the image was successfully deleted, false otherwise.