|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectIndex.IndexInterface
public class IndexInterface
Implements the interface for managing indices.
| Constructor Summary | |
|---|---|
IndexInterface(java.lang.String imageIndex,
java.lang.String regionIndex)
Basic constructor. |
|
| Method Summary | |
|---|---|
boolean |
closeCursorImg()
Closes an image cursor. |
boolean |
closeCursorsReg()
Closes the region cursor. |
boolean |
createImageCursor(Document.Image i)
Creates a cursor over a query image. |
boolean |
createIndex(boolean isImage,
java.lang.String file,
FeatureManager.FeatureManager fm)
Creates a new index using feature stored in a DB. |
boolean |
createIndexBIN(boolean isImage,
java.lang.String file)
Creates a new index using feature stored in a DB. |
boolean |
createIndexTXT(boolean isImage,
java.lang.String file,
FeatureManager.FeatureManager fm)
Creates the temporary text file to be used for creating an index. |
boolean |
createRegionCursors(Document.Image i)
Creates cursors over regions of a query image. |
boolean |
deleteImage(Document.Image i)
Deletes an image from the image index. |
boolean |
deleteRegion(Document.ImageID id,
Document.Region r)
Deletes a region from the region index. |
QueryProcessor.SF.ScoredResultImage |
getNextCursorsReg(int index)
Retrieves the next result from a given region cursor. |
QueryProcessor.SF.ScoredResultImage |
getNextImageCursor()
Retrieves the next result from an image cursor. |
IndexManager.ImgIndexManager |
imageIndexManager()
Creates and returns a Manager for an image index. |
boolean |
insertNewImage(Document.Image i)
Inserts a new image in the image index. |
boolean |
insertNewRegion(Document.ImageID id,
Document.Region r)
Inserts a new region in the region index. |
java.util.Vector<QueryProcessor.SF.ScoredResultImage> |
kNNImageQuery(Document.Image i,
int k)
Performs a k-NN query for a given image. |
java.util.Vector<QueryProcessor.SF.ScoredResultImage> |
kNNRegionQuery(Document.Region r,
int k)
Performs a k-NN query for a given region. |
java.util.Vector<QueryProcessor.SF.ScoredResultImage> |
rangeImageQuery(Document.Image i,
double radius)
Performs a range query for a given image. |
java.util.Vector<QueryProcessor.SF.ScoredResultImage> |
rangeQueryReg(Document.Region r,
double radius)
Performs a range query for a given region. |
IndexManager.RegIndexManager |
regionIndexManager()
Creates and returns a Manager for a region index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexInterface(java.lang.String imageIndex,
java.lang.String regionIndex)
imageIndex - Path of image index.regionIndex - Path of region index.| Method Detail |
|---|
public IndexManager.ImgIndexManager imageIndexManager()
public IndexManager.RegIndexManager regionIndexManager()
public java.util.Vector<QueryProcessor.SF.ScoredResultImage> kNNImageQuery(Document.Image i,
int k)
i - Query image.k - Number of requested results.
ScoredResultImages.
public java.util.Vector<QueryProcessor.SF.ScoredResultImage> rangeImageQuery(Document.Image i,
double radius)
i - Query image.radius - Maximum distance value.
ScoredResultImages.
public java.util.Vector<QueryProcessor.SF.ScoredResultImage> kNNRegionQuery(Document.Region r,
int k)
r - Query region.k - Number of requested results.
ScoredResultImages.
public java.util.Vector<QueryProcessor.SF.ScoredResultImage> rangeQueryReg(Document.Region r,
double radius)
r - Query region.radius - Maximum distance value.
ScoredResultImages.
public boolean createIndex(boolean isImage,
java.lang.String file,
FeatureManager.FeatureManager fm)
isImage - If true creates a image index, otherwise creates a region index.file - Path of the temporary text file to be used for creating the index.fm - Feature Manager for accessing features.
true if the index was successfully created, false otherwise.
public boolean createIndexTXT(boolean isImage,
java.lang.String file,
FeatureManager.FeatureManager fm)
isImage - If true the file contains image features, otherwise it contains region features.file - Path of the temporary text file to be used for creating the index.fm - Feature Manager for accessing features.
true if the text file was successfully created, false otherwise.
public boolean createIndexBIN(boolean isImage,
java.lang.String file)
isImage - If true creates a image index, otherwise creates a region index.file - Path of the temporary text file to be used for creating the index.
true if the index was successfully created, false otherwise.public boolean insertNewImage(Document.Image i)
i - The image to be inserted.
true if the image was successfully inserted, false otherwise.public boolean deleteImage(Document.Image i)
i - The image to be deleted.
true if the image was successfully deleted, false otherwise.
public boolean insertNewRegion(Document.ImageID id,
Document.Region r)
id - ID of the region to be inserted.r - The region to be inserted.
true if the region was successfully inserted, false otherwise.
public boolean deleteRegion(Document.ImageID id,
Document.Region r)
id - ID of the region to be deleted.r - The region to be deleted.
true if the region was successfully deleted, false otherwise.public boolean createImageCursor(Document.Image i)
i - The query image.
true if the cursor was successfully created, false otherwise.public QueryProcessor.SF.ScoredResultImage getNextImageCursor()
public boolean closeCursorImg()
true if the cursor was successfully closed, false otherwise.public boolean createRegionCursors(Document.Image i)
i - The query image.
true if the cursors were successfully created, false otherwise.public QueryProcessor.SF.ScoredResultImage getNextCursorsReg(int index)
index - The cursor that should perform the sorted access.
public boolean closeCursorsReg()
true if the cursors were successfully closed, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||