digiKam
Digikam::KDTree Class Reference

Public Member Functions

KDNodeadd (const cv::Mat &position, const int identity)
 add new node to KD-Tree More...
 
QMap< double, QVector< int > > getClosestNeighbors (const cv::Mat &position, float sqRange, float cosThreshold, int maxNbNeighbors) const
 
 KDTree (int dim)
 
 ~KDTree ()
 

Constructor & Destructor Documentation

◆ KDTree()

Digikam::KDTree::KDTree ( int  dim)
explicit

◆ ~KDTree()

Digikam::KDTree::~KDTree ( )

Member Function Documentation

◆ add()

KDNode * Digikam::KDTree::add ( const cv::Mat &  position,
const int  identity 
)

add new node to KD-Tree

Parameters
position: K-dimension vector
identity: identity of this face vector
Returns

Referenced by Digikam::OpenCVDNNFaceRecognizer::registerTrainingData().

◆ getClosestNeighbors()

QMap< double, QVector< int > > Digikam::KDTree::getClosestNeighbors ( const cv::Mat &  position,
float  sqRange,
float  cosThreshold,
int  maxNbNeighbors 
) const
Returns
Map of N-nearest neighbors, sorted by distance

The documentation for this class was generated from the following files: