| IndexKnnSearch Method (Mat, Mat, Mat, 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(
Mat queries,
Mat indices,
Mat dists,
int knn,
SearchParams params
)
Public Sub KnnSearch (
queries As Mat,
indices As Mat,
dists As Mat,
knn As Integer,
params As SearchParams
)
public:
void KnnSearch(
Mat^ queries,
Mat^ indices,
Mat^ dists,
int knn,
SearchParams^ params
)
member KnnSearch :
queries : Mat *
indices : Mat *
dists : Mat *
knn : int *
params : SearchParams -> unit
Parameters
- queries
- Type: OpenCvSharpMat
The query points, one per row - indices
- Type: OpenCvSharpMat
Indices of the nearest neighbors found - dists
- Type: OpenCvSharpMat
Distances to the nearest neighbors found - knn
- Type: SystemInt32
Number of nearest neighbors to search for - params
- Type: OpenCvSharp.FlannSearchParams
Search parameters
See Also