These functions calculate the mean and median
of the pixel values in the image x.
An object of class "im"
describes a pixel image. See im.object)
for details of this class.
The function mean.im is a method for the generic
function mean for the class "im".
Similarly median.im is a method for the generic
median.
If the image x is logical-valued, the mean value of x is
the fraction of pixels that have the value TRUE. The median is
not defined.
If the image x is factor-valued, then the mean of x
is the mean of the integer codes of the pixel values. The median is
are not defined.
Other mathematical operations on images are supported by
Math.im, Summary.im
and Complex.im.
Other information about an image can be obtained using
summary.im or quantile.im.