|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Feature.WrapperFeature Feature.WrapperFeatureWindsurfMySQL
public class WrapperFeatureWindsurfMySQL
Implements an utility class for managing Windsurf image features over a MySQL DB.
Field Summary |
---|
Fields inherited from class Feature.WrapperFeature |
---|
feat, timeImgRetrieve |
Constructor Summary | |
---|---|
WrapperFeatureWindsurfMySQL(java.lang.String propFile,
java.lang.String tempPath,
java.lang.String relPath)
Initializes the Feature Manager, the Raw Data Manager and the Feature Interface. |
Method Summary | |
---|---|
void |
close()
Closes all connections and deletes active objects. |
Document.ImageID |
getID(java.lang.String url)
Checks whether an image with a given URL is contained in the feature DB. |
java.lang.String |
getImagePath(Document.ImageID id)
Retrieves the path of an image with a given ID. |
java.util.Vector<QueryProcessor.SF.ScoredResultImage> |
kNNQuery(Document.ImageID id,
int k,
QueryProcessor.SF.ScoringFunction.ScoringFunction sf)
Performs a k-NN query for a given image using a sequential scan. |
Document.Region |
retrieveRegion(Document.ImageID id)
Given a region ID retrieves its features from the DB. |
Methods inherited from class Feature.WrapperFeature |
---|
extractImage, getDistance, getFM, getImageURL, getRDM, getResultIDs, getTime, resetTime, retrieveImage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WrapperFeatureWindsurfMySQL(java.lang.String propFile, java.lang.String tempPath, java.lang.String relPath)
propFile
- Path of the Properties file Properties used to store informations about the MySQL DB.tempPath
- Directory used for storing temporary index files.relPath
- Path used as the base directory containing image files.Method Detail |
---|
public void close()
public Document.Region retrieveRegion(Document.ImageID id)
id
- ID of the region to be searched.
null
if such region is not found.public java.lang.String getImagePath(Document.ImageID id)
id
- ID of the image to be searched.
null
otherwise.public Document.ImageID getID(java.lang.String url)
url
- URL of the image to be searched.
public java.util.Vector<QueryProcessor.SF.ScoredResultImage> kNNQuery(Document.ImageID id, int k, QueryProcessor.SF.ScoringFunction.ScoringFunction sf)
id
- ID of the query image.k
- Number of requested results.sf
- Scoring function to be used.
ScoredResultImage
s or null
if the query image does not exist.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |