Description Usage Arguments Value Author(s) References Examples
An isotropic image gradient operator using a 3x3 window
1 |
... |
Additional arguments passed to raster::overlay or, if method="edge", raster::focal (if you want a file written to disk use filename = "" argument) |
x: |
A raster class object |
method: |
Type of operator ("intensity", "direction", "edge") |
A raster class object or raster written to disk
Jeffrey S. Evans <jeffrey_evans@tnc.org>
Sobel, I., & G. Feldman, (1969) A 3x3 Isotropic Gradient Operator for Image Processing, presented at the Stanford Artificial Intelligence Project (SAIL).
1 2 3 4 5 6 7 8 9 10 11 | library(raster)
r <- brick(system.file("external/rlogo.grd", package="raster"))
s.int <- sobal(r[[1]])
s.dir <- sobal(r[[1]], method = "direction")
s.edge <- sobal(r[[1]], method = "edge")
par(mfrow=c(2,2))
plot(r[[1]])
plot(s.int, main="intensity")
plot(s.dir, main="direction")
plot(s.edge, main="edge")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.