codebook_generation
Class CodebookGeneration

java.lang.Object
  extended by codebook_generation.CodebookGeneration

public class CodebookGeneration
extends java.lang.Object

This class creates a codebook from a set of local features using a slightly modified (to produce some additional output) version of Weka's SimpleKMeans class. The local descriptors should be stored in an arff or csv formated file.

Author:
Eleftherios Spyromitros-Xioufis

Field Summary
static double power
          The power to use when power-normalization is applied.
 
Constructor Summary
CodebookGeneration()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

power

public static final double power
The power to use when power-normalization is applied.

See Also:
Constant Field Values
Constructor Detail

CodebookGeneration

public CodebookGeneration()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args - [0] path to the (arff or csv formated) file containing a set the local features (use backslashes).
args - [1] the number of clusters to create (e.g. 64).
args - [2] the maximum number of k-means iterations (e.g. 100).
args - [3] the seed given to k-means (e.g. 1).
args - [4] the number of execution slots to use ( >1 = parallel execution).
args - [5] the type of normalization to apply on the local features (no / l2 / power+l2).
Throws:
java.lang.Exception