News Articles

Back to the list of articles

Python bindings for the Point Cloud Library

We are proud to to announce the release of python-pcl Python bindings for PCL.

Now you can use the power and performance of PCL from the comfort of Python. Currently the following features of PCL, using PointXYZ point clouds, are available;

  • I/O and integration; saving and loading PCD files
  • segmentation
  • sample consensus model fittting (RANSAC + others, cylinders, planes, common geometry)
  • smoothing (median least squares)
  • filtering (voxel grid downsampling, passthrough, statistical outlier removal)
  • exporting, importing and analysing pointclouds with numpy

An simple demonstration showing the statistical outlier filter:

import pcl
p = pcl.PointCloud()
p.from_file("table_scene_lms400.pcd")
fil = p.make_statistical_outlier_filter()
fil.set_mean_k (50)
fil.set_std_dev_mul_thresh (1.0)
fil.filter().to_file("inliers.pcd")

For a more complete example showing how to combine filtering, plane and cylinder segmentation (the code used to generate the logo above), see this example.

For more information please see the examples, tests, and API Documentation. This work has been supported by, and is currently in production use at Strawlab.

Article contributed by John Stowers.


Comments (1)


Add a Comment





Allowed tags: <b><i><br>Add a new comment:


Latest Posts

    PCL meetups, May 15, 2013

    Some of the PCL luminaries meet at ICRA to prepare the upcoming tutorial and discuss future plans for the development of PCL.

    Kinect for Windows with PCL, May 13, 2013

    Michael Dingerkus and Tomoto S. Washio are contributing a MS Kinect SDK to PCL bridge.

    Community Resources and Repositories, Apr 16, 2013

    The PCL community has contributed a number of links to publicly available repositories for data and software. The links are being organized on the PCL Media page.

    PCL-ORCS - code sprint success!, Apr 15, 2013

    The joint Open Perception-Ocular Robotics code sprint has concluded. The code sprint was a success. New code developed for the code sprint includes a pcl::Grabber for the Ocular Robotics RobotEye RE0x sensor and the RobotEye Viewer, a live point cloud visualization app using Qt and the RobotEye grabber.

    Presentation at Smart Libraries for Computer Graphics, Mar 19, 2013

    PCL will be presenting at the Eurographics Italian Chapter in Pisa on June 3-5.

Latest Comments

  • Neat! 4 months, 1 week ago