Method KnnSearch
- Namespace
- OpenCvSharp.Flann
- Assembly
- OpenCvSharp.dll
KnnSearch(float[], out int[], out float[], int, SearchParams)
Performs a K-nearest neighbor search for multiple query points.
public void KnnSearch(float[] queries, out int[] indices, out float[] dists, int knn, SearchParams @params)
Parameters
queriesfloat[]The query points, one per row
indicesint[]Indices of the nearest neighbors found
distsfloat[]Distances to the nearest neighbors found
knnintNumber of nearest neighbors to search for
paramsSearchParamsSearch parameters
KnnSearch(Mat, Mat, Mat, int, SearchParams)
Performs a K-nearest neighbor search for multiple query points.
public void KnnSearch(Mat queries, Mat indices, Mat dists, int knn, SearchParams @params)
Parameters
queriesMatThe query points, one per row
indicesMatIndices of the nearest neighbors found
distsMatDistances to the nearest neighbors found
knnintNumber of nearest neighbors to search for
paramsSearchParamsSearch parameters
KnnSearch(Mat, out int[], out float[], int, SearchParams)
Performs a K-nearest neighbor search for multiple query points.
public void KnnSearch(Mat queries, out int[] indices, out float[] dists, int knn, SearchParams @params)
Parameters
queriesMatThe query points, one per row
indicesint[]Indices of the nearest neighbors found
distsfloat[]Distances to the nearest neighbors found
knnintNumber of nearest neighbors to search for
paramsSearchParamsSearch parameters