#include <autotuned_index.h>
Inherits cvflann::NNIndex< Distance >.
Public Types | |
typedef Distance::ElementType | ElementType |
typedef Distance::ResultType | DistanceType |
Public Member Functions | |
AutotunedIndex (const Matrix< ElementType > &inputData, const IndexParams ¶ms=AutotunedIndexParams(), Distance d=Distance()) | |
AutotunedIndex (const AutotunedIndex &) | |
AutotunedIndex & | operator= (const AutotunedIndex &) |
virtual | ~AutotunedIndex () |
virtual void | buildIndex () |
virtual void | saveIndex (FILE *stream) |
virtual void | loadIndex (FILE *stream) |
virtual void | findNeighbors (ResultSet< DistanceType > &result, const ElementType *vec, const SearchParams &searchParams) |
IndexParams | getParameters () const |
SearchParams | getSearchParameters () const |
float | getSpeedup () const |
virtual size_t | size () const |
virtual size_t | veclen () const |
virtual int | usedMemory () const |
virtual flann_algorithm_t | getType () const |
virtual void | knnSearch (const Matrix< ElementType > &queries, Matrix< int > &indices, Matrix< DistanceType > &dists, int knn, const SearchParams ¶ms) |
Perform k-nearest neighbor search. More... | |
virtual int | radiusSearch (const Matrix< ElementType > &query, Matrix< int > &indices, Matrix< DistanceType > &dists, float radius, const SearchParams ¶ms) |
Perform radius search. More... | |
typedef Distance::ElementType cvflann::AutotunedIndex< Distance >::ElementType |
typedef Distance::ResultType cvflann::AutotunedIndex< Distance >::DistanceType |
cvflann::AutotunedIndex< Distance >::AutotunedIndex | ( | const Matrix< ElementType > & | inputData, |
const IndexParams & | params = AutotunedIndexParams() , |
||
Distance | d = Distance() |
||
) |
cvflann::AutotunedIndex< Distance >::AutotunedIndex | ( | const AutotunedIndex< Distance > & | ) |
|
virtual |
AutotunedIndex& cvflann::AutotunedIndex< Distance >::operator= | ( | const AutotunedIndex< Distance > & | ) |
|
virtual |
Method responsible with building the index.
Implements cvflann::NNIndex< Distance >.
|
virtual |
Saves the index to a stream
Implements cvflann::NNIndex< Distance >.
|
virtual |
Loads the index from a stream
Implements cvflann::NNIndex< Distance >.
|
virtual |
Method that searches for nearest-neighbors
Implements cvflann::NNIndex< Distance >.
|
virtual |
Implements cvflann::NNIndex< Distance >.
SearchParams cvflann::AutotunedIndex< Distance >::getSearchParameters | ( | ) | const |
float cvflann::AutotunedIndex< Distance >::getSpeedup | ( | ) | const |
|
virtual |
Number of features in this index.
Implements cvflann::NNIndex< Distance >.
|
virtual |
The length of each vector in this index.
Implements cvflann::NNIndex< Distance >.
|
virtual |
The amount of memory (in bytes) this index uses.
Implements cvflann::NNIndex< Distance >.
|
virtual |
Algorithm name
Implements cvflann::NNIndex< Distance >.
|
virtualinherited |
Perform k-nearest neighbor search.
[in] | queries | The query points for which to find the nearest neighbors |
[out] | indices | The indices of the nearest neighbors found |
[out] | dists | Distances to the nearest neighbors found |
[in] | knn | Number of nearest neighbors to return |
[in] | params | Search parameters |
Reimplemented in cvflann::Index< Distance >, cvflann::Index< cv::L2< ElementType > >, cvflann::Index< cv::L1< ElementType > >, cvflann::KDTreeSingleIndex< Distance >, and cvflann::LshIndex< Distance >.
|
virtualinherited |
Perform radius search.
[in] | query | The query point |
[out] | indices | The indinces of the neighbors found within the given radius |
[out] | dists | The distances to the nearest neighbors found |
[in] | radius | The radius used for search |
[in] | params | Search parameters |
Reimplemented in cvflann::Index< Distance >, cvflann::Index< cv::L2< ElementType > >, and cvflann::Index< cv::L1< ElementType > >.