C# Class OpenCvSharp.Flann.Index

The FLANN nearest neighbor index class.
Inheritance: DisposableCvObject
ファイルを表示 Open project: shimat/opencvsharp Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Method Details

Dispose() protected method

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. ///
return void

Index() public method

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
return System

KnnSearch() public method

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
return void

KnnSearch() public method

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
return void

KnnSearch() public method

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
return void

RadiusSearch() public method

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
return void

RadiusSearch() public method

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
return void

RadiusSearch() public method

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
return void

Save() public method

Saves the index to a file.
public Save ( string filename ) : void
filename string The file to save the index to
return void