基于Open3D的点云处理17-Open3d的C++版本

参考:

  1. http://www.open3d.org/docs/latest/cpp_api.html
  2. http://www.open3d.org/docs/latest/getting_started.html#c
  3. http://www.open3d.org/docs/release/cpp_project.html#cplusplus-example-project
  4. https://github.com/isl-org/open3d-cmake-find-package
  5. https://github.com/isl-org/open3d-cmake-external-project

官方提供安装包

https://github.com/isl-org/Open3D/releases
基于Open3D的点云处理17-Open3d的C++版本_第1张图片

Open3d C++版本源码编译

Ubuntu/macOS

git clone --recursive https://github.com/intel-isl/Open3D.git
cd Open3D
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=${HOME}/open3d_install ..
make install -j 12
cd ../..

Win

git clone --recursive https://github.com/intel-isl/Open3D.git
cd Open3D
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=C:\open3d_install ..
cmake --build . --config Release --parallel 12 --target install
cd ..\..

Note: -DBUILD_SHARED_LIBS=ON is recommended if -DBUILD_CUDA_MODULE=ON.

测试用例

On Ubuntu/macOS:

git clone https://github.com/intel-isl/open3d-cmake-external-project.git
cd open3d-cmake-external-project
mkdir build
cd build
cmake ..
make -j 12
./Draw

On Windows:

git clone https://github.com/intel-isl/open3d-cmake-external-project.git
cd open3d-cmake-external-project
mkdir build
cd build
cmake ..
cmake --build . --config Release --parallel 12
Release\Draw

基于Open3D的点云处理17-Open3d的C++版本_第2张图片

你可能感兴趣的:(三维数据处理,c++,开发语言,Open3d,算法)