Click or drag to resize
Accord.NET (logo)

KNearestNeighborMatching Constructor (Int32, IDistanceDouble)

Constructs a new K-Nearest Neighbors matching algorithm.

Namespace:  Accord.Imaging
Assembly:  Accord.Vision (in Accord.Vision.dll) Version: 3.8.0
Syntax
public KNearestNeighborMatching(
	int k,
	IDistance<double[]> distance
)
Request Example View Source

Parameters

k
Type: SystemInt32
The number of neighbors to use when matching points.
distance
Type: Accord.Math.DistancesIDistanceDouble
The distance function to consider between points.
See Also