QueryProcessor.SF
Class QuerySFSequential

java.lang.Object
  extended by QueryProcessor.Query
      extended by QueryProcessor.SF.QuerySF
          extended by QueryProcessor.SF.QuerySFSequential

public class QuerySFSequential
extends QuerySF

Solves a query with a scoring function by sequentially accessing all DB images.


Field Summary
protected  FeatureManager fm
          The feature manager to be used
 
Fields inherited from class QueryProcessor.SF.QuerySF
sf
 
Fields inherited from class QueryProcessor.Query
q
 
Constructor Summary
QuerySFSequential(Image q, ScoringFunction sf, FeatureManager fm)
          Basic constructor.
 
Method Summary
 java.util.Vector<ScoredResultImage> kNN(int k)
          Computes the result of a k-NN query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fm

protected FeatureManager fm
The feature manager to be used

Constructor Detail

QuerySFSequential

public QuerySFSequential(Image q,
                         ScoringFunction sf,
                         FeatureManager fm)
Basic constructor.

Parameters:
q - Query image.
sf - Scoring function to be used.
fm - The feature manager to be used.
Method Detail

kNN

public java.util.Vector<ScoredResultImage> kNN(int k)
Computes the result of a k-NN query

Specified by:
kNN in class QuerySF
Parameters:
k - Number of requested results.
Returns:
Vector of query results.