Operators |
deviation_n — Calculate standard deviation over several channels.
deviation_n(Image : ImageDeviation : : )
deviation_n generates the pixel-by-pixel standard deviation of a multichannel gray value image. For each coordinate point p the expected value is defined as the arithmetic mean:
---- \ E = / g_{c}(p)/n ----
where g_{c}(p) denominates the gray value at p on channel c. n is the number of channels in the image.
The standard deviation itself is then calculated as:
| ---------------------------- | ---- | 1 \ 2 2 * \ | --- * / (g_{c}(p)-E) \| n-1 ----
Note that this formula produces the sample standard deviation. The factor 2 is used to make better use of the range of values of the output image format. The output image has one channel.
Multichannel gray image.
Result of calculation.
compose2, compose3, compose4, compose5, add_channels
Foundation
Operators |