Table of Contents

Method Create

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Create(int, ANNIndexDistance)

Creates an instance of the Annoy index with the given parameters.

public static ANNIndex Create(int dim, ANNIndexDistance distType = ANNIndexDistance.Euclidean)

Parameters

dim int

The dimension of the feature vector.

distType ANNIndexDistance

Metric used to calculate the distance between two feature vectors.

Returns

ANNIndex