C# Class Emgu.CV.FeatureTree

A wrapper for CvFeatureTree
Inheritance: Emgu.Util.UnmanagedObject
Show file Open project: fajoy/RTSPExample Class Usage Examples

Public Methods

Method Description
FeatureTree ( Matrix descriptorMatrix ) : System

Create a k-d tree from the specific feature descriptors

FeatureTree ( Matrix descriptors, int naive, double rho, double tau ) : System

Create a spill tree from the specific feature descriptors

FeatureTree ( float descriptors ) : System

Create a k-d tree from the specific feature descriptors

FeatureTree ( float descriptors, int naive, double rho, double tau ) : System

Create a spill tree from the specific feature descriptors

FindFeatures ( float descriptors, Matrix &results, Matrix &dist, int k, int emax ) : void

Finds (with high probability) the k nearest neighbors in tr for each of the given (row-)vectors in desc, using best-bin-first searching ([Beis97]). The complexity of the entire operation is at most O(m*emax*log2(n)), where n is the number of vectors in the tree

Protected Methods

Method Description
DisposeObject ( ) : void

Release the unmanaged structure and all the memories associate with it.

ReleaseManagedResources ( ) : void

Release the managed resource

Method Details

DisposeObject() protected method

Release the unmanaged structure and all the memories associate with it.
protected DisposeObject ( ) : void
return void

FeatureTree() public method

Create a k-d tree from the specific feature descriptors
public FeatureTree ( Matrix descriptorMatrix ) : System
descriptorMatrix Matrix The array of feature descriptors
return System

FeatureTree() public method

Create a spill tree from the specific feature descriptors
public FeatureTree ( Matrix descriptors, int naive, double rho, double tau ) : System
descriptors Matrix The array of feature descriptors
naive int A good value is 50
rho double A good value is .7
tau double A good value is .1
return System

FeatureTree() public method

Create a k-d tree from the specific feature descriptors
public FeatureTree ( float descriptors ) : System
descriptors float The array of feature descriptors
return System

FeatureTree() public method

Create a spill tree from the specific feature descriptors
public FeatureTree ( float descriptors, int naive, double rho, double tau ) : System
descriptors float The array of feature descriptors
naive int A good value is 50
rho double A good value is .7
tau double A good value is .1
return System

FindFeatures() public method

Finds (with high probability) the k nearest neighbors in tr for each of the given (row-)vectors in desc, using best-bin-first searching ([Beis97]). The complexity of the entire operation is at most O(m*emax*log2(n)), where n is the number of vectors in the tree
public FindFeatures ( float descriptors, Matrix &results, Matrix &dist, int k, int emax ) : void
descriptors float The m feature descriptors to be searched from the feature tree
results Matrix /// The results of the best matched from the feature tree. A m x matrix. Contains -1 in some columns if fewer than k neighbors found. /// For each row the k neareast neighbors are not sorted. To findout the closet neighbour, look at the output matrix . ///
dist Matrix /// A m x Matrix of the distances to k nearest neighbors ///
k int The number of neighbors to find
emax int For k-d tree only: the maximum number of leaves to visit. Use 20 if not sure
return void

ReleaseManagedResources() protected method

Release the managed resource
protected ReleaseManagedResources ( ) : void
return void