Description Usage Arguments Details Value Author(s) See Also Examples
Create a circular filter of ones
1 | filterCircularOnes(w = 3, CircularRadius = "euclidan")
|
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" |
The fitler should be used toghter with the focal function in the raster-package.
a matrix zeros and ones
Hans Ole Orka hans.ole.orka@gmail.org
focal
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.