pointCloud
Description
The pointCloud
object creates point cloud data from a set of
points in 3-D coordinate system. The point cloud data is stored as an object with the
properties listed in Properties. Use Object Functions to retrieve, select, and remove desired
points from the point cloud data.
Creation
Description
creates a ptCloud
= pointCloud(xyzPoints
,Name,Value
)pointCloud
object with properties specified as one or more
Name,Value
pair arguments. For example,
pointCloud(xyzPoints,'Color',[0 0 0])
sets the
Color
property of the point xyzPoints
as
[0 0 0]
. Enclose each property name in quotes. Any unspecified
properties have default values.
Input Arguments
Output Arguments
Properties
Object Functions
findNearestNeighbors | Find nearest neighbors of a point in point cloud |
findNeighborsInRadius | Find neighbors within a radius of a point in the point cloud |
findPointsInROI | Find points within a region of interest in the point cloud |
removeInvalidPoints | Remove invalid points from point cloud |
select | Select points in point cloud |
copy | Copy array of handle objects |
Tips
The pointCloud
object is a handle
object. If you want to create a separate copy of a point cloud, you can use
the MATLAB®
copy
method.
ptCloudB =
copy (ptCloudA ) |
If you want to preserve a single copy of a point cloud, which can be modified by point cloud functions, use the same point cloud variable name for the input and output.
ptCloud =
pcFunction(ptCloud ) |
Extended Capabilities
Version History
Introduced in R2022a