![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Public Member Functions | |
KDNodeSFace (const cv::Mat &nodePos, const int identity, int splitAxis, int dimension) | |
![]() | |
KDNodeBase (const cv::Mat &nodePos, const int identity, int splitAxis, int dimension) | |
double | getClosestNeighbors (QMap< double, QVector< int > > &neighborList, const cv::Mat &position, float sqRange, float cosThreshold, int maxNbNeighbors) const |
Return a list of closest neighbors, limited by maxNbNeighbors and sqRange. | |
int | getDimension () |
int | getIdentity () |
Return identity of the node. | |
cv::Mat | getPosition () const |
Return position vector of a node. | |
KDNodeBase * | insert (const cv::Mat &nodePos, const int identity) |
Insert a new node to the sub-tree. | |
void | setNodeId (int id) |
Set database entry ID of the node. | |
Protected Member Functions | |
KDNodeBase * | createNode (const cv::Mat &nodePos, const int identity, int splitAxis, int dimension) override |
Pure virtual functions to be overridden in child classes. | |
KDNodeBase::NodeCompareResult | nodeCompare (const cv::Mat &queryPosition, const cv::Mat ¤tPosition, float sqRange, float cosThreshold, int nbDimension) const override |
Additional Inherited Members | |
![]() | |
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) |
|
overrideprotectedvirtual |
Implements Digikam::KDNodeBase.
|
overrideprotectedvirtual |
Implements Digikam::KDNodeBase.