27 using DataPoint =
typename Traits::DataPoint;
28 using IndexType =
typename Traits::IndexType;
29 using Scalar =
typename DataPoint::Scalar;
30 using VectorType =
typename DataPoint::VectorType;
35 typename QueryType::InputType input)
43 QueryAccelType::reset();
46 return Iterator(QueryType::m_nearest);
53 PONCA_MULTIARCH
inline void search()
57 [](IndexType, IndexType) {}, [
this]() {
return QueryType::descentDistanceThreshold(); },
58 [
this](IndexType idx) {
return QueryType::skipIndexFunctor(idx); },
59 [
this](IndexType idx, IndexType, Scalar d) {
60 QueryType::m_nearest = idx;
61 QueryType::m_squared_distance = d;
bool searchInternal(const VectorType &point, LeafPreparationFunctor prepareLeafTraversal, DescentDistanceThresholdFunctor descentDistanceThreshold, SkipIndexFunctor skipFunctor, ProcessNeighborFunctor processNeighborFunctor)
Search internally the neighbors of a point using the kdtree.