view(player,xyzPoints)
displays the points of a point cloud at the locations specified by the
xyzPoints matrix. The color of each point is determined
by the z value.
view(player,xyzPoints,color)
displays a point cloud with colors specified by
color.
Point cloud, specified as a pointCloud object. The object
contains the locations, intensities, and RGB colors to render the point
cloud.
Point Cloud Property
Color Rendering Result
Location only
Maps the z-value to a color value in the current
color map.
Location and
Intensity
Maps the intensity to a color value in the current
color map.
Location and
Color
Use provided color.
Location,
Intensity, and
Color
Use provided color.
Player for visualizing 3-D point cloud data streams, specified as a
pcplayer object.
Point cloud x, y, and
z locations, specified as either an
M-by-3 or an
M-by-N-by-3 numeric matrix. The
M-by-N-by-3 numeric matrix is
commonly referred to as an organized point cloud. The
xyzPoints numeric matrix contains
M or M-by-N
[x,y,z] points.
The z values in the numeric matrix, which generally
correspond to depth or elevation, determine the color of each point.
Color for points in the point cloud, specified as a 1-by-3-RGB vector, an
M-by-3 matrix, an
M-by-N-by-3 matrix, a short color
name, or a long color name. For details on color values, see the Color Value table.
For single or double
datatype, the Color RGB value must be
specified in the range [0, 1].
For uint8 datatype, the
Color RGB value must be specified in
the range [0, 255].
The function stores the Color value as
either an M-by-3 or
M-by-N-by-3. If you
specify the color as a string or a 1-by-3 vector, the function
converts it to one of these dimensions.
Color
Format
Example
Specify one color for all points
short or long color name
"r"
"red"
1-by-3 vector (RGB triplet)
[255 0 0]
Specify a color for each point
cell array of character vectors
["red","yellow","blue"]
M-by-3 matrix, as a list of
RGB values
255 0 0
255 0 0
0 255 255
M-by-N-by-3
matrix for an organized point cloud containing RGB
values for each point, where
M-by-N is
the dimension of the point cloud.
Point cloud color map for points, specified as one of: