Main Content

deleteView

Delete view from map

Description

example

sMapOut= deleteView(sMapIn,viewIds)deletes the specified viewsviewIds, along with their corresponding features and segments.

Examples

collapse all

Load a map of segments and features from a MAT file.

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

Visualize the map.

图显示(sMap)标题('Map Before Deleting Views')

Figure contains an axes object. The axes object with title Map Before Deleting Views contains an object of type scatter.

Delete the first 50 views from the map.

viewIds = 1:50; sMap = deleteView(sMap,viewIds);

Visualize the map after deleting the views.

图显示(sMap)标题('Map After Deleting the First 50 Views')

Figure contains an axes object. The axes object with title Map After Deleting the First 50 Views contains an object of type scatter.

Input Arguments

collapse all

Original map of segments and features, specified as apcmapsegmatchobject.

View identifiers, specified as anM-element vector.Mis the number of views to delete. Each view identifier is unique to a specific view.

Output Arguments

collapse all

Updated map of segments and features, returned as apcmapsegmatchobject.

Version History

Introduced in R2021a

See Also

Functions

Objects