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.
|
Image (input_object) |
multichannel-image(-array) -> object : byte / int4 / uint2 / int4 / real |
| Multichannel gray image. | |
|
ImageMean (output_object) |
singlechannelimage(-array) -> object : byte / int4 / uint2 / int4 / real |
| Result of averaging. | |
compose3(Channel1,Channel2,Channel3,&MultiChannel); mean_n(MultiChannel,&Mean);
mean_n is reentrant and automatically parallelized (on tuple level, domain level).
compose2, compose3, compose4, add_channels
Foundation