rectdistmap | R Documentation |
Computes the distance map of a spatial region based on the rectangular distance metric.
rectdistmap(X, asp = 1, npasses=1, verbose=FALSE)
X |
A window (object of class |
asp |
Aspect ratio for the metric. See Details. |
npasses |
Experimental. |
verbose |
Logical value indicating whether to print trace information. |
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
.
A pixel image (object of class "im"
).
distmap
V <- letterR
Frame(V) <- grow.rectangle(Frame(V), 0.5)
plot(rectdistmap(V))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.