|
| | CompositeIndex (const Matrix< ElementType > &inputData, const IndexParams ¶ms=CompositeIndexParams(), Distance d=Distance()) |
| |
| | CompositeIndex (const CompositeIndex &) |
| |
| virtual | ~CompositeIndex () |
| |
| void | buildIndex () CV_OVERRIDE |
| | Builds the index. More...
|
| |
| void | findNeighbors (ResultSet< DistanceType > &result, const ElementType *vec, const SearchParams &searchParams) CV_OVERRIDE |
| | Method that searches for nearest-neighbours. More...
|
| |
| IndexParams | getParameters () const CV_OVERRIDE |
| |
| flann_algorithm_t | getType () const CV_OVERRIDE |
| |
| void | loadIndex (FILE *stream) CV_OVERRIDE |
| | Loads the index from a stream. More...
|
| |
| CompositeIndex & | operator= (const CompositeIndex &) |
| |
| void | saveIndex (FILE *stream) CV_OVERRIDE |
| | Saves the index to a stream. More...
|
| |
| size_t | size () const CV_OVERRIDE |
| |
| int | usedMemory () const CV_OVERRIDE |
| |
| size_t | veclen () const CV_OVERRIDE |
| |
| virtual | ~NNIndex () |
| |
| 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...
|
| |
template<typename Distance>
class cvflann::CompositeIndex< Distance >
This index builds a kd-tree index and a k-means index and performs nearest neighbour search both indexes. This gives a slight boost in search performance as some of the neighbours that are missed by one index are found by the other.