|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvector_aggregation.AbstractFeatureAggregator
vector_aggregation.VladAggregator
public class VladAggregator
This class computes raw VLAD vectors. The produced vectors should be power and L2 normalized afterwards.
Field Summary |
---|
Fields inherited from class vector_aggregation.AbstractFeatureAggregator |
---|
codebook, descriptorLength, numCentroids, vectorLength |
Constructor Summary | |
---|---|
VladAggregator(double[][] codebook)
The default constructor calls the super constructor. |
Method Summary | |
---|---|
protected double[] |
aggregateInternal(java.util.ArrayList<double[]> descriptors)
Takes as input an ArrayList of double arrays which contains the set of local descriptors for an image. |
protected double[] |
aggregateInternal(double[][] descriptors)
Takes as input 2-dimensional double array which contains the set of local descriptors for an image. |
int |
getVectorLength()
Should compute and return the length of the generated vector. |
Methods inherited from class vector_aggregation.AbstractFeatureAggregator |
---|
aggregate, aggregate, computeKNearestCentroids, computeNearestCentroid, computeNearestCentroidIndexAndDistance, getDescriptorLength, getNumCentroids, readCodebookFile, setDescriptorLength, setNumCentroids |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VladAggregator(double[][] codebook)
codebook
- Method Detail |
---|
protected double[] aggregateInternal(double[][] descriptors)
aggregateInternal
in class AbstractFeatureAggregator
descriptors
-
java.lang.Exception
protected double[] aggregateInternal(java.util.ArrayList<double[]> descriptors)
aggregateInternal
in class AbstractFeatureAggregator
descriptors
-
java.lang.Exception
public int getVectorLength()
AbstractFeatureAggregator
getVectorLength
in class AbstractFeatureAggregator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |