imgConvolve: Performs an image convolution

Description Usage Arguments Value Examples

Description

This function performs an image convolution with given mask

Usage

1
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

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)

matiasb/biOps documentation built on May 21, 2019, 12:55 p.m.