utilities
Class IndexTransformation

java.lang.Object
  extended by utilities.IndexTransformation

public class IndexTransformation
extends java.lang.Object

This class can be used for transforming an existing index (BDB store) of PCA-projected VLAD vectors into a different type. The following transformations are supported:

  1. Transform into an index of lower-dimensional PCA-projected VLAD vectors by truncating and re-normalizing.
  2. Transform into an ADC index using the supplied product quantizer and parameters.
  3. Transform into an IVFADC index using the supplied coarse and product quantizers and parameters.

Author:
Eleftherios Spyromitros-Xioufis

Constructor Summary
IndexTransformation()
           
 
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
 

Constructor Detail

IndexTransformation

public IndexTransformation()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args - [0] Full path to the original index.
args - [1] Full path to the target index.
args - [2] Length of the original index's vectors.
args - [3] Length of the target index's vectors.
args - [4] Number of vectors to transform.
args - [5] The type of transformation to be applied, one of small/adc/ivfadc.

The following parameters are used only if adc transformation is selected.

args - [6] Full path to the product quantizer file.
args - [7] m parameter (number of subquantizers) of the product quantizer.
args - [8] k_s parameter (centroids of each subquantizer) of the product quantizer.
args - [9] whether to perform random orthogonal transformation.

The following parameters are used only if ivfadc transformation is selected.

args - [10] Full path to the coarse index.
args - [11] k_c parameter (number of centroids) of the coarse quantizer.
Throws:
java.lang.Exception