Description Usage Arguments Details Value Author(s) See Also Examples
Create a circular low-pass filter using binomial coefincient and filter weights obtained from Pascal's triangle. Used for filtering Canopy height model before local maxima detection
1 | filterBinomial(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 filter should be used toghter with the focal function in the raster-package.
a matrix of filter weights
Hans Ole Orka hans.ole.orka@gmail.org
focal and filterLocalMaxima
1 2 3 4 5 6 7 8 9 | windows()
par(mfcol=c(2,2))
(f <- filterBinomial(w=3))
image(f)
(f <- filterBinomial(w=5))
image(f)
(f <- filterBinomial(w=9))
(f <- filterBinomial(w=19))
image(f)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.