mean_n — Average gray values over several channels.
The operator mean_n generates the pixel-by-pixel mean value of all channels . For each coordinate point the sum of all gray values at this coordinate is calculated. The result is the mean of the gray values (sum divided by the number of channels). The output image has one channel.
Multichannel gray image.
Result of averaging.
compose2, compose3, compose4, compose5, add_channels