digiKam
Loading...
Searching...
No Matches
Digikam::KDTreeOpenFace Class Reference

#include <kd_treeopenface.h>

+ Inheritance diagram for Digikam::KDTreeOpenFace:

Public Member Functions

virtual KDNodeBaseadd (const cv::Mat &position, const int identity)
 add new node to KD-Tree
 
virtual QMap< double, QVector< int > > getClosestNeighbors (const cv::Mat &position, float sqRange, int maxNbNeighbors) const
 
 KDTreeOpenFace (int dim, int threshold=KDTREE_MAP_THRESHOLD)
 
 ~KDTreeOpenFace () override
 

Constructor & Destructor Documentation

◆ KDTreeOpenFace()

Digikam::KDTreeOpenFace::KDTreeOpenFace ( int  dim,
int  threshold = KDTREE_MAP_THRESHOLD 
)
explicit

◆ ~KDTreeOpenFace()

Digikam::KDTreeOpenFace::~KDTreeOpenFace ( )
override

Member Function Documentation

◆ add()

KDNodeBase * Digikam::KDTreeBase::add ( const cv::Mat &  position,
const int  identity 
)
virtualinherited

add new node to KD-Tree

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

References Digikam::KDTreeBase::createNode().

Referenced by Digikam::FaceDb::reconstructTree(), and Digikam::OpenCVDNNFaceRecognizer::registerTrainingData().

◆ getClosestNeighbors()

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

References Digikam::KDNodeBase::NodeCompareResult::distance1, and Digikam::KDNodeBase::NodeCompareResult::result.


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