Constructs a balanced kd-tree index of the given feature vectors. The lifetime of the desc matrix must exceed that of the returned tree. I.e., no copy is made of the vectors.


- desc (IntPtr)
- n x d matrix of n d-dimensional feature vectors (CV_32FC1 or CV_64FC1)

A balanced kd-tree index of the given feature vectors