cilantro

kzampogMIT长期未更新

轻量级 C++ 点云处理库,提供聚类、模型拟合、ICP 配准、凸包与三维可视化等算法,适合在 C++ 项目中直接集成点云处理能力。

A lean C++ library for working with point cloud data

暂无版本1,139star204fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/kzampog/cilantro.git
cd cilantro
mkdir build
cd build
cmake ..
make -j
硬件要求按 README 说明

README 未说明显存或 GPU 要求;库为纯 C++ 实现,依赖 Eigen,可视化需可选 Pangolin,开发测试于 Ubuntu 18.04 及以上。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

精简高效的 C++ 点云处理库,以 3D 为主,提供干净 API 和少样板代码

轻量级 C++ 点云处理库,提供聚类、模型拟合、ICP 配准、凸包与三维可视化等算法,适合在 C++ 项目中直接集成点云处理能力。

核心能力

  • 用捆绑 nanoflann 实现任意维度 kd-tree 与 k-means
  • 从原始点云稳健估计法线与曲率
  • 支持刚性与非刚性 ICP 配准,含嵌入式变形图
  • 提供 RANSAC 超平面估计与刚体配准模板
  • 内置可扩展 3D 可视化器与 PLY 读写

容易踩的坑

Eigen 需 3.3 或更新版本;可视化模块和多数示例需额外安装启用 Eigen 的 Pangolin;示例通常需传入 PLY 点云路径,可用 examples/test_clouds 下的样例测试。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    A Lean and Efficient Library for Point Cloud Data Processing

    cilantro is a lean and fast C++ library for working with point cloud data, with emphasis given to the 3D case. It includes efficient implementations for a variety of common operations, providing a clean API and attempting to minimize the amount of boilerplate code. The library is extensively templated, enabling operations on data of arbitrary numerical type and dimensionality (where applicable) and featuring a modular/extensible design of the more complex procedures. At the same time, convenience aliases/wrappers for the most common cases are provided. A high-level description of cilantro can be found in our technical report.

    Supported functionality

    Basic operations:
    • General dimension kd-trees (using bundled nanoflann)
    • Surface normal and curvature (robust) estimation from raw point clouds
    • General dimension grid-based point cloud resampling
    • Principal Component Analysis
    • Basic I/O utilities for 3D point clouds (in PLY format, using bundled tinyply) and Eigen matrices
    • RGBD image pair to/from point cloud conversion utilities
    Convex hulls and spatial reasoning:
    • A general dimension convex polytope representation that is computed (using bundled Qhull) from either vertex or half-space intersection input and allows for easy switching between the respective representations
    • A representation of generic (general dimension) space regions as unions of convex polytopes that implements set operations
    Clustering:
    • General dimension k-means clustering that supports all distance metrics supported by nanoflann
    • Spectral clustering based on various graph Laplacian types (using bundled Spectra)
    • Mean-shift clustering with custom kernel support
    • Connected component based point cloud segmentation that supports arbitrary point-wise similarity functions
    Geometric registration:
    • Multiple generic Iterative Closest Point implementations that support arbitrary correspondence search methods in arbitrary point feature spaces for:
      • Rigid or affine alignment under the point-to-point metric (general dimension), point-to-plane metric (2D or 3D), or any combination thereof
      • Non-rigid alignment of 2D or 3D point sets, by means of a robustly regularized, locally-rigid or locally-affine deformation field, under any combination of the point-to-point and point-to-plane metrics; implementations for both densely and sparsely (by means of an Embedded Deformation Graph) supported warp fields are provided
    Robust model estimation:
    • A RANSAC estimator template and instantiations thereof for general dimension:
      • Robust hyperplane estimation
      • Rigid point cloud registration given noisy correspondences
    Visualization:
    • Classical Multidimensional Scaling (using bundled Spectra for eigendecompositions)
    • A powerful, extensible, and easy to use 3D visualizer

    Dependencies

    • Eigen (version 3.3 or newer) [required]
    • Pangolin (built with Eigen enabled) [optional; needed for visualization modules and most examples]

    Building

    cilantro is developed and tested on Ubuntu variants (18.04 and newer) using CMake. To clone and build the library (with bundled examples), execute the following in a terminal:

    git clone https://github.com/kzampog/cilantro.git
    cd cilantro
    mkdir build
    cd build
    cmake ..
    make -j
    

    Documentation

    Documentation (readthedocs.io, Doxygen API reference) is a work in progress. The short provided examples (built by default) cover a significant part of the library's functionality. Most of them expect a single command-line argument (path to a point cloud file in PLY format). One such input is bundled in examples/test_clouds for quick testing.

    License

    The library is released under the MIT license. If you use cilantro in your research, please cite our technical report:

    @inproceedings{zampogiannis2018cilantro,
        author = {Zampogiannis, Konstantinos and Fermuller, Cornelia and Aloimonos, Yiannis},
        title = {cilantro: A Lean, Versatile, and Efficient Library for Point Cloud Data Processing},
        booktitle = {Proceedings of the 26th ACM International Conference on Multimedia},
        series = {MM '18},
        year = {2018},
        isbn = {978-1-4503-5665-7},
        location = {Seoul, Republic of Korea},
        pages = {1364--1367},
        doi = {10.1145/3240508.3243655},
        publisher = {ACM},
        address = {New York, NY, USA}
    }