|
static float | cosDistance (const float *const pos1, const float *const pos2, int dimension) |
|
static float | sqrDistance (const float *const pos1, const float *const pos2, int dimension) |
|
◆ KDNode()
Digikam::KDNode::KDNode |
( |
const cv::Mat & |
nodePos, |
|
|
const int |
identity, |
|
|
int |
splitAxis, |
|
|
int |
dimension |
|
) |
| |
|
explicit |
◆ ~KDNode()
Digikam::KDNode::~KDNode |
( |
| ) |
|
◆ cosDistance()
float Digikam::KDNode::cosDistance |
( |
const float *const |
pos1, |
|
|
const float *const |
pos2, |
|
|
int |
dimension |
|
) |
| |
|
static |
◆ getClosestNeighbors()
double Digikam::KDNode::getClosestNeighbors |
( |
QMap< double, QVector< int > > & |
neighborList, |
|
|
const cv::Mat & |
position, |
|
|
float |
sqRange, |
|
|
float |
cosThreshold, |
|
|
int |
maxNbNeighbors |
|
) |
| const |
◆ getIdentity()
int Digikam::KDNode::getIdentity |
( |
| ) |
|
Return identity of the node
◆ getPosition()
cv::Mat Digikam::KDNode::getPosition |
( |
| ) |
const |
Return position vector of a node
◆ insert()
KDNode * Digikam::KDNode::insert |
( |
const cv::Mat & |
nodePos, |
|
|
const int |
identity |
|
) |
| |
Insert a new node to the sub-tree
◆ setNodeId()
void Digikam::KDNode::setNodeId |
( |
int |
id | ) |
|
◆ sqrDistance()
float Digikam::KDNode::sqrDistance |
( |
const float *const |
pos1, |
|
|
const float *const |
pos2, |
|
|
int |
dimension |
|
) |
| |
|
static |
The documentation for this class was generated from the following files:
- core/libs/facesengine/recognition/opencv-dnn/kd_node.h
- core/libs/facesengine/recognition/opencv-dnn/kd_node.cpp