C# Класс OpenCvSharp.Flann.Index

The FLANN nearest neighbor index class.
Наследование: DisposableCvObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Index ( InputArray features, OpenCvSharp.Flann.IndexParams @params, FlannDistance distType = FlannDistance.L2 ) : System

Constructs a nearest neighbor search index for a given dataset.

KnnSearch ( Mat queries, Mat indices, Mat dists, int knn, OpenCvSharp.Flann.SearchParams @params ) : void

Performs a K-nearest neighbor search for multiple query points.

KnnSearch ( Mat queries, int &indices, float &dists, int knn, OpenCvSharp.Flann.SearchParams @params ) : void

Performs a K-nearest neighbor search for multiple query points.

KnnSearch ( float queries, int &indices, float &dists, int knn, OpenCvSharp.Flann.SearchParams @params ) : void

Performs a K-nearest neighbor search for multiple query points.

RadiusSearch ( Mat queries, Mat indices, Mat dists, float radius, int maxResults, OpenCvSharp.Flann.SearchParams @params ) : void

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

RadiusSearch ( Mat queries, int indices, float dists, float radius, int maxResults, OpenCvSharp.Flann.SearchParams @params ) : void

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

RadiusSearch ( float queries, int indices, float dists, float radius, int maxResults, OpenCvSharp.Flann.SearchParams @params ) : void

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

Save ( string filename ) : void

Saves the index to a file.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
Результат void

Index() публичный Метод

Constructs a nearest neighbor search index for a given dataset.
public Index ( InputArray features, OpenCvSharp.Flann.IndexParams @params, FlannDistance distType = FlannDistance.L2 ) : System
features InputArray features – Matrix of type CV _ 32F containing the features(points) to index. The size of the matrix is num _ features x feature _ dimensionality.
@params OpenCvSharp.Flann.IndexParams
distType FlannDistance
Результат System

KnnSearch() публичный Метод

Performs a K-nearest neighbor search for multiple query points.
public KnnSearch ( Mat queries, Mat indices, Mat dists, int knn, OpenCvSharp.Flann.SearchParams @params ) : void
queries Mat The query points, one per row
indices Mat Indices of the nearest neighbors found
dists Mat Distances to the nearest neighbors found
knn int Number of nearest neighbors to search for
@params OpenCvSharp.Flann.SearchParams
Результат void

KnnSearch() публичный Метод

Performs a K-nearest neighbor search for multiple query points.
public KnnSearch ( Mat queries, int &indices, float &dists, int knn, OpenCvSharp.Flann.SearchParams @params ) : void
queries Mat The query points, one per row
indices int Indices of the nearest neighbors found
dists float Distances to the nearest neighbors found
knn int Number of nearest neighbors to search for
@params OpenCvSharp.Flann.SearchParams
Результат void

KnnSearch() публичный Метод

Performs a K-nearest neighbor search for multiple query points.
public KnnSearch ( float queries, int &indices, float &dists, int knn, OpenCvSharp.Flann.SearchParams @params ) : void
queries float The query points, one per row
indices int Indices of the nearest neighbors found
dists float Distances to the nearest neighbors found
knn int Number of nearest neighbors to search for
@params OpenCvSharp.Flann.SearchParams
Результат void

RadiusSearch() публичный Метод

Performs a radius nearest neighbor search for a given query point.
public RadiusSearch ( Mat queries, Mat indices, Mat dists, float radius, int maxResults, OpenCvSharp.Flann.SearchParams @params ) : void
queries Mat The query point
indices Mat Indices of the nearest neighbors found
dists Mat Distances to the nearest neighbors found
radius float Number of nearest neighbors to search for
maxResults int
@params OpenCvSharp.Flann.SearchParams
Результат void

RadiusSearch() публичный Метод

Performs a radius nearest neighbor search for a given query point.
public RadiusSearch ( Mat queries, int indices, float dists, float radius, int maxResults, OpenCvSharp.Flann.SearchParams @params ) : void
queries Mat The query point
indices int Indices of the nearest neighbors found
dists float Distances to the nearest neighbors found
radius float Number of nearest neighbors to search for
maxResults int
@params OpenCvSharp.Flann.SearchParams
Результат void

RadiusSearch() публичный Метод

Performs a radius nearest neighbor search for a given query point.
public RadiusSearch ( float queries, int indices, float dists, float radius, int maxResults, OpenCvSharp.Flann.SearchParams @params ) : void
queries float The query point
indices int Indices of the nearest neighbors found
dists float Distances to the nearest neighbors found
radius float Number of nearest neighbors to search for
maxResults int
@params OpenCvSharp.Flann.SearchParams
Результат void

Save() публичный Метод

Saves the index to a file.
public Save ( string filename ) : void
filename string The file to save the index to
Результат void