Class Index
- Namespace
- OpenCvSharp.Flann
- Assembly
- OpenCvSharp.dll
The FLANN nearest neighbor index class.
public class Index : CvObject, IDisposable
- Inheritance
-
Index
- Implements
- Inherited Members
Constructors
- Index()
Constructs an empty index. Call Build(InputArray, IndexParams, FlannDistance) or Load(InputArray, string) before searching.
- Index(InputArray, IndexParams, FlannDistance)
Constructs a nearest neighbor search index for a given dataset.
Methods
- Build(InputArray, IndexParams, FlannDistance)
Builds the index using the specified dataset and parameters.
- GetAlgorithm()
The algorithm used by the index.
- GetDistance()
The distance metric used by the index.
- KnnSearch(Mat, Mat, Mat, int, SearchParams)
Performs a K-nearest neighbor search for multiple query points.
- KnnSearch(Mat, out int[], out float[], int, SearchParams)
Performs a K-nearest neighbor search for multiple query points.
- KnnSearch(float[], out int[], out float[], int, SearchParams)
Performs a K-nearest neighbor search for multiple query points.
- Load(InputArray, string)
Loads a previously saved index from a file.
- RadiusSearch(Mat, Mat, Mat, double, int, SearchParams)
Performs a radius nearest neighbor search for a given query point.
- RadiusSearch(Mat, int[], float[], double, int, SearchParams)
Performs a radius nearest neighbor search for a given query point.
- RadiusSearch(float[], int[], float[], double, int, SearchParams)
Performs a radius nearest neighbor search for a given query point.
- Release()
Releases the inner search structures. Reserved for future use.
- Save(string)
Saves the index to a file.