Description Usage Arguments Value Examples
The filter types include 'blur' and 'sharpen'; where blur blends neighboring pixels and sharpen enhances edges. The strength of the filter indicates how much of effect is applied to the image; where 0 is no effect and 1 is very strong effect.
1 |
input_path |
character the file path of the image |
filter_type |
character filter to be applied to the input image options: 'blur' and 'sharpen' |
strength |
numeric or integer (0 to 1); the strength of the selected filter effect |
output_path |
character or NULL (default NULL); the file path of the resultant image |
modified image array
1 2 | input_path <- system.file("tmp_image", "mandrill.jpg", package = "rimager")
imgfilter(input_path, "blur", 0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.