| inPlaceLogical | R Documentation |
In Place Logical Operators for Images
e1 %i&% e2
e1 %i|% e2
not(image, target = "new")
e1, e2 |
Either 2 |
image |
An |
target |
The location where the results should be stored. It can take 3 values:
|
The operators do not return anything. They modify the image in place (destructive operation). If 2 images are passed to the operators, only the one of the left side of the operator is modified; the other is left untouched.
If target="new", not returns an Image object. If
target="self", not returns nothing and modifies image
in place. If target is an Image object, not
returns nothing and modifies that Image object in place.
R does not support the creation of custom unary operators. This is why
there is no !-like operator but the not function instead.
Simon Garnier, garnier@njit.edu
Image
balloon1 <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon2 <- image(system.file("sample_img/balloon2.png", package = "Rvision"))
balloon1 %i|% balloon2
not(balloon2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.