The PointCloud object#
The PointCloud class is essential for all point cloud
operations and processing within this Toolbox. The class
encapsulates a NumPy array that contains the point coordinates and optionally colors
as a 3D array respectively. An PointCloud
instance has many methods that perform useful operations on a point cloud
and wrap low-level operations performed using NumPy or Open3d.
- class PointCloud(arg, depth_scale=1.0, **kwargs)[source]#
- __init__(arg, depth_scale=1.0, **kwargs)[source]#
Create new point cloud object
- Parameters:
arg (
o3d.geometry.PointCloud,PointCloud, ndarray(3,N)) – point cloud data as an Open3D or MVTB PointCloud object, 3xN array of points.depth_scale (float, optional) – depth scale factor, defaults to 1.0
- Raises:
RuntimeError – PointCloud class requires Open3D to be installed: pip install open3d
ValueError – bad arguments
This object wraps an Open3D
open3d.geometry.PointCloudobject. It can be created from:an Open3D point cloud object
a 3xN array of point coordinates
a depth image as a 1-plane
Imageinstancean RGBD image as a 4-plane
Imageinstancea tuple of two images (RGB, D) as 3-plane and 1-plane
Imageinstances
Warning
Open3D must be installed.
The wrapped Open3D
open3d.geometry.PointCloudobject has many methods and properties but rather than writing individual wrappers the__getattr__picks up these references and invokes them on the underlying Open3D object. Any returned Open3D point cloud objects are converted to aPointCloudinstance.
Informational#
Access to point cloud data#
Point cloud i/o#
Point cloud operations#
Copy point cloud |
|
Transform point cloud |
|
Downsample point cloud by voxelization |
|
Downsample point cloud by random selection |
|
Voxelize point cloud |
|
Get point normal data as array |
|
Remove point cloud outliers |
|
Select points by index |
|
Colorize point cloud |
|
Register point cloud using ICP |
|
Access Open3D PointCloud methods and attributes |