distance
Syntax
Description
returns the distances to the closest boundaries for a subregion of the map layer,
dist = distance(map,cornerLocation,mapSize)map. The subregion starts in the corner location
cornerLocation in the world coordinate frame with a given map size
mapSize.
returns the distances to the closest boundaries for a subregion of the map layer,
dist = distance(map,cornerLocation,mapSize,frame)map. The subregion starts in the corner location
cornerLocation in the coordinate frame frame.
Note
When specifying a corner location and map size, distance
determines the distances between cell centers within the rectangular query
region.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2023a
![Figure contains an axes object. The axes object with xlabel X [meters], ylabel Y [meters] contains an object of type image.](../../examples/nav/win64/CreateSignedDistanceMapExample_01.png)
![Figure contains an axes object. The axes object with xlabel X [meters], ylabel Y [meters] contains an object of type image.](../../examples/nav/win64/CreateSignedDistanceMapExample_02.png)
![Figure contains an axes object. The axes object with xlabel X [meters], ylabel Y [meters] contains 2 objects of type image, line.](../../examples/nav/win64/CreateSignedDistanceMapExample_03.png)