Statistics for Contrast Boosting
Statistical operations can compute measures on pixel values such as mean color, etc. When applied to images, statistical operations work on a collection of pixel values represented as channel vectors, for example {r, g, b} for RGB images.
Compute the mean pixel values of an image.
Notice that this is the same as computing the mean for each color channel.
Use statistical operations combined with the new arithmetic support to quickly take the deviation for each color channel.
Combining it with the original mean, build a simple contrast booster.
Or experiment with the basic algorithm to create more extreme effects.