imgUnsharpen: Unsharpens an image with selected mask

Description Usage Arguments Value Examples

Description

This function unsharpens an image by convoluting with one of the following matrices:

1 || 2 || 3 1
0 -1 0 || -1 -1 -1 || 1 -2 1
-1 5 -1 || -1 9 -1 || -2 5 -2
0 -1 0 || -1 -1 -1 || 1 -2 1

Performs a difference between original image and sharpen convolved image with the specified mask

Usage

1
imgUnsharpen (imgdata, mask)

Arguments

imgdata

The image

mask

The matrix to be used in the convolution. Must be one of 1, 2, 3 (default=1)

Value

return an imagedata object

Examples

1
2
3
4
5
	## Not run: 
		x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
		y <- imgUnsharpen(x, 2)
	
## End(Not run)

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