python点云可视化工具_Point Processing Toolkit是一个Python包,用于可视化和处理2-d / 3-d点云...

pptk - Point Processing Toolkit

Copyright (C) 2011-2018 HERE Europe B.V.

The Point Processing Toolkit (pptk) is a Python package for visualizing and processing 2-d/3-d point clouds.

At present, pptk consists of the following features.

A 3-d point cloud viewer that

accepts any 3-column numpy array as input,

renders tens of millions of points interactively using an octree-based level of detail mechanism,

supports point selection for inspecting and annotating point data.

A fully parallelized point k-d tree that supports k-nearest neighbor queries and r-near range queries (both build and queries have been parallelized).

A normal estimation routine based on principal component analysis of point cloud neighborhoods.

The screenshots above show various point datasets visualized using pptk. The bildstein1 Lidar point cloud from Semantic3D (left), Beijing GPS trajectories from Geolife (middle left), DistrictofColumbia.geojson 2-d polygons from US building footprints (middle right), and a Mobius strip (right). For details, see the tutorials.

License

Unless otherwise noted in LICENSE files for specific files or directories, the LICENSE in the root applies to all content in this repository.

Install

One can either install pptk directly from PyPI

>> pip install pptk

or from the .whl file that results from building pptk from source.

>> pip install <.whl file>

Quickstart

In Python, generate 100 random 3-d points.

>> import numpy as np

>> x = np.random.rand(100, 3)

Visualize.

>> import pptk

>> v = pptk.viewer(x)

Set point size to 0.01.

>> v.set(point_size=0.01)

For more advanced examples, see tutorials.

Build

We provide CMake scripts for automating most of the build process, but ask the user to manually prepare dependencies and record their paths in the following CMake cache variables.

Numpy_INCLUDE_DIR

PYTHON_INCLUDE_DIR

PYTHON_LIBRARY

Eigen_INCLUDE_DIR

TBB_INCLUDE_DIR

TBB_tbb_LIBRARY

TBB_tbb_RUNTIME

TBB_tbbmalloc_LIBRARY

TBB_tbbmalloc_RUNTIME

Qt5_DIR

To set these variables, either use one of CMake's GUIs (ccmake or cmake-gui), or provide an initial CMakeCache.txt in the target build folder (for examples of initial cache files, see the CMakeCache..txt files)

Requirements

Listed are versions of libraries used to develop pptk, though earlier versions of these libraries may also work.

QT 5.4

TBB 4.3

Eigen 3.2.9

Python 2.7+ or 3.6+

Windows

Create an empty build folder

>> mkdir

Create an initial CMakeCache.txt under and use it to provide values for the CMake cache variables listed above. (e.g. see CMakeCache.win.txt)

Type the following...

>> cd

>> cmake -G "NMake Makefiles"

>> nmake

>> python setup.py bdist_wheel

>> pip install dist\<.whl file>

Linux

Similar to building on Windows.

Mac

Similar to building on Windows.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值