Returns the mean of the pixel values of an Image
object. If the Image
object has more than one channel, it
returns the mean for each channel.
Usage
# S3 method for class 'Rcpp_Image'
mean(x, ..., mask = NA)
Value
A numeric value (for single-channel images) or a vector of numeric values (for multi-channel images).
Author
Simon Garnier, garnier@njit.edu
Examples
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
mean(balloon)
#> B G R
#> 164.7881 149.6252 128.1291