findView
Retrieve feature and segment indices corresponding to map view
Description
Examples
Select Segments from Specific Views
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
sMap
— Map of segments and features
pcmapsegmatch
object
Map of segments and features, specified as a pcmapsegmatch
object.
viewIds
— View identifiers
M-element vector
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
idx
— Indices of features and segments in specified views
N-element vector
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
Abrir ejemplo
Tiene una versión modificada de este ejemplo. ¿Desea abrir este ejemplo con sus modificaciones?
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)