Main Content

show

Visualize the point cloud segments in the map

Since R2021a

Description

show(sMap) displays the point cloud segments in the map.

example

show(sMap,spatialExtent) displays point cloud segments within the spatial map or submap specified by spatialExtent.

show(___,Name,Value) specifies options using one or more name-value arguments in addition to any combination of input arguments in previous syntaxes. For example, 'MarkerSize',6 sets the marker size to 6 points.

ax = show(___) returns the axes used to plot the point cloud segments specified with previous syntaxes.

Examples

collapse all

Load a map of segments and features from a MAT file into the workspace.

data = load('segmatchMapFullParkingLot.mat');
sMap = data.segmatchMapFullParkingLot;

Select a submap within the map.

center = [0 30 0];
sz = [40 25 8];
sMap = selectSubmap(sMap,center,sz);

Visualize the full map.

figure
show(sMap)
title('Full Map')

Highlight the selected submap on the full map.

pos = [center sz zeros(1,3)];
showShape('cuboid',pos,'Color','y','Opacity',0.2);

Figure contains an axes object. The axes object with title Full Map contains an object of type scatter.

Visualize the selected submap.

figure
show(sMap,'submap')
title('Selected Submap')

Figure contains an axes object. The axes object with title Selected Submap contains an object of type scatter.

Input Arguments

collapse all

Map of segments and features, specified as a pcmapsegmatch object.

Spatial extent, specified as 'map' or 'submap'. When you specify 'submap', only points within the current submap are displayed.

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: 'MarkerSize',6 sets the marker size to 6 points.

Diameter of marker, specified as a positive scalar. This value specifies the approximate diameter of the point marker. Units are in points. A marker size larger than six can reduce rendering performance.

Axes on which to display the visualization, specified as an Axes object. To create an Axes object, use the axes function. To display the visualization in a new figure, leave 'Parent' unspecified.

Output Arguments

collapse all

Plot axes, returned as an axes graphics object.

Version History

Introduced in R2021a

See Also

Objects

Functions