Perform k-nearest-neighbours (KNN) search

Namespace:  Emgu.CV.Flann
Assembly:  Emgu.CV (in Emgu.CV.dll) Version: 2.0.1.0 (2.0.1.0)

Syntax

C#
public void KnnSearch(
	Matrix<float> queries,
	Matrix<int> indices,
	Matrix<float> distances,
	int knn,
	int checks
)
Visual Basic (Declaration)
Public Sub KnnSearch ( _
	queries As Matrix(Of Single), _
	indices As Matrix(Of Integer), _
	distances As Matrix(Of Single), _
	knn As Integer, _
	checks As Integer _
)
Visual C++
public:
void KnnSearch(
	Matrix<float>^ queries, 
	Matrix<int>^ indices, 
	Matrix<float>^ distances, 
	int knn, 
	int checks
)

Parameters

queries
Type: Emgu.CV..::.Matrix<(Of <(Single>)>)
A row by row matrix of descriptors to be query for nearest neighbours
indices
Type: Emgu.CV..::.Matrix<(Of <(Int32>)>)
The result of the indices of the k-nearest neighbours
distances
Type: Emgu.CV..::.Matrix<(Of <(Single>)>)
The distance of between the neighbours
knn
Type: System..::.Int32
The number of neighbours to be searched
checks
Type: System..::.Int32
Use 32 for default

See Also