Skip to content

LIDAR point cloud

Data origin: https://lidarpayload.com/sample-data/, RESEPI-M2X-100m10ms-FOV90-On RangerPro.laz

Tags: pixel, fly

Screenshot

import numpy as np

import datoviz as dvz

data = np.load(dvz.download_data('misc/lidar.npz'))
pos, color = data['pos'], data['color']
print(f'Loaded LIDAR data with {len(pos)} points.')
N = pos.shape[0]
pos *= 5

# -------------------------------------------------------------------------------------------------

app = dvz.App()
figure = app.figure()
panel = figure.panel(background=True)
fly = panel.fly(initial=(+2, 2.0, -6), initial_lookat=(0, -1, 0))

visual = app.pixel(position=pos, color=color, size=2, depth_test=True)
panel.add(visual)

app.run()
app.destroy()

← Back to gallery