imgConvolve {biOps}R Documentation

Performs an image convolution

Description

This function performs an image convolution with given mask

Usage

imgConvolve(imgdata, mask, bias)

Arguments

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)

Value

return an imagedata object

Examples

        ## 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)

[Package biOps version 0.2.1 Index]