3D Is Here: Point Cloud Library (PCL)
3D Is Here: Point Cloud Library (PCL)
Algorithm 1 Code example for the results shown in Figure 4. Fig. 6. An example of a RangeImage display using PCL Visualization
using namespace pcl visualization; (bottom) for a given 3D point cloud dataset (top).
PCLVisualizer p (“Test”);
PointCloudColorHandlerRandom handler (cloud);
p.addPointCloud (cloud, handler, ”cloud random”);
p.spin (); V. U SAGE E XAMPLES
p.removePointCloud (”cloud random”);
PointCloudGeometryHandlerSurfaceNormal handler2 (cloud); In this section we present two code snippets that exhibit
p.addPointCloud (cloud, handler2, ”cloud random”); the flexibility and simplicity of using PCL for filtering
p.spin ();
and segmentation operations, followed by three application
examples that make use of PCL for solving the perception
The library also offers a few general purpose tools for problem: i) navigation and mapping, ii) object recognition,
visualizing PCD files, as well as for visualizing streams of and iii) manipulation and grasping.
data from a sensor in real-time in ROS. Filtering constitutes one of the most important operations
that any raw point cloud dataset usually goes through, before
any higher level operations are applied to it. Algorithm 2 and
Figure 7 present a code snippet and the results obtained after
running it on the point cloud dataset from the left part of the
figure. The filter is based on estimating a set of statistics for
the points in a given neighborhood (k = 50 here), and using
them to select all points within 1.0·σ distance from the mean
distance µ, as inliers (see [6] for more information).
Fig. 7. Left: a raw point cloud acquired using a tilting laser scanner,
middle: the resultant filtered point cloud (i.e., inliers) after a StatisticalOut-
lierRemoval operator was applied, right: the rejected points (i.e., outliers).