compare | R Documentation |
Comparison between Images
compare(e1, e2, comparison, target)
e1 , e2 |
Either 2 |
comparison |
A character string indicating the comparison to be
performed between |
target |
The location where the results should be stored. It can take 3 values:
|
If target="new"
, the function returns an Image
object. If target="self"
, the function returns nothing and modifies
e1
in place if it is an Image
object, otherwise it
modifies e2
in place. If target
is an Image
object, the function returns nothing and modifies that Image
object in place.
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"))
comp <- compare(balloon1, balloon2, ">=")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.