DATATYPE
- Primitive array type of the ArrayFeatureVector
s used by
the LocalFeature
s that will be processed.DISTANCE
- Primitive array datatype for recording distances between points
and cluster centroidspublic class SoftBagOfVisualWords<DATATYPE,DISTANCE> extends Object implements VectorAggregator<ArrayFeatureVector<DATATYPE>,SparseDoubleFV>
SoftAssigner
with an associated codebook. Soft-assignment
assigns a single feature to multiple visual words, usually with some
weighting for each word.Constructor and Description |
---|
SoftBagOfVisualWords(SoftAssigner<DATATYPE,DISTANCE> assigner)
Construct with the given assigner.
|
Modifier and Type | Method and Description |
---|---|
SparseDoubleFV |
aggregate(List<? extends LocalFeature<?,? extends ArrayFeatureVector<DATATYPE>>> features)
Aggregate the given features into a vector.
|
SparseDoubleFV |
aggregateVectors(List<? extends ArrayFeatureVector<DATATYPE>> features)
Aggregate the given features into a vector.
|
SparseDoubleFV |
aggregateVectorsRaw(List<DATATYPE> features)
Aggregate the given features into a vector.
|
public SoftBagOfVisualWords(SoftAssigner<DATATYPE,DISTANCE> assigner)
assigner
- the assignerpublic SparseDoubleFV aggregate(List<? extends LocalFeature<?,? extends ArrayFeatureVector<DATATYPE>>> features)
VectorAggregator
aggregate
in interface VectorAggregator<ArrayFeatureVector<DATATYPE>,SparseDoubleFV>
features
- the features to aggregatepublic SparseDoubleFV aggregateVectors(List<? extends ArrayFeatureVector<DATATYPE>> features)
VectorAggregator
aggregateVectors
in interface VectorAggregator<ArrayFeatureVector<DATATYPE>,SparseDoubleFV>
features
- the features to aggregatepublic SparseDoubleFV aggregateVectorsRaw(List<DATATYPE> features)
features
- the features to aggregate