org.imageterrier.basictools
Class BasicSearcher

java.lang.Object
  extended by org.imageterrier.basictools.BasicSearcher

public class BasicSearcher
extends Object


Field Summary
protected  org.openimaj.ml.clustering.Cluster<?,?> cluster
           
protected  org.terrier.structures.Index index
           
 
Constructor Summary
BasicSearcher(BasicSearcherOptions options)
           
 
Method Summary
 void displayImage(String title, File... images)
           
 void displayResults(String title, org.terrier.matching.ResultSet rs, int limit)
           
 String getDocumentId(int docno)
           
 File getFile(int docid)
           
 String getPath(int docid)
           
 org.openimaj.ml.clustering.Cluster<?,?> getQuantizer()
           
static void main(String[] args)
           
 void printResultSet(org.terrier.matching.ResultSet rs, int limit)
           
 org.terrier.matching.ResultSet search(File imageFile, int[] coords, BasicSearcherOptions options)
           
<T extends org.openimaj.feature.local.quantised.QuantisedLocalFeature<?>>
org.terrier.matching.ResultSet
search(QLFDocument<T> query, BasicSearcherOptions options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

protected org.terrier.structures.Index index

cluster

protected org.openimaj.ml.clustering.Cluster<?,?> cluster
Constructor Detail

BasicSearcher

public BasicSearcher(BasicSearcherOptions options)
Method Detail

search

public <T extends org.openimaj.feature.local.quantised.QuantisedLocalFeature<?>> org.terrier.matching.ResultSet search(QLFDocument<T> query,
                                                                                                                       BasicSearcherOptions options)

getDocumentId

public String getDocumentId(int docno)

getPath

public String getPath(int docid)
               throws IOException
Throws:
IOException

getFile

public File getFile(int docid)
             throws IOException
Throws:
IOException

getQuantizer

public org.openimaj.ml.clustering.Cluster<?,?> getQuantizer()

search

public org.terrier.matching.ResultSet search(File imageFile,
                                             int[] coords,
                                             BasicSearcherOptions options)
                                      throws Exception
Throws:
Exception

printResultSet

public void printResultSet(org.terrier.matching.ResultSet rs,
                           int limit)
                    throws IOException
Throws:
IOException

displayResults

public void displayResults(String title,
                           org.terrier.matching.ResultSet rs,
                           int limit)
                    throws IOException
Throws:
IOException

displayImage

public void displayImage(String title,
                         File... images)

main

public static void main(String[] args)
                 throws Exception
Parameters:
args -
Throws:
Exception


Copyright © 2011 The University of Southampton. All Rights Reserved.