Learn R Programming

Rvision (version 0.4.2)

mean.list: Mean of Images in a List

Description

Returns the pixelwise mean of Image objects stored in a list.

Usage

# S3 method for list
mean(x, ...)

Arguments

x

A list of Image objects. All images must have the same dimensions, number of channels, and bitdepth.

...

Unused at the moment.

Value

An Image object.

See Also

Image

Examples

Run this code
# NOT RUN {
balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
img_list <- lapply(1:10, function(x) readNext(balloon))
plot(mean(img_list))

# }

Run the code above in your browser using DataLab