TAG: convolution

A little place for me to spew hot crazy on you.

Here is an old script to apply a gaussian blur to an image using a 5x5 convolution matrix (see Kernel as well) based on the following formula: $G(x,y)=\frac{1}{2\pi\sigma^{2}}\epsilon^{-(x^{2}+y^{2})/2\sigma^{2}}$ Original script used CImg version 1-13 (something like 30 revisions ago :) ) I think my snippet is easy enough to follow that the image library I used shouldn't really matter.…