org.imageterrier.basictools
Class BasicSearcher
java.lang.Object
org.imageterrier.basictools.BasicSearcher
public class BasicSearcher
- extends Object
|
Field Summary |
protected org.openimaj.ml.clustering.Cluster<?,?> |
cluster
|
protected org.terrier.structures.Index |
index
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
index
protected org.terrier.structures.Index index
cluster
protected org.openimaj.ml.clustering.Cluster<?,?> cluster
BasicSearcher
public BasicSearcher(BasicSearcherOptions options)
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.