Table of Contents

Method RadiusSearch

Namespace
OpenCvSharp.Flann
Assembly
OpenCvSharp.dll

RadiusSearch(float[], int[], float[], double, int, SearchParams)

Performs a radius nearest neighbor search for a given query point.

public void RadiusSearch(float[] queries, int[] indices, float[] dists, double radius, int maxResults, SearchParams @params)

Parameters

queries float[]

The query point

indices int[]

Output array of indices of the nearest neighbors found, overwritten in place.

dists float[]

Output array of distances to the nearest neighbors found, overwritten in place.

radius double

Number of nearest neighbors to search for

maxResults int
params SearchParams

Search parameters

RadiusSearch(Mat, Mat, Mat, double, int, SearchParams)

Performs a radius nearest neighbor search for a given query point.

public void RadiusSearch(Mat queries, Mat indices, Mat dists, double radius, int maxResults, SearchParams @params)

Parameters

queries Mat

The query point

indices Mat

Indices of the nearest neighbors found

dists Mat

Distances to the nearest neighbors found

radius double

Number of nearest neighbors to search for

maxResults int
params SearchParams

Search parameters

RadiusSearch(Mat, int[], float[], double, int, SearchParams)

Performs a radius nearest neighbor search for a given query point.

public void RadiusSearch(Mat queries, int[] indices, float[] dists, double radius, int maxResults, SearchParams @params)

Parameters

queries Mat

The query point

indices int[]

Output array of indices of the nearest neighbors found, overwritten in place.

dists float[]

Output array of distances to the nearest neighbors found, overwritten in place.

radius double

Number of nearest neighbors to search for

maxResults int
params SearchParams

Search parameters