Check if view is in the map
Load a map of segments and features from a MAT file.
data = load('segmatchMapFullParkingLot.mat'); sMap = data.segmatchMapFullParkingLot;
Specify a set of indices for views.
viewIds = [10,500,2,100];
Check if the specified indices correspond to existing view identifiers.
tf = hasView(sMap,viewIds)
tf = 1x4 logical array 1 0 1 0
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 of integers. M is the number of views to delete. Each view identifier is unique to a specific view.
tf— Views that exist in map
Views that exist in map, returned as an M-element vector. The
function returns a value of
true) if the view
specified in the corresponding element of view Ids is in the map. The function returns
false) if the view is not in the map.