imgConvolve {biOps} | R Documentation |
This function performs an image convolution with given mask
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
## 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)