image_modify_local2 {plothelper} | R Documentation |
Modify both a Subregion and the Whole of an Image
Description
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
.
Usage
image_modify_local2(x, FUN1, FUN2 = NULL, geometry = "click", rectangle = TRUE)
Arguments
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
|