|Constructor and Description|
|Modifier and Type||Method and Description|
Gets the selected NNSeeeker.
Selects and initializes an
public void selectNNSeeker(String nnseekerID, String lshID, List<Double> vocabulary, AbstractDistance distance, int maxResults, double squaredSigma)
AbstractNNSeekerobject for nearest neighbor search. Must be called before any other use of this class methods. Currently supported Nearest Neighbor Seekers :
Names.NN_SEARCH_EXAUSTIVE_HARD: exact nearest neighbor seeker using hard visual word assignment,
Names.NN_SEARCH_EXAUSTIVE_SOFT: exact nearest neighbor seeker using soft visual word assignment,
Names.NN_SEARCH_E2LSH_HARD: approximate neighbor seeker using LSH and hard visual word assignment,
nnseekerID- the method ID of the seeker. See above for currently supported NNSeekers.
lshID- the path of the LSH index file. Applicable only to approximate nearest neighbor seekers that use LSH.
vocabulary- the list of vectors that will serve as the visual words
AbstractDistanceobject to be used for assigning the local descriptors to the closest visual word
maxResults- the maximum number of visual words that each local descriptor can be assigned to. Applicable only to soft assignment
squaredSigma- the squared sigma parameter. Applicable only to soft assignment
public AbstractNNSeeker getNNseeker()
selectNNSeeker(String, String, List, AbstractDistance, int, double)must be called before calling this method.
public void setNNseeker(AbstractNNSeeker nnseeker)
Copyright © 2014. All rights reserved.