Constructs a nearest neighbor search index for a given dataset.
Namespace:
OpenCvSharp.Flann
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic Index(
InputArray features,
IndexParams params,
FlannDistance distType = FlannDistance.Euclidean
)
Public Sub New (
features As InputArray,
params As IndexParams,
Optional distType As FlannDistance = FlannDistance.Euclidean
)
public:
Index(
InputArray^ features,
IndexParams^ params,
FlannDistance distType = FlannDistance::Euclidean
)
new :
features : InputArray *
params : IndexParams *
?distType : FlannDistance
(* Defaults:
let _distType = defaultArg distType FlannDistance.Euclidean
*)
-> Index
OpenCvSharp.Flann.Index = function(features, params, distType);
Parameters
- features
- Type: OpenCvSharpInputArray
features – Matrix of type CV _ 32F containing the features(points) to index. The size of the matrix is num _ features x feature _ dimensionality. - params
- Type: OpenCvSharp.FlannIndexParams
Structure containing the index parameters. The type of index that will be constructed depends on the type of this parameter. - distType (Optional)
- Type: OpenCvSharp.FlannFlannDistance
See Also