nanoflann

Header-only C++ library for fast nearest neighbor search using KD-trees

brewmacoslinux
Try with needOr install directly
Source

About

Header-only library for Nearest Neighbor search with KD-trees

Commands

nanoflann

Examples

Include nanoflann header in C++ project for KD-tree construction$ #include <nanoflann.hpp> // Use nanoflann::KDTreeSingleIndexAdaptor for nearest neighbor queries
Link nanoflann headers in CMake project$ find_package(nanoflann REQUIRED) target_include_directories(myapp PRIVATE ${NANOFLANN_INCLUDE_DIR})
Verify nanoflann installation path$ brew --prefix nanoflann