| IndexKnnSearch Method (Single, Int32, Single, Int32, SearchParams) |
Performs a K-nearest neighbor search for multiple query points.
Namespace:
OpenCvSharp.Flann
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public void KnnSearch(
float[] queries,
out int[] indices,
out float[] dists,
int knn,
SearchParams params
)
Public Sub KnnSearch (
queries As Single(),
<OutAttribute> ByRef indices As Integer(),
<OutAttribute> ByRef dists As Single(),
knn As Integer,
params As SearchParams
)
public:
void KnnSearch(
array<float>^ queries,
[OutAttribute] array<int>^% indices,
[OutAttribute] array<float>^% dists,
int knn,
SearchParams^ params
)
member KnnSearch :
queries : float32[] *
indices : int[] byref *
dists : float32[] byref *
knn : int *
params : SearchParams -> unit
Parameters
- queries
- Type: SystemSingle
The query points, one per row - indices
- Type: SystemInt32
Indices of the nearest neighbors found - dists
- Type: SystemSingle
Distances to the nearest neighbors found - knn
- Type: SystemInt32
Number of nearest neighbors to search for - params
- Type: OpenCvSharp.FlannSearchParams
Search parameters
See Also