View source: R/image_modify_local2.R
The function is similar to
image_modify_local
but with different
parameters. It modifies both a subregion
of the image and the whole image, and then
combines them. The subregion can be chosen
either by numeric values or by mouse click ,which
is the same as image_modify_local
.
1 | image_modify_local2(x, FUN1, FUN2 = NULL, geometry = "click", rectangle = TRUE)
|
x |
an image read into R by
|
FUN1 |
a function to modify
a subregion of |
FUN2 |
a function to modify the whole image, which must not change the size of the image. If it is NULL (default), nothing will do to the whole image. |
geometry |
this parameter is
different from the one used in package
magick. Here, in this function, you can
set |
rectangle |
if it is TRUE (default),
the subregion is a rectangle area. If
it is FALSE, the subregion is
an irregular polygon area, and, now
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.