KNearestNeighborMatching(T) Constructor (Int32, Func(T, T, Double))
Click or drag to resize
Accord.NET (logo)

KNearestNeighborMatchingT Constructor (Int32, FuncT, T, Double)

Note: This API is now obsolete.

Constructs a new K-Nearest Neighbors matching algorithm.

Namespace:  Accord.Imaging
Assembly:  Accord.Vision (in Accord.Vision.dll) Version: 3.8.0
[ObsoleteAttribute("Please specify the distance function using classes instead of lambda functions.")]
public KNearestNeighborMatching(
	int k,
	Func<T, T, double> distance
Request Example View Source


Type: SystemInt32
The number of neighbors to use when matching points.
Type: SystemFuncT, T, Double
The distance function to consider between points.
See Also