|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.imageterrier.structures.indexing.QuantiserIndex
public class QuantiserIndex
An index structure for an vector quantiser (an OpenIMAJ Cluster) which
can be used to quantise features into visual terms.
| Constructor Summary | |
|---|---|
QuantiserIndex(org.openimaj.ml.clustering.Cluster<?,?> quantiser)
Construct a QuantiserIndex from an existing quantiser |
|
QuantiserIndex(String path,
String prefix)
Construct a QuantiserIndex from a file |
|
| Method Summary | |
|---|---|
org.openimaj.ml.clustering.Cluster<?,?> |
getQuantiser()
Get the underlying vector quantiser |
void |
load(File file)
Load a quantiser from a file |
void |
save(File file)
Save the quantiser to the specified file |
void |
save(org.terrier.structures.Index index)
Save the QuantiserIndex to the specified index |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuantiserIndex(String path,
String prefix)
throws IOException
path - the path to the fileprefix - the prefix of the file name
IOExceptionpublic QuantiserIndex(org.openimaj.ml.clustering.Cluster<?,?> quantiser)
quantiser - the quantiser| Method Detail |
|---|
public void load(File file)
throws IOException
file -
IOException
public void save(org.terrier.structures.Index index)
throws IOException
index -
IOException
public void save(File file)
throws IOException
file - the file to save to
IOExceptionpublic org.openimaj.ml.clustering.Cluster<?,?> getQuantiser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||