Description Usage Arguments Value Examples
This function performs an image convolution with given mask
1 | imgConvolve(imgdata, mask, bias)
|
imgdata |
The image |
mask |
Kernel's convolution matrix |
bias |
Value to be added to each pixel after method is applied (used to correct some expected behaviour). This argument is optional (default = 32) |
return an imagedata object
1 2 3 4 5 6 | ## Not run:
x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
m <- matrix(c(1,2,1,2,4,2,1,2,1)/16, 3, 3, byrow = TRUE)
y <- imgConvolve(x, m, 64)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.