norlab-ulaval/libnabo
A fast K Nearest Neighbor library for low-dimensional spaces
What it solves
libnabo provides a high-performance solution for finding the "K nearest neighbours" (KNN) of a point within low-dimensional spaces. It is designed to be faster than traditional libraries like ANN, offering a modern, clean, and legacy-free alternative for developers needing efficient spatial searching.
How it works
The library uses C++ templates to remain agnostic to specific data types, allowing it to work flexibly with different scalar types. It relies on the Eigen library for matrix and linear-algebra operations. By utilizing compact data types, it achieves performance improvements—typically 5% to 20% faster than ANN—and provides a straightforward API for querying point sets.
Who it’s for
It is intended for C++ developers and researchers who need a fast, reliable nearest-neighbour search implementation for robotics or geometric applications. It also includes optional Python bindings for users who prefer to work in a Python environment.
Highlights
- Faster performance than the ANN library (5% to 20% on average).
- Modern, template-based C++ API that is easy to integrate into existing projects.
- Supports both static and shared library builds via CMake.
- Includes Python bindings for broader language accessibility.
- Tested on multiple architectures, including x86 and arm64/v8.
Related
- Project
- Project
- Project
- Project