MATLAB 帮助中心
Delete all segments in map
Since R2021a
sMapOut = deleteSegments(sMapIn)
sMapOut = deleteSegments(sMapIn) deletes all segments in the map sMapIn. Removing the segments from the map improves the performance of the findPose and updateMap object functions.
sMapOut
sMapIn
findPose
updateMap
example
collapse all
Load a map of segments and features from a MAT file.
data = load('segmatchMapFullParkingLot.mat'); sMap = data.segmatchMapFullParkingLot;
Remove the segments from the map, leaving only the corresponding features in the map.
sMapNoSegments = deleteSegments(sMap);
Verify the number of segments in the map before and after removal.
numBefore = numel(sMap.Segments); numAfter = numel(sMapNoSegments.Segments); disp("Number of Segments Before Deleting Segments: " + num2str(numBefore))
Number of Segments Before Deleting Segments: 464
disp("Number of Segments After Deleting Segments: " + num2str(numAfter))
Number of Segments After Deleting Segments: 0
pcmapsegmatch
Original map of segments and features, specified as a pcmapsegmatch object.
Updated map of segments and features, returned as a pcmapsegmatch object.
Introduced in R2021a
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处