
Last chance! 50% off unlimited learning
Sale ends in
In Place Arithmetic Operators for Images
e1 %i+% e2e1 %i-% e2
e1 %i*% e2
e1 %i/% e2
These 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.
# NOT RUN {
balloon1 <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon2 <- image(system.file("sample_img/balloon2.png", package = "Rvision"))
balloon1 %i+% balloon2
# }
Run the code above in your browser using DataLab