Retrieve feature and segment indices corresponding to map view
Load a map of segments and features into the workspace.
data = load('segmatchMapFullParkingLot.mat'); sMap = data.segmatchMapFullParkingLot;
Retrieve the feature and segment indices corresponding to specific views.
viewIds = 20:25; idx = findView(sMap,viewIds);
Select the segments that correspond to these views.
segments = sMap.Segments(idx);
Visualize the segments.
ptCloud = pccat(segments); figure pcshow(ptCloud)
sMap— Map of segments and features
Map of segments and features, specified as a
viewIds— View identifiers
View identifiers, specified as an M-element vector. M is the number of views to delete. Each view identifier is unique to a specific view.
idx— Indices of features and segments in specified views
Indices of the index to features and segments in the specified views, returned as an
N-element vector. N is the total number of
features and segments in the map. If an element of
true), then the corresponding feature belongs
to a specified view.