Statistical operations work on a collection of pixel values represented as channel vectors, for example {r, g, b} for RGB images. Compute the mean for each color channel to get the same result:
In[3]:=
Mean/@ColorSeparate[i]
Out[3]=
{0.517668,0.431118,0.315319}
Use statistical and arithmetic operations to take the deviation for each color channel:
In[4]:=
ColorSeparate[i]-Mean[i]
Out[4]=
,
,
Combining the deviation with the original mean, build a simple contrast booster:
In[5]:=
Mean[i]+2(ColorSeparate[i]-Mean[i])//ColorCombine
Out[5]=
Modify the algorithm to create more extreme effects:
In[6]:=
Mean[i]-1(ColorSeparate[i]-Mean[i])//ColorCombine
Out[6]=
Experiment with the algorithm and create more effects: