Constructor Index
- Namespace
- OpenCvSharp.Flann
- Assembly
- OpenCvSharp.dll
Index()
Constructs an empty index. Call Build(InputArray, IndexParams, FlannDistance) or Load(InputArray, string) before searching.
public Index()
Index(InputArray, IndexParams, FlannDistance)
Constructs a nearest neighbor search index for a given dataset.
public Index(InputArray features, IndexParams @params, FlannDistance distType = FlannDistance.Euclidean)
Parameters
featuresInputArrayfeatures – Matrix of type CV _ 32F containing the features(points) to index. The size of the matrix is num _ features x feature _ dimensionality.
paramsIndexParamsStructure containing the index parameters. The type of index that will be constructed depends on the type of this parameter.
distTypeFlannDistance