Compute the distance map of an object. Generic.
- Any suitable dataset representing a two-dimensional
object, such as a point pattern (object of class
"ppp"), or a window (object of class
- Arguments passed to
as.maskto control pixel resolution.
The ``distance map'' of a set of points $A$ is the function
$f$ whose value
f(x) is defined for any two-dimensional
location $x$ as the shortest distance from $x$ to $A$.
- A pixel image (object of class
"im") whose grey scale values are the values of the distance map.
data(cells) U <- distmap(cells) data(letterR) V <- distmap(letterR) plot(U) plot(V)
Looks like there are no examples yet.