nanoflann
« Back to VersTracker
Description:
Header-only library for Nearest Neighbor search with KD-trees
Type: Formula  |  Latest Version: 1.8.0@0  |  Tracked Since: Dec 22, 2025
Links: Homepage  |  GitHub  |  formulae.brew.sh
Stars: 2,547  |  Forks: 519  |  Language: C++  |  Category: Developer tools
Tags: c-plus-plus kdtree nearest-neighbor header-only computational-geometry
Install: brew install nanoflann
About:
Nanoflann is a C++ header-only library for building KD-trees and performing efficient nearest neighbor searches in low to medium dimensional spaces. Its primary value is providing a lightweight, dependency-free, and highly optimized alternative to larger libraries like FLANN, making it ideal for integration into performance-critical projects.
Key Features:
  • Header-only library for easy integration
  • Optimized KD-tree implementation for fast nearest neighbor search
  • Minimal dependencies and lightweight design
  • Supports custom metric types and data adaptors
  • Suitable for low to medium dimensional spaces
Use Cases:
  • Point cloud registration and processing in robotics and computer vision
  • Feature matching and similarity search in machine learning pipelines
Alternatives:
  • FLANN – More comprehensive but larger and with dependencies; nanoflann is a lightweight, header-only alternative.
  • CGAL – Extensive computational geometry library; nanoflann is focused solely on nearest neighbor search.
Version History
Detected Version Rev Change Commit
Dec 22, 2025 5:12pm 1.8.0 0 VERSION_BUMP ca97dd5d
Jan 7, 2025 11:10pm 0 VERSION_BUMP 0585cfd2
Nov 3, 2024 2:07pm 0 VERSION_BUMP f6ad9f8a