Main Content

findView

Retrieve feature and segment indices corresponding to map view

Since R2021a

Description

example

idx = findView(sMap,viewIds) retrieves the indices of the features and segments that correspond to the specified views viewIds.

Examples

collapse all

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)

Input Arguments

collapse all

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

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.

Output Arguments

collapse all

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 idx is 1 (true), then the corresponding feature belongs to a specified view.

Version History

Introduced in R2021a

See Also

Functions

Objects