# rectdistmap

From spatstat v1.63-0
by Adrian Baddeley

##### Distance Map Using Rectangular Distance Metric

Computes the distance map of a spatial region based on the rectangular distance metric.

##### Usage

`rectdistmap(X, asp = 1, npasses=1, verbose=FALSE)`

##### Arguments

- X
A window (object of class

`"owin"`

).- asp
Aspect ratio for the metric. See Details.

- npasses
Experimental.

- verbose
Logical value indicating whether to print trace information.

##### Details

This function computes the distance map of the
spatial region `X`

using the rectangular distance metric
with aspect ratio `asp`

. This metric is defined so that
the set of all points lying at most 1 unit away from the origin
(according to the metric) form a rectangle of width 1
and height `asp`

.

##### Value

A pixel image (object of class `"im"`

).

##### See Also

##### Examples

```
# NOT RUN {
V <- letterR
Frame(V) <- grow.rectangle(Frame(V), 0.5)
plot(rectdistmap(V))
# }
```

*Documentation reproduced from package spatstat, version 1.63-0, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.