QueryProcessor.Utils
Class RandomAccess

java.lang.Object
  extended by QueryProcessor.Utils.RandomAccess

public class RandomAccess
extends java.lang.Object

Class for the management of random accesses to image features.


Field Summary
protected static long time
          The time (in milliseconds) spent for random accesses
 
Constructor Summary
RandomAccess()
           
 
Method Summary
static Matrix execute(Image query, Image image)
          Computes all the region distances between a DB image and the query image.
static int getCount()
          Returns the number of performed random accesses.
static int getDistances()
          Returns the number of computed distances.
static long getTime()
          Returns the time needed to perform random accesses.
static void reset()
          Resets all the counters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

protected static long time
The time (in milliseconds) spent for random accesses

Constructor Detail

RandomAccess

public RandomAccess()
Method Detail

getTime

public static long getTime()
Returns the time needed to perform random accesses.

Returns:
The time needed to perform random accesses (in milliseconds).

getCount

public static int getCount()
Returns the number of performed random accesses.

Returns:
The number of performed random accesses.

getDistances

public static int getDistances()
Returns the number of computed distances.

Returns:
The number of computed distances.

reset

public static void reset()
Resets all the counters.


execute

public static Matrix execute(Image query,
                             Image image)
Computes all the region distances between a DB image and the query image.

Parameters:
query - The query image.
image - The DB image.
Returns:
Matrix containing distances between regions of the two images.