Description Usage Arguments Value Examples
This function sharpens 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 |
1 | imgSharpen (imgdata, mask)
|
imgdata |
The image |
mask |
The matrix to be used in the convolution. Must be one of 1, 2, 3 (default=1) |
return an imagedata object
1 2 3 4 5 | ## Not run:
x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
y <- imgSharpen(x, 2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.