|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFeature.WrapperFeature
public abstract class WrapperFeature
Implements an utility class for managing image features.
| Field Summary | |
|---|---|
protected FeatureInterface |
feat
The Feature Interface |
protected long |
timeImgRetrieve
Time spent in retrieving images from the DB |
| Constructor Summary | |
|---|---|
WrapperFeature()
|
|
| Method Summary | |
|---|---|
Document.ImageID |
extractImage(java.lang.String url)
Given an image URL retrieves its ID (if the image is in the DB) or stores it (and its features) in the DB. |
double |
getDistance(Document.ImageID id1,
Document.ImageID id2)
Computes the distance between two images, given their IDs. |
FeatureManager.FeatureManager |
getFM()
Returns the Feature Manager in use. |
java.lang.String |
getImageURL(Document.ImageID id)
Retrieves the URL of an image with a given ID. |
RawDataManager |
getRDM()
Returns the Raw Data Manager in use. |
protected java.util.Vector<Document.ImageID> |
getResultIDs(java.util.Vector<QueryProcessor.SF.ScoredResultImage> v)
Retrieves the IDs of images in the result of a query. |
long |
getTime()
Returns the time needed to retrieve images from the DB. |
void |
resetTime()
Resets the time needed to retrieve images from the DB. |
Document.Image |
retrieveImage(Document.ImageID id)
Given an image ID retrieves its features from the DB. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FeatureInterface feat
protected long timeImgRetrieve
| Constructor Detail |
|---|
public WrapperFeature()
| Method Detail |
|---|
public long getTime()
public void resetTime()
public Document.Image retrieveImage(Document.ImageID id)
id - ID of the image to be searched.
null if such image is not found.public Document.ImageID extractImage(java.lang.String url)
url - URL of the image to be searched/stored.
public double getDistance(Document.ImageID id1,
Document.ImageID id2)
id1 - ID of the first image.id2 - ID of the second image.
protected java.util.Vector<Document.ImageID> getResultIDs(java.util.Vector<QueryProcessor.SF.ScoredResultImage> v)
v - Vector of query result images.
public java.lang.String getImageURL(Document.ImageID id)
id - ID of the image to be searched.
null otherwise.public FeatureManager.FeatureManager getFM()
public RawDataManager getRDM()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||