23 #ifndef DIGIKAM_KD_NODE_H
24 #define DIGIKAM_KD_NODE_H
37 #include "digikam_opencv.h"
46 explicit KDNode(
const cv::Mat& nodePos,
54 static float sqrDistance(
const float*
const pos1,
const float*
const pos2,
int dimension);
55 static float cosDistance(
const float*
const pos1,
const float*
const pos2,
int dimension);
62 KDNode*
insert(
const cv::Mat& nodePos,
const int identity);
76 int maxNbNeighbors)
const;
89 void updateRange(
const cv::Mat&);
91 KDNode* findParent(
const cv::Mat& nodePos);
cv::Mat getPosition() const
Definition: kd_node.cpp:160
static float sqrDistance(const float *const pos1, const float *const pos2, int dimension)
Definition: kd_node.cpp:43
static float cosDistance(const float *const pos1, const float *const pos2, int dimension)
Definition: kd_node.cpp:55
double getClosestNeighbors(QMap< double, QVector< int > > &neighborList, const cv::Mat &position, float sqRange, float cosThreshold, int maxNbNeighbors) const
Definition: kd_node.cpp:175
~KDNode()
Definition: kd_node.cpp:124
void setNodeId(int id)
Definition: kd_node.cpp:170
int getIdentity()
Definition: kd_node.cpp:165
KDNode * insert(const cv::Mat &nodePos, const int identity)
Definition: kd_node.cpp:129
KDNode(const cv::Mat &nodePos, const int identity, int splitAxis, int dimension)
Definition: kd_node.cpp:112
Definition: datefolderview.cpp:43