28#include "digikam_opencv.h"
38#define KDTREE_MAP_THRESHOLD 500
48 explicit KDTreeBase(
int dim,
int kdtreeThreshold);
56 int maxNbNeighbors)
const;
64 virtual KDNodeBase*
add(
const cv::Mat& position,
const int identity);
85 virtual float getCosThreshold(
float sqRange)
const = 0;
90 Private*
const d =
nullptr;
Definition kd_nodebase.h:34
Definition kd_treebase.h:44
virtual ~KDTreeBase()
Definition kd_treebase.cpp:77
virtual KDNodeBase * add(const cv::Mat &position, const int identity)
add new node to KD-Tree
Definition kd_treebase.cpp:82
virtual KDNodeBase * createNode(const cv::Mat &nodePos, const int identity, int splitAxis, int dimension)=0
create an ew node
virtual QMap< double, QVector< int > > getClosestNeighbors(const cv::Mat &position, float sqRange, int maxNbNeighbors) const
Definition kd_treebase.cpp:122
Definition datefolderview.cpp:34