view(player,ptCloud)
displays a point cloud in the pcplayer figure window,
player. The points, locations, and colors are stored in
the ptCloud object.
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.
Point cloud color of points, specified as one of:
RGB triplet
A color name or a short name
M-by-3 matrix
M-by-N-by-3
matrix
Color Name
Short Name
RGB Triplet
Appearance
"red"
"r"
[1 0 0]
"green"
"g"
[0 1 0]
"blue"
"b"
[0 0 1]
"cyan"
"c"
[0 1 1]
"magenta"
"m"
[1 0 1]
"yellow"
"y"
[1 1 0]
"black"
"k"
[0 0 0]
"white"
"w"
[1 1 1]
You can specify the same color for all points or a different
color for each point. When you set color to
single or double, the RGB values
range between [0, 1]. When you set color to
uint8, the values range between [0,
255].
Vector or
M-by-N matrix.
The matrix must contain values that are linearly mapped
to a color in the current colormap.
Version History
Introduced in R2020b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.