# dilate.owin

From spatstat v1.15-2
by Adrian Baddeley

##### Dilate a Window

Perform morphological dilation of a window

##### Usage

```
dilation.owin(w, r, ...)
dilate.owin(w, r, ...)
```

##### Arguments

- w
- A window (object of class
`"owin"`

. - r
- positive number: the radius of dilation.
- ...
- extra arguments to
`as.mask`

controlling the pixel resolution

##### Details

The morphological dilation of a set $W$ by a distance $r > 0$ is the set consisting of all points lying at most $r$ units away from $W$. Effectively, dilation adds a margin of width $r$ onto the set $W$.

The functions `dilate.owin`

and `dilation.owin`

are
identical, and compute the dilation of the window `w`

.

The window `w`

is first approximated by a binary pixel image,
and the arguments `"..."`

are passed to `as.mask`

to determine the pixel resolution. There is a sensible default.

##### Value

- Another object of class
`"owin"`

representing the dilated window.

##### See Also

`erode.owin`

for the opposite operation.
`owin`

,
`as.owin`

##### Examples

```
w <- owin(c(0,1),c(0,1))
v <- dilate.owin(w, 0.1)
```

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

### Community examples

Looks like there are no examples yet.