public class VLADIndexerDataBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VLADIndexerDataBuilder.StandardPostProcesses
Feature post-processing options
|
Constructor and Description |
---|
VLADIndexerDataBuilder(LocalFeatureExtractor<LocalFeature<?,?>,MBFImage> extractor,
List<File> localFeatures,
boolean normalise,
int numVladCentroids,
int numIterations,
int numPcaDims,
int numPqIterations,
int numPqAssigners,
float sampleProp,
float pcaSampleProp,
Function<List<? extends LocalFeature<?,?>>,List<FloatLocalFeatureAdaptor<?>>> postProcess)
Construct a
VLADIndexerDataBuilder with the given parameters |
Modifier and Type | Method and Description |
---|---|
VLADIndexerData |
buildIndexerData()
Build the
VLADIndexerData using the information provided at
construction time. |
VLAD<float[]> |
buildVLAD()
Build a
VLAD using the information provided at construction time. |
public VLADIndexerDataBuilder(LocalFeatureExtractor<LocalFeature<?,?>,MBFImage> extractor, List<File> localFeatures, boolean normalise, int numVladCentroids, int numIterations, int numPcaDims, int numPqIterations, int numPqAssigners, float sampleProp, float pcaSampleProp, Function<List<? extends LocalFeature<?,?>>,List<FloatLocalFeatureAdaptor<?>>> postProcess)
VLADIndexerDataBuilder
with the given parametersextractor
- the local feature extractor used to generate the input
featureslocalFeatures
- a list of file locations of the files containing the input
local features (one per image)normalise
- should the resultant VLAD features be l2 normalised?numVladCentroids
- the number of centroids for VLAD (~64)numIterations
- the number of clustering iterations (~100)numPcaDims
- the number of dimensions to project down to using PCA (~128
for normal SIFT)numPqIterations
- the number of iterations for clustering the product quantisers
(~100)numPqAssigners
- the number of product quantiser assigners (~16)sampleProp
- the proportion of features to sample for the clustering the
VLAD centroidspcaSampleProp
- the proportion of images to sample for computing the PCA basispostProcess
- the post-processing to apply to the raw features before input
to VLADpublic VLADIndexerData buildIndexerData() throws IOException
VLADIndexerData
using the information provided at
construction time. The following steps are taken:
VLADIndexerData
object is created
VLADIndexerData
objectIOException