cloneImage | R Documentation |
Image
objects are pointers toward C++ objects
stored in memory. When copying an Image
object using an
assignment operator, this creates a copy of the pointer, but not a copy of
the C++ object. Any operation on the copied Image
object will
therefore result in a modification of the orginal Image
object.
This function duplicates the original Image
object instead,
allowing safe operations on it while maintaining the integrity of the
original Image
object.
cloneImage(x, target = "new")
x |
An |
target |
The location where the results should be stored. It can take 2 values:
|
An Image
object.
Simon Garnier, garnier@njit.edu
Image
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_clone <- cloneImage(balloon)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.