| sum | R Documentation |
Overloaded sum to handle Image
objects and lists of Image objects.
sum(x, ..., target = "new")
x |
An |
... |
Further arguments passed to summary methods. Unused if |
target |
The location where the results should be stored when passing a sum of images to the function. It can take 2 values:
|
If x is an Image object, the function returns a
numeric value (for single-channel images) or a vector of numeric values (for
multi-channel images).
If x is a list of Image objects and target="new",
the function returns an Image object. If target is an
Image object, the function returns nothing and modifies that
Image object in place.
Simon Garnier, garnier@njit.edu
Image
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
sum(balloon)
balloon_vid <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
img_list <- lapply(1:10, function(x) readNext(balloon_vid))
sum(img_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.