filterCircularOnes: Creates a circular filter

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Create a circular filter of ones

Usage

1
filterCircularOnes(w = 3, CircularRadius = "euclidan")

Arguments

w

filter size

CircularRadius

How to define the radius of the circular filter, either in a euclidian distance space (w-1)/2 or by using the pixels w/2. Defaults to "euclidian"

Details

The fitler should be used toghter with the focal function in the raster-package.

Value

a matrix zeros and ones

Author(s)

Hans Ole Orka hans.ole.orka@gmail.org

See Also

focal

Examples

1
2
3
4
5
6
7
8
windows()
(f <- filterCircularOnes(w=3))
image(f)
(f<- filterCircularOnes(w=5))
image(f)
(f <- filterCircularOnes(w=9))
(f <- filterCircularOnes(w=19))
image(f)

hansoleorka/myR documentation built on May 17, 2019, 2:29 p.m.